Support Requests item #1619088, was opened at 2006-12-19 16:09
Message generated for change (Comment added) made by patrickh
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=467782&aid=1619088&group_id=52718
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Priority: 5
Private: No
Submitted By: aiscape (aiscape)
Assigned to: Nobody/Anonymous (nobody)
Summary: xml file properties
Initial Comment:
Hi I'm a xml noob and want to try cppdom in a tiny project.
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.
Sample:
I read in the following xml, modify the stuff inside element
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<element>
bla bla
</element>
and get the following after writing the doc to file:
<?xml version="1.0" ?>
<?xml ?>
<element>
bla bla
</element>
After modifing the same file twice, I get:
<?xml version="1.0" ?>
<?xml ?>
<?xml ?>
<element>
bla bla
</element>
What's going on here. I'm sure I missed something. Please, can you help me out?
Thanks a lot for help and for developing cppdom. I like it 'cause it is so small.
Cheers, Yves.
----------------------------------------------------------------------
>Comment By: Patrick Hartling (patrickh)
Date: 2006-12-20 10:55
Message:
Logged In: YES
user_id=49856
Originator: NO
You aren't missing anything. This is a bug/shortcoming in how CppDOM
writes out XML files. Currently, it is hard-coded to write out only the XML
version. If you have a patch to address this problem, we would be happy to
review it.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=467782&aid=1619088&group_id=52718
|