[
Lists Home |
Date Index |
Thread Index
]
- From: Robin LaFontaine <robin@monsell.co.uk>
- To: David Wang <dwang@mitre.org>, XML-DEV <xml-dev@xml.org>
- Date: Thu, 30 Mar 2000 19:25:59 +0100
David,
I have been using Anderson's implementation in Common Lisp for this -
but I guess if you are not a Lisp programmer this may not help! But
it does give a modifiable data structure for the DTD which allows
program manipulation.
I understand that DOM3 will address this and give a procedural
interface into the DTD. It would be useful as you say.
Robin
At 4:33 pm -0500 29/3/00, David Wang wrote:
>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@xml.org&BODY=unsubscribe%20xml-dev
>List archives are available at http://xml.org/archives/xml-dev/
>***************************************************************************
-- -----------------------------------------------------------------
Robin La Fontaine, Monsell EDM Ltd
(R&D Project Management, Engineering Data Exchange using XML, EDIF)
Tel: +44 1684 592 144 Fax: +44 1684 594 504 or +44 870 054 2811
Email: robin@monsell.co.uk
***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@xml.org&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************
|