The OFBiz WebTools interface provides a number of utilities to help load data, from one or more files and/or directories, into any Entity Engine data source (including databases). In this section, we shall examine loading data from XML document files using the WebTools Entity XML Tools.
Make sure the data to be loaded is formatted correctly as the OFBiz XML Data Import tool requires files to be in XML document format beginning with an entity-engine-xml
element tag and ending with the appropriate closing tag as shown:
<entity-engine-xml> <!-- This is a comment and is valid within a data file --> <EntityName fieldName="someValue" anotherFieldName="someOtherValue" /> <!-- You may have as many entity/field declarations as desired within a single file --> </entity-engine-xml>
Each XML element within the XML data file represents a record (or row) to be inserted into the indicated entity. Within an element's declaration...