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
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