• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

What is SAX and JAXP?

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Am learning XML and currently studying ways to parse XML. I understood that SAX is
one of the methods of parsing XML.

Is SAX an API or just a methodology.
and if its an API why do we need JAXP?

Also am going through few code examples illustrating SAX parsing
but not able to understand the sequence of method calls
i.e startElement, characters, endElement

Hence please guide me to a resource where I can understand the SAX parsing process

Thanks

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
their are two types of xml parsers, SAX and DOM based.

jaxp I beleive is a java based api for processing xml.

JAXP should provide you with a choice of interfaces to parse your file, so either sax or dom.

http://en.wikipedia.org/wiki/Java_API_for_XML_Processing[/url]

[url=http://www.xml-editor.info/" target="_blank" rel="nofollow">xml parsers
 
reply
    Bookmark Topic Watch Topic
  • New Topic