RSI helpers  0.1
RSI helpers
Xml Class Reference

XML helper functions. More...

Static Public Member Functions

static validTag ($name)
 Check wether a name is a valid XML tag name. More...
 
static fromDom ($node, $class_name='SimpleXMLElement')
 Covert a DOM node to a (simple) XML node. More...
 

Detailed Description

XML helper functions.

Definition at line 8 of file Xml.php.

Member Function Documentation

◆ fromDom()

static fromDom (   $node,
  $class_name = 'SimpleXMLElement' 
)
static

Covert a DOM node to a (simple) XML node.

Parameters
\DOMNode$node
string$class_nameClass name for the XML object (descendant of SimpleXMLElement).
Returns
SimpleXMLElement

Definition at line 24 of file Xml.php.

◆ validTag()

static validTag (   $name)
static

Check wether a name is a valid XML tag name.

Parameters
string$nameTag name.
Returns
bool True if valid.

Definition at line 15 of file Xml.php.


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