<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 2: xml file properties</title><link href="https://sourceforge.net/p/xml-cppdom/support-requests/2/" rel="alternate"/><link href="https://sourceforge.net/p/xml-cppdom/support-requests/2/feed.atom" rel="self"/><id>https://sourceforge.net/p/xml-cppdom/support-requests/2/</id><updated>2006-12-19T22:09:34Z</updated><subtitle>Recent changes to 2: xml file properties</subtitle><entry><title>xml file properties</title><link href="https://sourceforge.net/p/xml-cppdom/support-requests/2/" rel="alternate"/><published>2006-12-19T22:09:34Z</published><updated>2006-12-19T22:09:34Z</updated><author><name>aiscape</name><uri>https://sourceforge.net/u/aiscape/</uri></author><id>https://sourceforge.net2b1d5447e6b2a6e9ee0fd3787baee73451800aac</id><summary type="html">&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;</summary></entry></feed>