Leo,

Indeed, the serializer does not format the document. I have a small utility
that does that separately, which I attach - it inserts whitespace as needed.
It's very straightforward, but it may serve your purpose.

Share & enjoy

Ta, evert



-----Original Message-----
From: Leonardo B. Lopes [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 9:47 PM
To: [EMAIL PROTECTED]
Subject: Formatting XML


Dear Friends,

        I was able to compile the DOMSerializer module, and build my
<otherformat>2xml converter. That's good. Thanks to Evert for the good
work... But the output is not formatted at all. I see there are a lot of
flags in the code, but the docs don't say anything about being able to
format the xml. There is a java DOMSerialize interface which has members
like "_indent", etc..., that give the programmer some control over output.
Is there something like that in the C++ interface? I tried changing the
"escape flags" but that didn't work...

Thanks!
Leo.

========================================================================
Leonardo B. Lopes                                       [EMAIL PROTECTED]
Ph.D. Student                                              (847)491-8470
IEMS - Northwestern University              http://www.iems.nwu.edu/~leo



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

Attachment: IndentDOM.cpp
Description: Binary data

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

Reply via email to