[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: 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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|