org.wftk
Class xml
java.lang.Object
|
+--org.wftk.xml
- Direct Known Subclasses:
- xmlobj
- public class xml
- extends java.lang.Object
Constructor Summary |
xml()
|
xml(java.io.Reader r)
|
xml(java.lang.String str)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
xml
public xml()
xml
public xml(java.lang.String str)
throws java.lang.Exception
xml
public xml(java.io.Reader r)
throws java.lang.Exception
make_pure
public boolean make_pure()
is_pure
public boolean is_pure()
close
public void close()
is_live
public boolean is_live()
newhandle
public xml newhandle()
handle_to
public void handle_to(xml other)
parse
public void parse(java.io.InputStream in)
throws java.lang.Exception
java.lang.Exception
parse
public void parse(java.io.Reader in)
throws java.lang.Exception
java.lang.Exception
parse
public void parse(java.lang.String in)
throws java.lang.Exception
java.lang.Exception
string
public java.lang.String string()
stringhtml
public java.lang.String stringhtml()
stringcontent
public java.lang.String stringcontent()
stringcontenthtml
public java.lang.String stringcontenthtml()
write
public void write(java.io.OutputStream file)
writehtml
public void writehtml(java.io.OutputStream file)
writecontent
public void writecontent(java.io.OutputStream file)
writecontenthtml
public void writecontenthtml(java.io.OutputStream file)
attrval
public java.lang.String attrval(java.lang.String key)
attrlist
public java.lang.String[] attrlist()
set
public void set(java.lang.String key,
java.lang.String value)
unset
public void unset(java.lang.String key)
attrcat
public void attrcat(java.lang.String key,
java.lang.String str)
name
public java.lang.String name()
is_element
public boolean is_element()
is_a
public boolean is_a(java.lang.String name)
to_parent
public void to_parent()
parent
public xml parent()
elements
public xml[] elements()
nav_ok
public boolean nav_ok()
to_first
public void to_first()
to_firstelem
public void to_firstelem()
to_next
public void to_next()
to_nextelem
public void to_nextelem()
to_last
public void to_last()
to_lastelem
public void to_lastelem()
to_prev
public void to_prev()
to_prevelem
public void to_prevelem()
iterate
public void iterate(xml parent,
java.lang.String type,
java.lang.String dir)
iterator
public xml iterator()
rewind
public void rewind()
advance
public xml advance()
create
public void create(java.lang.String name)
createtext
public void createtext(java.lang.String name)
textcat
public void textcat(java.lang.String name)
delete
public void delete()
delete_pretty
public void delete_pretty()
new_copy
public xml new_copy()
copy
public void copy(xml other)
copyinto
public void copyinto(xml other)
copyattrs
public void copyattrs(xml other)
replace
public void replace(xml other)
xml_replacecontent
public void xml_replacecontent(xml other)
replacewithcontent
public void replacewithcontent(xml other)
prepend
public void prepend(xml newchild)
prepend_pretty
public void prepend_pretty(xml newchild)
append
public void append(xml newchild)
append_pretty
public void append_pretty(xml newchild)
xml_insertafter
public xml xml_insertafter(xml something)
xml_insertbefore
public xml xml_insertbefore(xml something)
to_loc
public void to_loc(java.lang.String location)
getloc
public java.lang.String getloc()
search
public xml search(java.lang.String elem,
java.lang.String attr,
java.lang.String val)
search_all
public xml[] search_all(java.lang.String elem,
java.lang.String attr,
java.lang.String val)
assemble
public void assemble(xml start,
xml src)