Boost logo

Boost Users :

From: Sangeeta Singh (singhs_at_[hidden])
Date: 2008-05-28 00:46:44


Hi,

 

The </boost_serialization> end tag gets written when I use a file as the
outputstream. When I use a string as the outputstream I do not get this
tag even if I flush the stream. Probably some problem with the
oStringStream. Flush or adding a endl also does not work.

 

Thanks,
Sangeeta

 

________________________________

From: boost-users-bounces_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]] On Behalf Of Robert Ramey
Sent: Tuesday, May 27, 2008 9:10 AM
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] How to override the init() in the
xmlserializationlibrary..

 

A couple of things:

 

a) you might try opening the the archive with the "no_header" flag.

b) I checked the output of my tests and I see that they do contain the
end tag

</boost_serialization>. You might try running one of tests and/or demos

to verify that these work on your system. If they do, investigate what
your

program is doing differently

c) I looked in the code in "basic_xml_oarchive.ipp" and it does contain
code

to append </boost_serialization> at the end of the output. You should

investigate why this code isn't being called. If this is due to an
error

in the library- we would be interested in the details.

 

Robert Ramey

        "Sangeeta Singh" <singhs_at_[hidden]> wrote in message
news:228C81146E16054AA04E582D4B8C34CD56D3C5_at_[hidden]
...

        Hi,

         

        I have a need to be able to specify my own init routine for the
xml serialization. I tried deriving a new archive from xml_oarchive_impl
and tried to have a init() function there but that does not get invoked.

         

        I am using boost serialization library ver 1.32.

         

        The xml that is generated by the library is malformed. It
generates the following line without corresponding end tag

         

        <boost_serialization signature="serialization::archive"
version="3">

         

         

        There is no </boost_serialization> in the o/p xml.

         

        Also my requiremet is that I do not generate this tag.

         

        Thanks,

        Sangeeta

         

         

        
________________________________

        _______________________________________________
        Boost-users mailing list
        Boost-users_at_[hidden]
        http://lists.boost.org/mailman/listinfo.cgi/boost-users



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