Is it possible to add id for each xml_node? #415
Replies: 2 comments 2 replies
-
Yes, I think that's possible. You can use XPath and get the corresponding result |
Beta Was this translation helpful? Give feedback.
-
I'd recommend to use something like The reason why pugixml doesn't provide a way to store user data in the node is simple: it's a significant memory overhead which 95% of use cases don't need. |
Beta Was this translation helpful? Give feedback.
-
Currently each node has unique
hash_value
. But this value changes between runs.Is it possible to add
id
that will be unique for each node and persistent for every runs (same input XMLs produce same ids)?Or at least to add a user-data field?
I work on SQLite XML extension. ids will allow to connect results between different sql-XML-statements for the same XML and recreate a XML-tree in a database.
Beta Was this translation helpful? Give feedback.
All reactions