Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Create a DOM document from an XML string (Xerces-C++ 2.5)

Reply
Thread Tools

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

 
 
johnmmcparland
Guest
Posts: n/a
 
      04-29-2009
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
 
Reply With Quote
 
 
 
 
Joe Kesselman
Guest
Posts: n/a
 
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Loading a simple XHTML transitional document into aorg.w3c.dom.Document Ion Freeman Java 17 07-11-2009 10:17 PM
xml.dom.minidom losing the XML document type attribute Johannes Bauer Python 7 06-11-2009 10:21 PM
Building SVG document Using DOM Interface Inside HTML Document SMH Javascript 2 03-18-2007 08:57 AM
Help on including one XML document within another XML document using XML Schemas Tony Prichard XML 0 12-12-2003 03:18 PM
Help with JDOM, turn org.jdom.Document -> org.w3c.dom.Document? Wendy S Java 1 08-04-2003 11:48 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57