Todo List
Base class for all elements.
[line 119]
[line 110]
[line 60]
[line 76]
[line 68]
[line 128]
[line 52]
[line 84]
[line 100]
[line 92]
void addAttributeDefinitions( [array $attr_def = array()])
void addCData( string $cdata)
void appendChild( object $obj)
void appendStructure( array $arr, [bool $replaceEntities = true])
object XML_MXML_Element cloneElement( [boolean $recursive = false], [string $id = ''])
This method will return a copy of the element without the id and the childNodes.
void current( )
string dump( [integer $indent = ''], [boolean $last = false], [boolean $availableAttributes = false], [boolean $allowedChildren = false])
Use this instead of a print_r on the tree.
XML_MXML_Element __construct( [array $attributes = array()], [string $cdata = null])
Overridden in child classes as:
object XML_MXML_Element firstChild( )
If the element has no childNodes, null will be returned.
array getAllowedChilds( )
mixed getAttribute( string $name)
array getAvailableAttributes( )
object getChildren( )
This object must implement RecursiveIterator.
object XML_MXML_Document getDocument( )
object XML_MXML_Element getElementById( string $id)
You should not need to call this method directly.
string getElementName( )
array getElementsByTagname( string $tagname)
string getId( )
bool hasChildren( )
bool isLast( )
void key( )
object XML_MXML_Element lastChild( )
void next( )
boolean offsetExists( mixed $offset)
mixed offsetGet( mixed $offset)
void offsetSet( mixed $offset, mixed $data)
void offsetUnset( mixed $offset)
void rewind( )
string serialize( )
void setAllowedChilds( [miced $childs = array()])
void setAttribute( string $name, mixed $value)
void setAttributes( array $attribs)
void setCData( string $cdata)
void setDocument( object $doc)
void setNamespace( string $ns)
string toXML( )
This is just an alias for serialize().
void valid( )
boolean validate( [boolean $caseInsensitive = true], [string $version = null])
Uses the definitions of common attributes as well as the attribute definitions of the element.