help needed to read comments in xml files using sax

P

potra.dio

hellu all i need read comments and starting convension of xml(<xml
version="utf">) .how can i read it.
 
?

=?ISO-8859-1?Q?J=FCrgen_Kahrs?=

hellu all i need read comments and starting convension of xml(<xml
version="utf">) .how can i read it.

Obviously, you are unwilling to invest time in a
proper description of the problem. It is rather
likely that the readers of this newsgroup are
unwilling to invest more time answering than
you invested time in asking.
 
J

Johannes Koch

Jürgen Kahrs said:
Obviously, you are unwilling to invest time in a
proper description of the problem. It is rather
likely that the readers of this newsgroup are
unwilling to invest more time answering than
you invested time in asking.

I think (s)he wants to know how to read
1) the XML declaration and
2) comments with a SAX ContentHandler.

For 2) there is the interface org.xml.sax.ext.LexicalHandler proving the
method

public void comment(char[] ch, int start, int length)

which is implemented by the org.xml.sax.ext.DefaultHandler2 in Java 1.5.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,001
Messages
2,570,254
Members
46,849
Latest member
Fira

Latest Threads

Top