Peet Sneekes wrote: > > Bret, > > The XML standard is to be found at: http://www.w3.org/TR/REC-xml
I think you misunderstood. I know what those items are, and how they are used. What I am asking is that once I have a DOM Document object: <code> DOMParser parser = new DOMParser(); parser.parse(uri); Document doc = parser.getDocument(); </code> How can I get from the Document object (org.w3c.dom.Document) the version, encoding and standalone state of the docment? In other words is there a way with DOM's Java binding to get access to the XML declaration? I can't find one, which seems ridiculous, so I wanted to verify this. Certainly I could parse the document myself to get that, but that's sort of silly.... -Brett > > Cheers, > > Peet > ----- Original Message ----- > From: "Brett McLaughlin" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, April 03, 2000 5:08 PM > Subject: DOM and XML Declaration > > > Using DOM, how can I get at the XML declaration? > > > > For example, for: > > > > <?xml version="1.0" encoding="UTF-8" standalone="yes"?> > > > > How can I find out the version, encoding, and standalone state of the > > document? I see nothing in DOM that helps me, as the XML declaration > > isn't reported through a PI (org.w3c.dom.ProcessingInstruction). > > Thanks. > > > > -Brett