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.

Java SAX Examples

Java SAX Examples

     

  1. 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.

  2. 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 .

  3. 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 .

  4. 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. 

  5. 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. 

  6. 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. 
      
  7. 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.