Create a DOM document from an XML string (Xerces-C++ 2.5)

J

johnmmcparland

Hi all,

I have a std::string which is the XML I need to parse. I have already
got everything I need to parse the string (as I do the same thing from
a file), but I cannot seem to create a DOMDocument from it.

So I have;

std::string xml = "
<person>
<name>Bill</name>
<age>30</age>
<attributes>
<pair>
<key>EMAIL</key>
<value>kidonATnoreal.email</value>
</pair>
</attributes>
</person>";

So how do I create the DOMDocument?

I'm using xerces-c++2.5
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top