On 7/2/2010 8:06 AM, Hiroyuki Shimada wrote:
Hello,

I tried to write following code. It works and outputs the "output.xml"
file in the current directory.

But the XML in the file, no new line and no indent like this:

<?xml version="1.0" encoding="UTF-8" standalone="no" ?><!DOCTYPE catalog SYSTEM "file://c:/Oracle Magazine/catalog.dtd"><catalog 
title="Oracle Magazine"><journal button="2" date="January-February 2004" section="SQL"/></catalog>

Does anyone know the way to output human friendly XML file with new
lines and indents.

Thank you for your help.
Please see the "format-pretty-print" option for DOMConfiguration:

http://xerces.apache.org/xerces-c/apiDocs-3/classDOMLSSerializer.html#38fe950589395527f459879563f781a4

In the future, please ask questions like this on the C User list, and not on the dev list.

Thanks!

Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to