Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

parameter in startElement() method

 
Himal Chuli
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
there are 4 paratemeters, namely uri,localName, qName and atts, in startElement() method in the ContenHandler interface. out of these, i am not clear about localName and qName. could you please explain me about these? i am not sure why localName is empty while the parser parses an xml document too.
thanks.
himal
 
Siva shanmugam
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Local Name is an Unqualified Name of an element,ie only element name.
QName is a qualifed Name of an element.
eg,
<myURI:Test/>
Local Name -> Test
qName -> myURI:Test
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic