
11 Nov
2005
11 Nov
'05
10:56 a.m.
Instead of creating the node node/<xmlattr>/attr, the node is created as node/@attr which allows a more XPath-style of query to be used (e.g. path.to.@attr). In either case the caller needs to know a little something about the source data (e.g. to search for <xmlattr>/attr or @attr) and I personally prefer the more XPath-like naming.
XPath naming is indeed nicer, but it has a small disadvantage: you cannot iterate easily over all attributes or all keys because they are mixed together. I might add it as another option to XML parser. thanks for the patch, Marcin