It's fairly straightforward, really: you can just use any ostream and stream
a DOM_Node into it. For example,

DOM_Node node;
cout << node;

should work. In this manner, the DOM_Node and its children are written using
UTF-8. If you want to use another decoding, you must create your own
serializer. See the code for
std::ostream& operator<< (std::ostream& s, const DOM_Node& node)
for an example.

The errors you found are indeed errors: some mailer (probably mine) mangled
the original files and inserted '3D' after '=' characters.

>     "void operator=3D(const DOMSerializerFormatTarget& rhs);"
>                    --^^--
> (row 75)
Should read:

void operator=(const DOMSerializerFormatTarget& rhs);

> and
>
>       "DOMSerializer(const std::string& encoding =3D defaultEncoding_);"
>                                                 --^^--
> (row 100)
should read:

DOMSerializer(const std::string& encoding = defaultEncoding_);



> > > > I look for a short example how to use the DOMSerializer class to
> > >serialize
> > > > a
> > > > DomNode into a string.

Hope this helps, Evert


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to