Package org.eclnt.ccee.simplexml
Class SimpleXMLParser
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.eclnt.ccee.simplexml.SimpleXMLParser
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
Transfers XML that only consists out of elements with attributes into
an object view. This type of XML is the typical XML used in
configuration files.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] chars, int start, int end) static Stringstatic StringcreateXML(SimpleXMLElement xe, boolean withSubElementSorting) voidendElement(String uri, String localName, String qName) static SimpleXMLElementstatic SimpleXMLElementvoidstartElement(String uri, String localName, String name, Attributes attributes) Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
SimpleXMLParser
public SimpleXMLParser()
-
-
Method Details
-
startElement
public void startElement(String uri, String localName, String name, Attributes attributes) throws SAXException - Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-
characters
- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Throws:
SAXException
-
parseXML
-
parseXML
-
createXML
-
createXML
-