<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 2: xml file properties</title><link>https://sourceforge.net/p/xml-cppdom/support-requests/2/</link><description>Recent changes to 2: xml file properties</description><atom:link href="https://sourceforge.net/p/xml-cppdom/support-requests/2/feed.rss" rel="self"/><language>en</language><lastBuildDate>Tue, 19 Dec 2006 22:09:34 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/xml-cppdom/support-requests/2/feed.rss" rel="self" type="application/rss+xml"/><item><title>xml file properties</title><link>https://sourceforge.net/p/xml-cppdom/support-requests/2/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi I'm a xml noob and want to try cppdom in a tiny project.&lt;/p&gt;
&lt;p&gt;I want to read in xml files, modify it and write it out. Manipulating nodes works as expected but I have the problem that the input files have xml attribs like encoding or standalone and cppdom doesn't write out these properties while savin' the document.&lt;/p&gt;
&lt;p&gt;Sample:&lt;/p&gt;
&lt;p&gt;I read in the following xml, modify the stuff inside element &lt;/p&gt;
&lt;p&gt;&amp;lt;?xml version="1.0" encoding="utf-8" standalone="yes" ?&amp;gt;&lt;br /&gt;
&amp;lt;element&amp;gt;&lt;br /&gt;
bla bla&lt;br /&gt;
&amp;lt;/element&amp;gt;&lt;/p&gt;
&lt;p&gt;and get the following after writing the doc to file:&lt;/p&gt;
&lt;p&gt;&amp;lt;?xml version="1.0" ?&amp;gt;&lt;br /&gt;
&amp;lt;?xml ?&amp;gt;&lt;br /&gt;
&amp;lt;element&amp;gt;&lt;br /&gt;
bla bla&lt;br /&gt;
&amp;lt;/element&amp;gt;&lt;/p&gt;
&lt;p&gt;After modifing the same file twice, I get:&lt;br /&gt;
&amp;lt;?xml version="1.0" ?&amp;gt;&lt;br /&gt;
&amp;lt;?xml ?&amp;gt;&lt;br /&gt;
&amp;lt;?xml ?&amp;gt;&lt;br /&gt;
&amp;lt;element&amp;gt;&lt;br /&gt;
bla bla&lt;br /&gt;
&amp;lt;/element&amp;gt;&lt;/p&gt;
&lt;p&gt;What's going on here. I'm sure I missed something. Please, can you help me out?&lt;/p&gt;
&lt;p&gt;Thanks a lot for help and for developing cppdom. I like  it 'cause it is so small.&lt;/p&gt;
&lt;p&gt;Cheers, Yves.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">aiscape</dc:creator><pubDate>Tue, 19 Dec 2006 22:09:34 -0000</pubDate><guid>https://sourceforge.net2b1d5447e6b2a6e9ee0fd3787baee73451800aac</guid></item></channel></rss>