From: Carl Forsman on 16 Nov 2008 05:35 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.
From: Carl Forsman on 16 Nov 2008 05:46 On Sun, 16 Nov 2008 02:35:54 -0800, Carl Forsman <fatwallet951(a)yahoo.com> 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. more specfic Public void outer_xml(std::basic_ostream<TCHAR,std::char_traits<TCHAR>> &, TCHAR = _T('\t'), bool = true) how can use this function to output to XML
From: Carl Forsman on 16 Nov 2008 06:03 On Sun, 16 Nov 2008 02:46:08 -0800, Carl Forsman <fatwallet951(a)yahoo.com> wrote: >On Sun, 16 Nov 2008 02:35:54 -0800, Carl Forsman ><fatwallet951(a)yahoo.com> 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. > >more specfic > >Public void >outer_xml(std::basic_ostream<TCHAR,std::char_traits<TCHAR>> &, TCHAR = >_T('\t'), bool = true) > >how can use this function to output to XML the capture of manual for this function is here http://www.oniva.com/upload/1356/xml.jpg
From: Carl Forsman on 16 Nov 2008 06:42 On Sun, 16 Nov 2008 02:46:08 -0800, Carl Forsman <fatwallet951(a)yahoo.com> wrote: >On Sun, 16 Nov 2008 02:35:54 -0800, Carl Forsman ><fatwallet951(a)yahoo.com> 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. > >more specfic > >Public void >outer_xml(std::basic_ostream<TCHAR,std::char_traits<TCHAR>> &, TCHAR = >_T('\t'), bool = true) > >how can use this function to output to XML screen shot in VC++ http://www.oniva.com/upload/1356/xml1.jpg
From: Tommy on 16 Nov 2008 07:55
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; 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); -- |