Jump to content

SAX: the functionality of some ContentHandler methods


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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...