[fpc-pascal] TDOMElement and multiple attributes
Flávio Etrusco
flavio.etrusco at gmail.com
Mon Mar 28 03:56:16 CEST 2011
>
>
>> someone at 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
More information about the fpc-pascal
mailing list