You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xerces.apache.org by "Wu, Kotien" <ko...@lmco.com> on 2000/01/03 14:14:09 UTC

how get info from dtd

	We have used IBM xml4c for validating xml syntax against its dtd and
	validating context format (such as date, email ...) in xml since
June.
	It runs great!

	We have a question now: can we and how can we to get parsed dtd
info.

	For example: we have an element name and an attribute name, can we
and how
	can we to get its value for that attribute name from dtd:

	___________________________________________________________________

	<!ELEMENT specification (spec.title-block,specification-block) >
	<!ATTLIST specification
	 id ID #REQUIRED
	 label CDATA #FIXED "[Specification] "
	 class CDATA #FIXED "legal-instrument" >
	___________________________________________________________________


	can we get [Specification](label value) using key word
"specification" (element name)and "label" (attribute name)
	from dtd or get a parsed dtd, like xml (example SAXPrint gives
parsed xml)

	Thanks!

	Happy New Year !

	Kotien Wu