This is probably way too broad a question, but I'm desperate for words, if not just desperate. ;-)

I'm trying to get a preparser together to pull in all DTD or XSD information into an application I'm writing...

The thing is, I'm getting all the "normal" data just fine (i.e. ELEMENTs, attributes, etc.) -- the only thing I'm missing now is the prolog data. Yes, I'd really like to include this from the input file, if it's there.

Prolog might not be the right word, but this is the line I want to extract data:

     <?xml version="1.0" encoding="UTF-8"?>

So after running the preparser step (a perfect example of how I'm doing it can be found in samples/xni/XMLGrammarBuilder.java), how can I access 'version' and 'encoding'?

Can anyone tell me what classes/methods I should be aware of to do this? I've hunted around and tried some, but I suspect newbie error since I get only null values for my attempts. Hey, at least it compiled....
--



--Henry


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to