Processing XML using Java

The Java API for XML Processing is used for working with the XML files. If you are writing an application that is going to handle the XML documents then you might be using JAXP in your application.

For working with JAXP you have to import the namespaces, javax.xml.parsers.DocumentBuilderFactory, javax.xml.parsers.DocumentBuilder, and the org.w3c.dom.Document apart from importing the usual java.io.File.

To work with an XML document you need to create a Document object. This is done in three steps by using the JAXP. The first step is to create a DocumentBuilderFactory object and then use this object to create a DocumentBuilder object. The DocumentBuilder object is then used to create the Document object. The SAX API and the XSLT API are also used in the process of working with the XML document using Java.

The SAX API is used to create the parser objects that are used in parsing and the XSLT APIs are used in the process of transforming the XML source document to another form. The URL http://java.sun.com/
webservices/jaxp/dist/1.1/docs/tutorial/overview/3_apis.html has lot of details regarding these APIs for working with Java and XML.



SetApp - 100 Apps for everything you ever wanted to do on Mac

FREE Subscription

Subscribe to our mailing list and receive new articles
through email. Keep yourself updated with latest
developments in the industry.

Name:
Email:

Note : We never rent, trade, or sell my email lists to
anyone. We assure that your privacy is respected
and protected.

_______________________________________



 

FREE Subscription

Stay Current With the Latest Technology Developments Realted to XML. Signup for Our Newsletter and Receive New Articles Through Email.

Name:

Email:

Note : We never rent, trade, or sell our email lists to anyone. We assure that your privacy is respected and protected.

 

 

Add to My Yahoo!

Visit XML Training Material Guide Homepage

 

 

 

“Amazon and the Amazon logo are trademarks of Amazon.com, Inc. or its affiliates.”

Copyright - © 2004 - 2019 - All Rights Reserved.