> > >> someone@somewhere:~/pascal/Projects/xmldemo$ cat test.xml >> <?xml version="1.0"?> >> <ROOT someAttrib="someValue"> >> <SomeNode aAttribute="2" bAttribute="3" ccAttribute="4" aaaAttribute="1"/> >> </ROOT> >> >> Looks like the order is governed by the length of the attribute name first >> and then alphabetically. >> Actually it isn't sorted by length, but it's case-sensitive.
Mattias wrote: > Yes, that is what CompareDOMStrings does. > Probably for speed reasons. > Indeed, laz_xmlwrite and laz2_xmlwrite both do this, but the example is using xmlwrite.pas from fcl-xml. > This function is fixed in the code. > What do you mean? Best regards. Flávio _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal