Need help to read the following line : <?xml version="1.0" encoding="UTF-8"?>

E

eitan

I'm using the following parser : SAX2XMLReader (Apache sax parser). My
class is derived from DefaultHandler object and i'm overwriting the
following methods : 1. void processingInstruction (...); 2. void
docPI (...); 3. void elementDecl (...);
....
but no one of these function is being called by the parser.

I'm also setting the following handlers :
parser->setContentHandler(this);
parser->setErrorHandler(this);
parser->setLexicalHandler(this);
parser->setDeclarationHandler(this);
parser->setDTDHandler(this);

Does anyone can tell me how can i extract these tags?? (version and
encoding).

thanks.
 

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

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,137
Latest member
NoelAshwor
Top