Hi! I have an xml file with the following content
`<?xml version="1.0"?>
Sample Book NameNew Author102.50
`
and using the xml2json.cpp, I get the following json string
{"Book":{"name":"Sample Book Name","author":"New Author","price":102.5}}
Instead I want to obtain just
{"name":"Sample Book Name","author":"New Author","price":102.5}
Is there any way I could do this? I tried going and looking through xml2.json.hpp, rapidjson/document.h and rapidjson/writer.h, but could not do. Any help would be appreciated!
Hi! I have an xml file with the following content `<?xml version="1.0"?>
`
and using the
xml2json.cpp
, I get the following json string{"Book":{"name":"Sample Book Name","author":"New Author","price":102.5}}
Instead I want to obtain just
{"name":"Sample Book Name","author":"New Author","price":102.5}
Is there any way I could do this? I tried going and looking through
xml2.json.hpp
,rapidjson/document.h
andrapidjson/writer.h
, but could not do. Any help would be appreciated!Regards