<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello Samuel,<br>
<br>
Example outside of xml "object" (lot of overloads)<br>
<tt>a = mlist(["toto", "id"], 1);</tt><tt><br>
</tt><tt>b = mlist(["toto", "id"], 1);</tt><tt><br>
</tt><tt>a == b -> [%t %t]</tt><tt><br>
</tt><br>
For mlist we compare the type ("toto") and fields ("id" in this
case)<br>
<br>
Regards,<br>
Antoine<br>
<div class="moz-cite-prefix">Le 28/07/2018 à 16:47, Samuel Gougeon a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:11a9c4e8-2101-8974-3f04-9b20d2be29f6@free.fr">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
Hello,<br>
<br>
Before posting any report on Bugzilla, i would like to understand
why we get [%t %t] instead of %t when we compare 2 XMLDoc objects.
Is it a bug, or is it intentional?:<br>
<font size="-1"><tt>--> doc = xmlReadStr("<root><a
att=""foo""
rib=""bar""><b>Hello</b></a></root>")</tt><tt><br>
</tt><tt> doc = </tt><tt><br>
</tt><tt>XML Document</tt><tt><br>
</tt><tt>url: Undefined</tt><tt><br>
</tt><tt>root: XML Element</tt><tt><br>
</tt><tt><br>
</tt><tt>--> doc2 = doc;</tt><tt><br>
</tt><tt>--> doc==doc2</tt><tt><br>
</tt><tt> ans =</tt><tt><br>
</tt><tt> T T
<<<<<<<<<<<<<<<<<<<<<<
Here</tt><tt><br>
</tt><tt>--> xmlDelete(doc), clear doc doc2</tt></font><br>
<br>
Since XMLDoc objects are of type 17, i was naively searching for a
%XMLDoc_o_XMLDoc() overload.<br>
But the XML module does not have such a macro overload.<br>
I also searched in the XML src and gateway source directories,
without success.<br>
XML overloads are not documented. The only overload having a unit
test is for size().<br>
<br>
Any clue where the XMLDoc==XMLDoc comparison is defined?<br>
<br>
If XMLDoc objects are not regular mlists, why a specific type code
distinct from 17 has not been ascribed to them?<br>
<br>
Thanks<br>
Samuel<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dev@lists.scilab.org">dev@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/dev">http://lists.scilab.org/mailman/listinfo/dev</a>
</pre>
</blockquote>
<br>
</body>
</html>