|
tauZaman v0.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--tauzaman.XMLParser
XMLParser
class parses a given url, which contains an XML file,
and returns the root of resulting DOM. It uses DOM to parse the xml file. The
classes, which utilize this class are;
CalendricSystem
Calendar
Property
FVTable
CalendricSystem
,
Calendar
,
Property
,
FVTable
Field Summary | |
private javax.xml.parsers.DocumentBuilderFactory |
factory
|
Constructor Summary | |
XMLParser()
Constructs an XMLParser object, which parses an xml file,
which given url points to. |
Method Summary | |
java.lang.String |
getElementContent(org.w3c.dom.Element e)
Returns content of a DOM Element node as a string. |
java.util.Vector |
locator(org.w3c.dom.Element parent,
java.lang.String name)
Locator. |
org.w3c.dom.Element |
parseFragment(java.lang.String source)
Parses a given String XML fragment. |
org.w3c.dom.Element |
parseURL(java.net.URL url)
Parses a given URL, which points to an xml file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private javax.xml.parsers.DocumentBuilderFactory factory
Constructor Detail |
public XMLParser()
XMLParser
object, which parses an xml file,
which given url points to.
Method Detail |
public org.w3c.dom.Element parseURL(java.net.URL url) throws XMLParseException
url
- URL , which points to an xml file to be parsed
XMLParseException
- if any abnormal condition occurs when forming a DOM
objectpublic org.w3c.dom.Element parseFragment(java.lang.String source) throws XMLParseException
source
- String XML fragment to be parsed
XMLParseException
- if any abnormal condition occurs when forming a DOM
objectpublic java.util.Vector locator(org.w3c.dom.Element parent, java.lang.String name)
public java.lang.String getElementContent(org.w3c.dom.Element e)
e
- Element, whose content will be returned
|
tauZaman v0.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |