From: Leo Violette on 17 Nov 2008 17:12 I think the problem lies somewhere between the keyboard and the back of your chair. LOL Sorry, couldn't resist. The jpg you posted contains no error. Maybe copy/paste the error text into your next post. "Carl Forsman" <fatwallet951(a)yahoo.com> wrote in message news:nqa0i4ltfgmo81n74289erjr1pr9vv0e02(a)4ax.com... > On Sun, 16 Nov 2008 07:55:49 -0500, Tommy <bad(a)reallybad.com> wrote: > >>Carl Forsman wrote: >>> I use the pugXML parser >>> >>> http://www.codeproject.com/KB/cpp/pugxml.aspx >>> >>> How can I dump the "IN memory" DOM tree into XML file? >>> >>> I cannot found a function that can do that. >> >>You can using the built-in branch Root serialize streamer >> >> CPugXmlBranch cRoot = pXml->GetRoot(); >> cout << cRoot << endl << endl; > > I got this error when using this code > http://www.oniva.com/upload/1356/xml4.jpg > > >> >>or you can write your own traveral class based on the CPugXMLFilter >>class. See the sample.cpp "Example A" >> >> ////////////////////////////////////////// >> // Example A - Parse a file from disk. >> ////////////////////////////////////////// >> >> pXml->ParseFile(filename, PARSE_XXXX options); >> >> //Output the resulting tree using our outline filter. >> >> CMyXmlOutline cFilter; >> pXml->GetRoot().Traverse(cFilter); |