The relationship between XML and metadata is an interesting one. As XML incorporates a great deal of the original requirements placed on metadata into the actual definition of a document
XML Metadata plays an even more important role as it initializes the document model and typically takes the form of the XML document that the XML Schema is based on or defined by the XML Schema. This is particularly useful in clarifying the resultant document structures when dealing with nested Schemas. It also set the standard used between different examples for data exchange.
It is critical to define the XML Metadata in K2 blackpearl - so that the defined Schema is initialized correctly |
Typically XML Metadata is an empty XML file defined by the Schema.
To understand XML Metadata in context - consider the bibliography example from XML Basics
Example XML File
Copy |
---|
<!--XML Definition for a Bibliography--> <bibliography> <!--First Book Reference Start--> <reference id="1" isbn="1-56414-639-1"> <!--Author Listing Start--> <authors> <author> <last_name>Iacone</last_name> <initials>SJ</initials> </author> </authors> <!--Author Listing End--> <title>Write to the Point</title> <publisher>Career Press</publisher> <publish_date>2003</publish_date> </reference> <!--First Book End--> |
Supporting XML Schema
The data set is supported by the following Schema definition
Copy |
---|
<xs:schema id="XMLField" |
XML Metadata
The XML Metadata is defined by the basic document structure and the initialization values - in this case empty strings.
Copy |
---|
<bibliography> |