antchfx / xmlquery

xmlquery is Golang XPath package for XML query.
https://github.com/antchfx/xpath
MIT License
444 stars 89 forks source link

Add SiblingSequence to Node #114

Open Ol1BoT opened 7 months ago

Ol1BoT commented 7 months ago

Minor change to include SiblingSequence in the node

Why?

I use XMLQuery to construct XML documents from other formats such as JSON. This JSON would include a sequence property which instructs the order of the siblings.

when validating XML against an XSD the xsd:sequence cares about the ordering of it's children, so it's helpful to have a sibling sequence built into the node so that it can be sorted.