| [ Index ] |
PHP Cross Reference of Unnamed Project |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 177 lines (5 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
SimpleXMLElement:: (9 methods):
__construct()
getAttribute()
registerXPathNamespace()
xpath()
wrapSimpleXMLElement()
removeNodesMatchingXPath()
getFirstChildByTagName()
children()
__toString()
Class: SimpleXMLElement - X-Ref
Class SimpleXMLElement| __construct($xmlData) X-Ref |
| Creates a new SimpleXMLElement object param: string $xmlData A well-formed XML string |
| getAttribute($name, $namespace = null) X-Ref |
| Returns the attribute for the given name. param: string $name Attribute name param: string|null|void $namespace An optional namespace for the retrieved attributes return: string|null The attribute value or NULL if attribute not found |
| registerXPathNamespace($prefix, $namespace) X-Ref |
| Creates a prefix/ns context for the next XPath query param: string $prefix The namespace prefix to use in the XPath query for the namespace given in "namespace". param: string $namespace The namespace to use for the XPath query. This must match a namespace in return: bool TRUE on success or FALSE on failure. |
| xpath($path) X-Ref |
| Runs XPath query on XML data param: string $path An XPath path return: SimpleXMLElement[]|bool an array of SimpleXMLElement objects or FALSE in case of an error. |
| wrapSimpleXMLElement(\SimpleXMLElement $element) X-Ref |
| Wraps the given element into an instance of the wrapper param: \SimpleXMLElement $element Element to be wrapped return: SimpleXMLElement|null The wrapped element or NULL if the given element is invalid |
| removeNodesMatchingXPath($path) X-Ref |
| Remove all nodes matching the given XPath query. It does not map to any \SimpleXMLElement function. param: string $path An XPath path return: void |
| getFirstChildByTagName($tagName) X-Ref |
| Returns the first child matching the given tag name param: string $tagName return: SimpleXMLElement|null The first child matching the tag name or NULL if none found |
| children() X-Ref |
| Returns the immediate children. return: array The children |
| __toString() X-Ref |
return: string |
| Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |