|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectes.upv.dsic.gti_ia.core.Xml
public class Xml
An XML parser
| Constructor Summary | |
|---|---|
Xml(InputStream is,
String rootName)
Creates an XML parser |
|
Xml(String filename,
String rootName)
Creates an XML parser |
|
| Method Summary | |
|---|---|
Xml |
child(String name)
Returns a child of the root element |
List<Xml> |
children(String name)
Returns a List of children of the root element |
String |
content()
Returns root element's content |
int |
integer(String name)
Returns an integer value of an attribute |
String |
name()
Returns root element's name |
String |
string(String name)
Returns a string value of an attribute |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Xml(String filename,
String rootName)
filename - route to the XML filerootName -
public Xml(InputStream is,
String rootName)
is - InputStream with an XML filerootName - | Method Detail |
|---|
public String name()
public String content()
public Xml child(String name)
name - Child's name
public List<Xml> children(String name)
name - children's name
public String string(String name)
name - of the attribute
public int integer(String name)
name - of the attribute
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||