I'm writing an application that produces a couple of XML files. In the files, some of the tags have attributes. I'd like to know if the order of the attributes is important, or it's the same.
For instance, this output:
<person first='john' last='doe'>
Is the same as this:
<person last="doe" first="john">
According to the XML specification, it is not important.
the order of attribute specifications in a start-tag or empty-element tag is not significant
See section 3.1 in the specification available here: http://www.w3.org/TR/REC-xml/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With