<< Click to Display Table of Contents >>

XML file specification

Extensible Markup Language (XML), defined by The World Wide Web Consortium(W3C), is the standard format for data exchange between applications on the Web while HTML is a language for User Interface development.

OZ provides file store and XML store to use XML as data source. File store is used for simple XML with no DTD or XSD and XML store is used for XML with DTD or XSD.

XML file specifications for file store are:

Supports standard XML file specification without DTD.

Nodes that contain dataset and record set are required.

Nodes that contain field information should follow the format below and can be omitted.

Following is an example of XML file that contains dataset node named "DATASET", record set node named "RECORD" and field information node.

<?xml version="1.0" encoding="KSC5601"?>

<XMLSET>

<DATASET>

<FIELDINFO>

<FIELD NAME="ID" TYPE="INT"/>

<FIELD NAME="NAME" TYPE="CHAR"/>

<FIELD NAME="ADDRESS" TYPE="VARCHAR"/>

</FIELDINFO>

<RECORD>

<ID>1</ID>

<NAME>Park Chan Ho</NAME>

<ADDRESS>Texas</ADDRESS>

</RECORD>

<RECORD>

<ID>2</ID>

<NAME>Shin Ki Sung</NAME>

<ADDRESS>Seoul</ADDRESS>

</RECORD>

<RECORD>

<ID>3</ID>

<NAME>Kim Byung Hyun</NAME>

<ADDRESS>Arizona</ADDRESS>

</RECORD>

</DATASET>

</XMLSET>