ZFFramework
 
Loading...
Searching...
No Matches
ZFXml Class Reference

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
 
ZFXmlname (const zfstring &name)
 name of the node
 
const zfstringname (void) const
 see name
 
ZFXmlvalue (const zfstring &value)
 value of the node
 
const zfstringvalue (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
 
ZFXmlattr (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
 
ZFXmlattrRemove (const zfstring &key)
 remove attribute with key
 
ZFXmlattrRemoveAll (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
 
ZFXmlchild (const ZFXml &item, zfindex index=((zfindex) -1))
 add child at index
 
ZFXmlchildRemoveAt (zfindex index)
 remove child
 
ZFXmlchildRemoveAll (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
 

Detailed Description

xml item that holds the xml DOM

Member Function Documentation

◆ name()

ZFXml & ZFXml::name ( const zfstring & name)

name of the node

what name stands for depends on the node type:

  • Document: always null
  • Declaration: always null
  • DocType: always null
  • PI: pi's name
  • Element: tag name
  • Text: always null
  • Comment: always null

◆ value()

ZFXml & ZFXml::value ( const zfstring & value)

value of the node

what value stands for depends on the node type:

  • Document: always null
  • Declaration: always null
  • DocType: the DOCTYPE without tags
  • PI: the processing instruction's content
  • Element: always null
  • Text: the text itself without tags if CDATA
  • Comment: the comment itself without tags

◆ copy()

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


The documentation for this class was generated from the following file: