Hello,
I'm new to posting questions like this, so please tell me if this is not the forum (and please excuse the intrusion)...
I'm trying to use Xerces-J to parse DTDs and XSDs to extract the contents of them and basically use the data internally for a completely non-XML application. However I do want to draw data from the DTD/XSD files directly as the application needs to reference the data. I'm attempting to build a kind of report, based on the DTDs/XSDs.
So far so good -- I'm able to use the Xerces-J as a preparser, as described in the "Caching and Preparsing Grammars" article. Very handy indeed. However, only simple, standalone DTDs and XSDs can be processed. Anything that references an external entity (DTD info that is found in an external file) causes the parser to throw an "EntityNotDeclared" exception.
So I have questions, as I have exhausted everything I know to do:
1) Is this solved simply by using setFeature/setProperty? If so on what object(s) and what values -- the JavaDocs are not very concise in this area.
2) I found an XMLEntityResolver Interface, but nothing that implements it. If I need to implement my own -- I need lots of help here. So far I have relied only on Xerces implementation and got by just fine. Even if this is the route I must proceed, will it return the contents of the externally referenced DTDs so that I can continue parsing the elements, for a complete list?
3) I looked in the FAQ and found a Q&A that speaks of "a wealth of information" available if I use org.apache.xerces.xni.grammars.XMLDTDDescription and XMLSchemaDescription, but neither of these (or their related implementation classes) contain useful methods -- or do they?
4) What have I left out so that I can help you help me?
Help! How can I get access to the externally referenced data? I'm not as smart as I thought I was!
---------------------------------
P.S. It appears I sent this to the wrong address already. I'm in deeper trouble than I first thought!
This is my third attempt. Please ignore if it's still wrong.
--
--Henry Miller
[EMAIL PROTECTED] Evolutionary Technologies International, Inc.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
