How to get DTD out of DOM Document

A

Alexandra Stehman

How does one get the DTD out of a org.w3c.dom.Document object created
with XML whose first two lines look like this:

<?xml version="1.0" standalone="no"?>
<!DOCTYPE metadata SYSTEM
"http://www.dtdhost.com/location/of/my_metadata.dtd">

Document.getDocType will only yield "metadata".

I'm sure this is an easy answer for most but I can't find it anywhere.

Thank you!!!!

Alexandra
 
R

Robert Schneider

You know that Document.getDocType does not return a String? It returns a
DocumentType object. Maybe you called the 'hidden' toString-method that
migth return 'metadata'.

Robert



Am 16 Jun 2004 11:50:20 -0700 schrieb Alexandra Stehman
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,444
Messages
2,571,709
Members
48,796
Latest member
Greg L.
Top