View RSS Feed

Java XML

  1. Creating Blank DOM Document

    by , 04-27-2012 at 06:09 PM
    This tutorial shows you how to create blank DOM document. JAXP (Java API for XML Processing) is a Java interface that provides a standard approach to Parsing XML documents. With JAXP, we will use the Document BuilderFactory to create DocumentBuilder class.
    The class DocumentBuilderFactory is responsible for creating new DOM parsers. Normally it is used to a DOM parser. Example is as follows:
    Java Code:
     DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();