Jump to content

SAX: the functionality of some ContentHandler methods


Bodri

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...