[XML-SIG] accessing publicID / systemID
Wed, 2 Jan 2002 17:51:12 +0100 (CET)
On Wed, 2 Jan 2002 email@example.com wrote:
> I am using xml.dom and create the DOM tree by doing:
> DOM = Sax2.FromXmlStream(xmlfile)
> I made sure previously that the document is valid. How would I access
> the publicID and systemID?
> I expected that DOM.doctype.publicID for example would do the job, but
> Can anyone enlighten me, please?
I don't know if it is a type in your mail, but the correct attributes of
the doctype node are "systemId" and "publicId", not
"systemID" and "publicID"
Anyway, the problem is that most parsers don't take the time to
correctly initialize the doctype node of the DOM tree, since only a few
people would use it. Bad luck for you, you are in this case... ;)
I think that the xmlproc parser handles this correctly.