(second sending - can't find the first in the archives, so it must not have worked!)

Greetings.

I've been reading over various sources of info on xerces-c, both online
and offline (through the C++ XML book) and I've made excellent progress:
I can get a basic XML doc output from my code.

My task is to generate a DOM tree in code from available data and output
the tree as XML, eventually to a file - stdout works just fine now :)

As I've said, I can get a basic XML doc out now (using DOMWriter) -
something like this:

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<FirstElement/>

What I'd like to do now, is to get some DTD info in there. I'd like to
be able to (a) add a simple DOCTYPE declaration (see below) and (b)
embed the DTD in the XML output (see below).

(a)

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<!DOCTYPE ia SYSTEM "ia.dtd">
<FirstElement/>

(b)

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<!DOCTYPE ia SYSTEM "ia.dtd"
[
  <!ELEMENT FirstElement EMPTY>
]>
<FirstElement/>

I've searched the list for discussions on DTD and the DOM's DocumentType
methods, and I haven't come away with a clear understanding of what I
need to do. Any assistance, pointers, links to tutorials - whatever,
would be appreciated greatly!!

Thanks,
Brice Ruth



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



Reply via email to