Java SAX Examples
-
XML Well-Formed Verifier
In this section we are going to develop a simple java program that determines whether a XML document is well-formed or not. -
Get XML Elements
In this section you will learn to develop a simple java program to get the names of all elements contained in the XML document . -
Get Data From the XML File
Here you will learn to retrieve data from XML file using SAX parser. We use the JAXP APIs to retrieve data from XML document . -
XML Count Elements
Here providing you an example that counts the number of tags <Emp_Id> that are used in your XML document using the SAX parser. -
XML Error Checking and Locating
In this section, you will learn how to check and locate an error in the XML document and error position. -
Getting Attributes And
its Value
In this section, you will learn to retrieve the attributes and their value from a XML document using the SAX APIs.
-
Locating the
Notified Events
In this section, you will learn to locate (line and column number) the generated events while parsing a XML file using SAX APIs.