|
Boost Users : |
Subject: Re: [Boost-users] [serialization] removing excess XML tags
From: Bob Wilkinson (rwilkinson_at_[hidden])
Date: 2009-02-06 04:43:51
On Thu, Feb 05, 2009 at 01:18:00PM -0600, Paul Heil wrote:
> I'd like to use the boost::serialization library to generate XML that must
> be read by a third party application. Unfortunately, this application does
> not like the extra stuff that the serialization library generates.
>
> The code below generates XML that looks like this:
> <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
> <!DOCTYPE boost_serialization>
> <boost_serialization signature="serialization::archive" version="5">
> <MYTAG class_id="0" tracking_level="0" version="0"></MYTAG>
> </boost_serialization>
>
> What I need is XML that looks more like this:
> <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
> <MYTAG></MYTAG>
>
>
> What can I do to eliminate the extra stuff?
>
> Thanks,
> PaulH
Hi Paul
You could post-process the Boost output with XSLT to remove
the unwanted tags? There may be a way to do it within
Boost::Serialization but I do not know.
Bob
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net