I thought I posted this yesterday but it does not see to show up anywhere, so here it comes again. Sorry if you've already seen it.
Thanks! Shili > -----Original Message----- > From: Shili Yang > Sent: Thursday, April 27, 2000 4:26 PM > To: [email protected] > Subject: accessing Document type declaration using XML4J 2.0.15 DOM > implementation. > > I am currently using XML4J 2.0.15 to manipulate XML documents in Java. > Suppose I have parsed into a DOM document object an XML file with a > document type declaration section such as <!DOCTYPE sonnet SYSTEM > "sonnet.dtd">, my question is how do I access the info contained in this > section via the DOM API? The DocumentType interface does not seem to > address this fully, I can only get 'sonnet', the root element name, by > calling DocumentType.getName() but can't get 'sonnet.dtd'. Could someone > kindly post a piece of sample code to deal with this? I realized there > are ways to do this in the earlier version of XML4J, but that does not > comply to the W3C standard. > > Thanks very much in advance! > > Shili Yang > e-Travel, Inc. > www.e-travel.com
