DSL References
DSL stands for Domain Specific Language. In Flow, the DSL is a set of small functions that wrap object construction so pipelines read top-to-bottom. See the examples for usage in context.
EXTRACTOR
/**
* 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 LOADER
/**
* @param Path|string $path
* @param string $root_element_name - @deprecated use `withRootElementName()` method instead
* @param string $row_element_name - @deprecated use `withRowElementName()` method instead
* @param string $attribute_prefix - @deprecated use `withAttributePrefix()` method instead
* @param string $date_time_format - @deprecated use `withDateTimeFormat()` method instead
* @param XMLWriter $xml_writer
*/
to_xml(Path|string $path, string $root_element_name, string $row_element_name, string $attribute_prefix, string $date_time_format, XMLWriter $xml_writer) : XMLLoader