Class SimpleXMLExtended

Description

SimpleXMLExtended class for use with CDATA-tags

Located in /inc/utility/SimpleXMLExtended.php (line 21)

SimpleXMLElement
   |
    --SimpleXMLExtended
Method Summary
 addCData (string $cdata_text) void
 addChildCData (string $name, [string $cdataText = ""]) Child
 moveNodeDown ( $refNode) void
 moveNodeUp ( $refNode) void
 removeNode () void
Methods
addCData (line 31)

Method to append proper CDATA to a node

  • access: public
void addCData (string $cdata_text)
  • string $cdata_text
addChildCData (line 49)

Create a child with CDATA value

  • return: element that has been added as SimpleXMLExtended object
  • access: public
Child addChildCData (string $name, [string $cdataText = ""])
  • string $name: The name of the child element to add.
  • string $cdataText: The CDATA value of the child element.
moveNodeDown (line 100)

Method to move a node after one other

  • access: public
void moveNodeDown ( $refNode)
  • $refNode
moveNodeUp (line 83)

Method to move a node above one other

  • access: public
void moveNodeUp ( $refNode)
  • $refNode
removeNode (line 70)

Method to remove a node

  • access: public
void removeNode ()

Inherited Methods

Inherited From SimpleXMLElement (Internal Class)

 constructor __construct ( $data, [$options = ], [$data_is_url = ], [$ns = ], [$is_prefix = ] )
 addAttribute ( $name, [$value = ], [$ns = ] )
 addChild ( $name, [$value = ], [$ns = ] )
 asXML ( [$filename = ] )
 attributes ( [$ns = ], [$is_prefix = ] )
 children ( [$ns = ], [$is_prefix = ] )
 count ( )
 getDocNamespaces ( [$recursve = ] )
 getName ( )
 getNamespaces ( [$recursve = ] )
 registerXPathNamespace ( $prefix, $ns )
 saveXML ( [$filename = ] )
 xpath ( $path )
 __toString ( )