xml item that holds the xml DOM More...
#include <ZFXml.h>
Public Member Functions | |
void | objectInfoT (zfstring &ret) const |
see objectInfo | |
zfstring | objectInfo (void) const |
return object info | |
zfindex | objectRetainCount (void) const |
get current retain count | |
ZFXmlType | type (void) const |
type of this item | |
zfbool | valid (void) const |
true if type is v_ZFXmlType::e_Null | |
ZFXml & | name (const zfstring &name) |
name of the node | |
const zfstring & | name (void) const |
see name | |
ZFXml & | value (const zfstring &value) |
value of the node | |
const zfstring & | value (void) const |
see value | |
ZFXml | copy (void) const |
return a copy of this node as well as all of its children | |
zfindex | attrCount (void) const |
get attr count | |
ZFXml & | attr (const zfstring &key, const zfstring &value) |
add or set attribute | |
zfstring | attr (const zfstring &key) const |
get attribute with key | |
zfbool | attrExist (const zfstring &key) const |
true if attribute exist | |
ZFXml & | attrRemove (const zfstring &key) |
remove attribute with key | |
ZFXml & | attrRemoveAll (void) |
remove all attribute | |
zfiter | attrIter (void) const |
see zfiter | |
zfiter | attrIterFind (const zfstring &key) const |
see zfiter | |
zfstring | attrIterKey (const zfiter &it) const |
see zfiter | |
zfstring | attrIterValue (const zfiter &it) const |
see zfiter | |
void | attrIterValue (zfiter &it, const zfstring &value) |
see zfiter | |
void | attrIterRemove (zfiter &it) |
see zfiter | |
zfindex | childCount (void) const |
child count | |
ZFXml | childAt (zfindex index) const |
get child at index | |
ZFXml & | child (const ZFXml &item, zfindex index=((zfindex) -1)) |
add child at index | |
ZFXml & | childRemoveAt (zfindex index) |
remove child | |
ZFXml & | childRemoveAll (void) |
remove all child | |
zfindex | childFind (const ZFXml &item) const |
find child | |
ZFXml | childElement (void) const |
util to get first element child | |
ZFXml | childElementAt (zfindex index) const |
util to try get element at index | |
void | CDATA (zfbool CDATA) |
CDATA or not, for v_ZFXmlType::e_Text. | |
zfbool | CDATA (void) const |
see CDATA | |
operator zfstring (void) const | |
return ZFXmlToString | |
operator zfbool (void) const | |
return valid | |
zfstring | operator[] (const zfchar *key) const |
access attr | |
zfstring | operator[] (const zfstring &key) const |
access attr | |
ZFXml | operator[] (zfindex index) const |
access childAt | |
zfstring | toString (const ZFXmlOutputToken &token=ZFXmlOutputTokenDefault()) const |
return ZFXmlToString | |
xml item that holds the xml DOM
name of the node
what name stands for depends on the node type:
value of the node
what value stands for depends on the node type:
ZFXml ZFXml::copy | ( | void | ) | const |
return a copy of this node as well as all of its children
the newly created tree has no parent