Praki Prakash wrote: > > I am trying to get DTD information in Xerces-Java 1.0.1 and following > EnumVal sample from Xerces-C. I don't see any way to get the element > declaration pool (getElemEnumerator method) from DTDValidator. Most of > the methods in DTDValidator take element declaration index and I did not > see anything obvious that would map an element name to its index in the > pool. Can somebody shed some light on this? Some sample code would be > helpful.
You are correct, and this should be fixed. We need to have some kind of iterator on all of the various pools so that you can query their contents. For example, asking the ElementDecl- Pool what elements are defined. However, the element type is the same as the element name ID used in the StringPool. So you can use that to get the element index and all of the other methods in the pool take *that* identifier. Does anybody have a suggestion for what the iterator of the various pools should look like? -- Andy Clark * IBM, JTC - Silicon Valley * [EMAIL PROTECTED]