Mark Wilson I am the creator of TopXML. I am available for international and local (Australia) contracts. I am a Solution Architect/Business Analyst. I have worked in IT in several countries (NZ, Australia, South Africa, UK) building and training teams for government and very large non-governmental organizations. I am ex-Microsoft Consulting Services. I wrote the first book on Microsoft XML published in 2000 called XML Programming with VB and ASP. Most recently I have been building tools for the SEO industry. Ask me for a 37 point SEO health-checkup for your website.
First posted :
03/24/2008
Times viewed :
2157
The org.xml.sax.helpers.XMLReaderFactory Class
Super Class : java.lang.Object
Members
Signature
Public methods
static
XMLReader
createXMLReader()
static
XMLReader
createXMLReader(String
className)
Overview
This class contains static methods to create XMLReader
based on system property or for creating an XML reader based on the value of
the org.xml.sax.driver system property.
Method Overviews
Important methods of this class
are createXMLReader() and createXMLReader(String
className)
Example of createXMLReader()
createXMLReader() method is used to create an XML reader from a system
property. This method uses the value of the system property
"org.xml.sax.driver" as the full name of a Java class and tries to
instantiate that class as a SAX2 XMLReader.
XMLReader xmlReader = null;
xmlReader = XMLReaderFactory.createXMLReader();
This method will throw org.xml.sax.SAXException if system
property “org.xml.sax.driver” is not specified.
Note: You can set “org.xml.sax.driver” system
property to "org.apache.crimson.parser.XMLReaderImpl" for Sun
implementation or any vendor specific implementation class.
Example of createXMLReader(String className)
Attempt
to create an XML reader from a class name. Given a class name, this method
attempts to load and instantiate the class as an XML reader.
This
method also throws org.xml.sax.SAXException, if the class cannot be loaded,
instantiated, and cast to XMLReader.