xmlread <xmlfile>,<ident
Read an XML file into a Fire object.
<xmlfile>
The XML file to read.
<ident>
An instance of a fire structure. The xml file is parsed and the data values
loaded into the members of this object. This identifier must already exist.
-pad
Pad any concatenated text data values, removing multiple whitespace and
ensuring that the only whitespace between items is a space. The default
behavior is to read data as is which can result in unwanted CR/LF sequences
in text data values.
-tag=<string>
The default behavior is for the parser not to check the outer tag
name for validity, thus permitting any name.
This switch should be used when the outer tag must have a specific
value for the xml data to be considered valid. The name check is
case insensitive.
XML comments, DTD and XSL specifications are ignored during parsing.
Data values may be loaded into structure members of the following types: string, numeric, point, time and blob. Appropriate data coercion will be done automatically.
Read an xml file into a Fire object.
# Define an appropriate Fire structure
atable mytab
structure ~mytab.poi_t {
string name
time date
numeric id
point location
}
# Create an object of the type
~mytab.poit_t warmem
# Read xml file contents into it, the outer tag must be poi
xmlread warmem.xml,warmem,-tag='poi'
An example xml file for use with the above, named warmem.xml:
<?xml version="1.0" encoding="ISO-8859-1"?>
<poi> <name>War Memorial</name> <id>6512</id> <location>(25466,71625)</location> <date>18-Dec-1919</date> </poi>
|
Commands: |
|
|
Functions: |
|
|
Structures: |