xmlimportnode Properties

The XML source node imports data in XML format into the stream. You can import a single file, or all files in a directory. You can optionally specify a schema file from which to read the XML structure.

Example

node = stream.create("xmlimport", "My node")
node.setPropertyValue("full_filename", "c:/import/ebooks.xml")
node.setPropertyValue("records", "/author/name")
Table 1. xmlimportnode properties
xmlimportnode properties Data type Property description
read single directory Reads a single data file (default), or all XML files in a directory.
recurse flag Specifies whether to additionally read XML files from all the subdirectories of the specified directory.
full_filename string (required) Full path and file name of XML file to import (if read = single).
directory_name string (required) Full path and name of directory from which to import XML files (if read = directory).
full_schema_filename string Full path and file name of XSD or DTD file from which to read the XML structure. If you omit this parameter, structure is read from the XML source file.
records string XPath expression (e.g. /author/name) to define the record boundary. Each time this element is encountered in the source file, a new record is created.
mode read specify Read all data (default), or specify which items to read.
fields   List of items (elements and attributes) to import. Each item in the list is an XPath expression.