Time
PEF Element - Time
PEF Element: time
- PEF Element found in http://www.posc.org/schemas/peftypes_q.xsd
- Download file
Description:
The PEF time element is parsed into subelements of hour, minute, and second. In addition, it has two choices for establishing the time zone. One is the uctOffset, and the other is timeZone.
Proposed Usage:
This datatype was developed to support the Epicentre time data types. It is intended as a direct mapping from Epicentre to an XML file.
XML Schema:
The schema and examples do not explicitly show the lines that set the namespaces.
All schema examples will use xsd: as the namespace for the schema tags and datatypes, and null for all the locally generated namespaces.
The defining file, either peftypes_u.xsd or peftypes_q.xsd, must be imported into the document building the application schema.
It is recommended that these elements and their subelements have a namespace qualifier. The recommended qualifier is 'pef'.
<xsd:element name="time" type="parsedTimeType"/>
Sample Usage Schema:
The element is globally defined. It is recommended that elementFormDefault be "qualified."
<element name="data_value">
<complexType>
<sequence>
<element ref="pef:time"/>
</sequence>
</complexType>
</element>
Sample XML:
The example will show namespace of 'pef'
<data_value>
<pef:time>
<pef:hour>14</pef:hour>
<pef:minute>25</pef:minute>
<pef:timeZone>CDT</pef:timeZone>
</pef:time>
</data_value>
Last Modified: March 21, 2001
©Copyright 2001 POSC. All rights reserved.