xml-text-of-children
The xml-text-of-children
format reads an XML file, where the root element contains child elements which form the Records. The text value of those children of those elements are the values in the Record.
The names of the root and immediate child elements are ignored.
The charset of the input file is read from the XML declaration. If no declaration is present, UTF-8 is assumed.
"singleRecord" |
If true , treat the input file as a single record (without a containing root element) instead of multiple records. This is useful for defining REST APIs. |
Example control file
"files": { "DEFAULT": { "read": "xml-text-of-children" } }
Example input file
<?xml version="1.0" encoding="UTF-8"?> <file> <record> <id>jbloggs</id> <first>Joe</first> <last>Bloggs"</last> <email>joe@example.org</email> </record> <record> <id>jsmith</id> <first>Jane</first> <last>Smith"</last> <email>jane@example.org</email> </record> </file>