XML helper functions.
More...
|
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...
|
|
XML helper functions.
Definition at line 8 of file Xml.php.
◆ fromDom()
static fromDom |
( |
|
$node, |
|
|
|
$class_name = 'SimpleXMLElement' |
|
) |
| |
|
static |
Covert a DOM node to a (simple) XML node.
- Parameters
-
\DOMNode | $node | |
string | $class_name | Class name for the XML object (descendant of SimpleXMLElement). |
- Returns
- SimpleXMLElement
Definition at line 24 of file Xml.php.
◆ validTag()
Check wether a name is a valid XML tag name.
- Parameters
-
- Returns
- bool True if valid.
Definition at line 15 of file Xml.php.
The documentation for this class was generated from the following file:
- /var/www/fred.local/vendor/rsi/helpers/src/Rsi/Xml.php