| Home >> All |
nanoxml: Javadoc index of package nanoxml.
Package Samples:
nanoxml
Classes:
XMLElement: XMLElement is a representation of an XML object. The object is able to parse XML code. Parsing XML Data You can parse XML data using the following code: XMLElement xml = new XMLElement(); FileReader reader = new FileReader("filename.xml"); xml.parseFromReader(reader); Retrieving Attributes You can enumerate the attributes of an element using the method enumerateAttributeNames 55 . The attribute values can be retrieved using the method getStringAttribute 55 . The following example shows how to list the attributes of an element: XMLElement element = ...; Enumeration enum = element.getAttributeNames(); ...
kXMLElement: kXMLElement is a representation of an XML object. The object is able to parse XML code. Note that NanoXML is not 100% XML 1.0 compliant: The parser is non-validating. The DTD is fully ignored, including <!ENTITY...> . There is no support for mixed content (elements containing both subelements and CDATA elements) You can opt to use a SAX compatible API, by including both nanoxml.jar and nanoxml-sax.jar in your classpath and setting the property org.xml.sax.parser to nanoxml.sax.SAXParser $Revision: 1.2 $ $Date: 2002/06/05 01:27:16 $
kXMLParseException: An kXMLParseException is thrown when an error occures while parsing an XML string. $Revision: 1.1 $ $Date: 2002/05/13 17:34:51 $
XMLParseException: An XMLParseException is thrown when an error occures while parsing an XML string. $Revision: 1.7 $ $Date: 2002/06/16 21:31:15 $
kXMLPrintWriter
kXMLStringWriter
| Home | Contact Us | Privacy Policy | Terms of Service |