Cheedoong / xml2json

A header-only C++ library converts XML to JSON

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Request: parsing xml namespaces

prestonhansen opened this issue · comments

When a tag like <ns:element type="abc" /> is parsed, the ns: is ignored in conversion.

this isn't a huge deal in my use case, but it might be worth looking at.

I made a special version for you.
xml2json.tar.gz

Check the attached file and hope it handles the namespace problems well.
See test_track_1.xml and test_track_1.js.txt in /test/.

Reference;
https://github.com/svgpp/rapidxml_ns

Cheers~

Thanks a ton, I'll give this a shot.