What you define SAX in XML?

What you define SAX in XML?

 SAX is stands for Simple API for XML.It is a lexical and event-driven interface.Implementation of SAX is fast and efficient but we can\'t extract information from XML at random.It is good for use when some types of information ewe handle in same way always without knowing that where it execute in document.  

How to use SAX in XML:

  

# Use to get a list of known parsers

my $parsers = XML::SAX->parsers();

# Use to add/update a parser

XML::SAX->add_parser(q(XML::SAX::PurePerl));

# Use to remove parser

XML::SAX->remove_parser(q(XML::SAX::Foodelberry));

# Use to save parsers

XML::SAX->save_parsers()


By:Vivek
Date:2014-01-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related XML Subjective Links

XML Subjective interview questions and answers for experienced and fresher