Definition
source
/**
* In order to iterate only over <element> nodes use `from_xml($file)->withXMLNodePath('root/elements/element')`.
*
* <root>
* <elements>
* <element></element>
* <element></element>
* <elements>
* </root>
*
* XML Node Path does not support attributes and it's not xpath, it is just a sequence
* of node names separated with slash.
*
* @param Path|string $path
* @param string $xml_node_path - @deprecated use `from_xml($file)->withXMLNodePath($xmlNodePath)` method instead
*/
from_xml(Path|string $path, string $xml_node_path) : XMLParserExtractor