$root_name
$root_name : string
XML Root name.
Converts tabular data into a DOMDOcument object.
recordToElementWithAttribute(\DOMDocument $doc, array $record, \League\Csv\string $field_encoder, \League\Csv\int $offset)
Convert a CSV record into a DOMElement and adds its offset as DOMElement attribute.
\DOMDocument | $doc | |
array | $record | |
\League\Csv\string | $field_encoder | |
\League\Csv\int | $offset |
fieldToElementWithAttribute(\DOMDocument $doc, \League\Csv\string $value, integer|string $node_name)
Convert Cell to Item.
Convert the CSV item into a DOMElement and adds the item offset as attribute to the returned DOMElement
\DOMDocument | $doc | |
\League\Csv\string | $value | |
integer|string | $node_name |