Arnold,

Thanks for reply and pointing me to the right alias.

I was interested in getting the encoding information in the prolog of an incoming XML document (from an external source) so that I can set the encoding when I write back the XML in printable form.

Thanks,
Sriram

At 01:42 PM 8/1/01 -0600, Arnold, Curt wrote:
[email protected] is not the appropriate forum for usage questions on a parser, it is for discussion of issues that affect all Apache XML projects (or don't fit in a particular product). It
sounds like your question would best be asked in [EMAIL PROTECTED] or [EMAIL PROTECTED]


I'm not quite sure what you are trying to get out of the "prolog". Some of the information (entity and notation definitions, but not element definitions) in the document type declaration can be
accessed using the org.w3c.dom.DocumentType interface which you can get my using the Document.getDocumentType() method. There isn't a standard DOM way of getting the XML declaration, but there is
rarely a good reason to need that information.


The DOM 3 Abstract Schema draft (somewhere on http://www.w3.org/tr) is an initial draft of a set of interfaces to access schema and DTD information.

Otherwise, you can still get at the information using implementation specific methods, however since you didn't specify what information that you are trying to get and what parser you are using, it is
difficult to make any suggestions.


Hope this helps, it is about all I will be able to do for you.



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



Reply via email to