• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

startPrefixMapping

 
Shambhavi
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The concept of the methods -
public void startPrefixMapping( java.lang.String prefix,java.lang.String uri)
throws SAXException
and
public void endPrefixMapping(java.lang.String prefix) throws SAXException
is not very clear to me.
Can someone explain PLEASE !
Shambhavi
 
Hema Menon
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
startPrefixMapping and endPrefixMapping are the two SAX callbacks dealing with the namespace. As obvious, it is invoked when the parser reaches the start and end of the prefix mapping. Prefix mapping is an element that uses "xmlns" attribute to declare a namespace.
The parameters for the methods are the namespace prefix and the uri associated with the namespace prefix. startPrefixMapping indicates the beginning of an XML namespace prefix mapping and endPrefixMapping indicates the end of the namespace mapping.
One friendly reminder, please change your name to conform withJavaranch naming policy
Thanks,
Hema
[ June 22, 2002: Message edited by: Menon Hema ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic