Listing A: Imported classes


import java.io.FileInputStream;

import java.io.FileOutputStream;

import java.io.PrintWriter;

import java.io.FileNotFoundException;

import java.util.Properties;

import org.apache.xerces.parsers.DOMParser;

import org.apache.xpath.XPathAPI;

import org.apache.xml.utils.TreeWalker;

import org.apache.xml.utils.DOMBuilder;

import org.w3c.dom.Document;

import org.w3c.dom.Element;

import org.w3c.dom.DocumentFragment;

import org.w3c.dom.Node;

import org.w3c.dom.NamedNodeMap;

import org.w3c.dom.NodeList;

import org.w3c.dom.traversal.NodeIterator;

import org.xml.sax.SAXException;

import org.xml.sax.InputSource;

import javax.xml.parsers.DocumentBuilder;

import javax.xml.parsers.DocumentBuilderFactory;

import javax.xml.parsers.ParserConfigurationException;

import javax.xml.transform.OutputKeys;

import org.apache.xalan.serialize.Serializer;

import org.apache.xalan.serialize.SerializerFactory;

import org.apache.xalan.templates.OutputProperties;