[xml] libxml2 support for xml schema data types



Hi,

 

I’m wondering if libxml2 supports XML Schema data types?

 

Something like:

 

<?xml version="1.0"?>

<weather xmlns="x-schema:weatherSchema.xml">

  <date>1970-09-30</date>

  <degrees>67.5</degrees>

</weather>

 

And

 

<Schema xmlns="urn:schemas-microsoft-com:xml-data" xmlns:dt="urn:schemas-microsoft-com:datatypes">

  <ElementType name="date" content="textOnly" dt:type="date"/>

  <ElementType name="degrees" content="textOnly" dt:type="float"/>

  <ElementType name="weather" content="eltOnly">

    <element type="date"/>

    <element type="degrees"/>

  </ElementType>

</Schema>

 

Can libxml2 figure out type of data in <date> and <degrees>?

 

I’d appreciate any help on this.

 

Please reply directly to: andricm @ cs.pdx.edu (in addition to mailing list)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]