[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: DTD Processor?

  • From: "gopi" <gopi@a...>
  • To: "David Wang" <dwang@m...>, "XML-DEV" <xml-dev@x...>
  • Date: Thu, 30 Mar 2000 14:36:47 +0530

xerces dtd processor
	SAX2 beta has events for DTD.  You can capture these events and construct
ur own data structure which you can use later.  Recent Xerces-J (1.0.3)
release has implementation for SAX2 beta. I am not sure, whether parser
itself provides you with DTD information in some classes (similar to
com.ibm.xml.parser.DTD in XML4J 1.x release).  But, you can get DTD
information only if it is used along with xml document.  I don't think you
can get DTD information from just a .dtd file .  I think you have to create
an empty XML document with this as SYSTEM dtd and parse it to get those
events.
regards,
Gopi

-----Original Message-----
From: owner-xml-dev@x... [mailto:owner-xml-dev@x...]On Behalf Of
David Wang
Sent: Thursday, March 30, 2000 3:04 AM
To: XML-DEV
Subject: DTD Processor?



I realize that this may sound ancient, crufty, and crazy, but bear with me
briefly while I explore this thought... :-)

I wanted to know if there is a parser and otherwise exposed "object model"
for
DTDs so that DTDs can be programmatically traversed and examined.

I realize that such facilities must exist in the bowels of any XML parser
since it needs to do this sort of thing to validate any XML instance
document,
but I'm not aware if these facilities are exposed outside the validating
parser.

The reason I'm thinking about this is:
Just as SAX and DOM allows me to programmatically fiddle around and examine
the elements and attributes of an XML instance document (such as nodes,
etc),
I can technically apply the same facilities on an XML-Schema document since
it's valid XML.  Thus, I wonder if there exists such facilities for DTDs...

Thanks,
/David


***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************


***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.