Jump to content

SAX: the functionality of some ContentHandler methods


Bodri
 Share

Recommended Posts

I have started to get acquinted with the mystery of SAX parser. (in JAVA ) I create a class that implements from the ContentHandler interface. In my code I have to declare all the 11 eleven methods, but I usually use the frequent functions like startEement(), Characters(), endElement() etc.But there are some rarely used methods, that I can't understand their mechanism. These are:void endPrefixMapping(String prefix)void ignorableWhitespace(char[] ch, int start, int length)void processingInstruction(String target, String data)void skippedEntity(String name)void startPrefixMapping(String prefix, String uri)Could someone give me an brief explanation or short code about these functions?What are some situations when these functions are helpful?I would be very thankful for any help.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...