XML Integration with ADO and Internet Explorer 5 - The Row Element
(Page 4 of 8 )
Let’s start with the element that identifies the schema:
<s:Schema id = “RowsetSchema”>
In the above example of we have an XML element called
Schema, the top-level element for the entire schema. Namespace is used to uniquely identify the schema, and we give the schema an attribute called
id. To simplify this we can say it is just like giving any type of data filed ID-that identifies the field. In the Schema, the ID identifies the schema by itself.
Next we move to the element definition, which is done using
ElementType .
<s:ElementType name = “row” content = “eltonly”>
The element has two attributes. The first is
name, and it gives the element a name (in our case, it’s “row”). It is this element in the schema that identifies that row. Second attribute is called
content and it identifies what the element can hold. Here are the possible values:
| Value | Description |
|---|
| empty | This means the element cannot contain any content. |
| textOnly | This means the element can only contain text, and no other element. |
| eltOnly | This means the element can only contain other elements, and no text. |
| both | This means the elements can hold both text and other elements. |
This line of schema identifies a row element that can contain only other elements. We will look at an XML data to get a clear picture.
<z: row emp_id = “101” emp_lname = “Scott” au_fname = “William”
address =”123 Orange Drive” city = “Sunrise” state= “FL” zip= “33054”
phone= “498 654-9878” contract= “false” />
Next: The Field Attributes >>
More XML Articles
More By Gayathri Gokul