"Chaim Koshizky" <[EMAIL PROTECTED]> writes:

> Dear sir ;
> 
> I am trying to convert an ASCII file similar to the registry of the NT
> system into XML file. I use the xerces library.  Taking the
> "CreateDomDocument" and "DOMPrint" examples from your site.  Could you
> please help me with the following :
> 
> 
> 1.  How do I declare the  <?xml version="1.0" encoding="iso-8859-1"?> line .
> 
> 2. How can I build a DTD file from within the XML creation.

My solution to this was to read the DTD from a disk file into a
buffer, and then create a minimal document in a buffer, and then parse
that buffer with a DOMParser with validation off. That way I got the
XML Decl line, and the DTD into the internal subset without messing
with DOM.

> 3. When printing the result I don't get a nice indented output but a one
> long line which is    difficult to read.

Use the code from DOMPrint.

jas.

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

Reply via email to