| java.lang.Object org.mmbase.util.xml.DocumentReader org.mmbase.util.XMLBasicReader
XMLBasicReader | public class XMLBasicReader extends DocumentReader (Code) | | XMLBasicReader has two goals.
- It provides a way for parsing XML
- It provides a way for searching in this XML, without the need for an XPath implementation, and without the hassle of org.w3c.dom alone.
It uses dots to lay a path in the XML (XPath uses slashes).
author: Case Roule author: Rico Jansen author: Pierre van Rooden author: Michiel Meeuwissen version: $Id: XMLBasicReader.java,v 1.46 2006/01/26 10:21:50 michiel Exp $ |
XMLBasicReader | public XMLBasicReader(String path, boolean validating)(Code) | | |
XMLBasicReader | public XMLBasicReader()(Code) | | |
getInputSource | public static InputSource getInputSource(String path)(Code) | | Creates an input source for a document, based on a filepath
If the file cannot be opened, the method returns an inputsource of an error document describing the condition
under which this failed.
Parameters: path - the path to the file containing the document the input source to the document. |
Methods inherited from org.mmbase.util.xml.DocumentReader | public static void appendChild(Element parent, Element newChild, String path)(Code)(Java Doc) public static String getAttribute(Element element, String nameSpace, String localName)(Code)(Java Doc) public List<Element> getChildElements(String path)(Code)(Java Doc) public List<Element> getChildElements(Element e)(Code)(Java Doc) public List<Element> getChildElements(String path, String tag)(Code)(Java Doc) public List<Element> getChildElements(Element e, String tag)(Code)(Java Doc) public static DocumentBuilder getDocumentBuilder()(Code)(Java Doc) public static DocumentBuilder getDocumentBuilder(boolean validating)(Code)(Java Doc) public static DocumentBuilder getDocumentBuilder(boolean validating, ErrorHandler handler, EntityResolver resolver)(Code)(Java Doc) public static DocumentBuilder getDocumentBuilder(boolean validating, boolean xsd, ErrorHandler handler, EntityResolver resolver)(Code)(Java Doc) public String getElementAttributeValue(String path, String attr)(Code)(Java Doc) public String getElementAttributeValue(Element e, String attr)(Code)(Java Doc) public Element getElementByPath(String path)(Code)(Java Doc) public Element getElementByPath(Element e, String path)(Code)(Java Doc) public String getElementName(Element e)(Code)(Java Doc) public String getElementValue(String path)(Code)(Java Doc) public String getElementValue(Element e)(Code)(Java Doc) public static String getNodeTextValue(Node n)(Code)(Java Doc) public static String getNodeTextValue(Node n, boolean trim)(Code)(Java Doc) public Element getRootElement()(Code)(Java Doc) public String getSystemId()(Code)(Java Doc) public static boolean hasAttribute(Element element, String nameSpace, String localName)(Code)(Java Doc) public static void main(String argv) throws Exception(Code)(Java Doc) public static void registerPublicIDs()(Code)(Java Doc) public static void setNodeTextValue(Node n, String value)(Code)(Java Doc) public static void setPrefix(Document d, String ns, String prefix)(Code)(Java Doc) public void setSystemId(String url)(Code)(Java Doc) public static Document toDocument(Element element)(Code)(Java Doc) final protected static boolean validate()(Code)(Java Doc) final protected static boolean validate(boolean requested)(Code)(Java Doc)
|
|
|