The following tags were not closed: boost_serialization. Error processing resource 'file:///C:/Documents and Settings/piyus... Some how it failes to write </boost_serialization> at the end of the file, I don't know why ??? I have included test code and I am using VC 7. |
I think it might be the function I've cut out below. Try using
boost:serialization::make_nvp
in place of the macro:
ar & boost::serialization::make_nvp("base",
boost::serialization::base_object<base>(*this));
The macro uses the parameter as the name for the XML element. Because
it's a templated type
then the angle brackets are probably included in the name, which would be
invalid XML
syntax.
Richard
On Fri, 21 Oct 2005 03:26:05 +0100, Piyush Kapadia
< piyush.kapadia@gmail.com> wrote:
> Following code results in "unrecognized XML syntax" exception while
> writing
> to XML file.
[snip]
> void serialize(Archive & ar, const unsigned int version)
>
> {
>
> ar &
> BOOST_SERIALIZATION_NVP(boost::serialization::base_object<base>(*this));
>
> ar & BOOST_SERIALIZATION_NVP(hmap);
>
> }
>
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users