Menu

#2 Flag to skip namespaces.

open
nobody
None
5
2014-07-02
2014-07-02
Bernd
No

It would be usefull to have a flag that lets RapidXML skip any namespace-prefixes in elements and attributes.
E.g.
<atom:link> -> name should be set to "link", not "atom:link".

Reason:
We try to use RapidXML in an embedded system to read user-created XML (GPX or KML in this case). These schemata are using elements from different namespaces.
We not care about validity (we write human-oriented SW) and have no elements that may be ambiguous - even if we ignore the namespaces.

I think this problem occurs always if you have to parse external XML.
With RapidXML the handling of namespaces is job of the client SW.
If namespaces are only needed for validity, it would be helpful to have a flag to skip it during parsing (to spare code and processing time).

Discussion


Log in to post a comment.