Hi,<br>In <a href="http://rs.tdwg.org/tapir/1.0/schema/tapir.xsd">http://rs.tdwg.org/tapir/1.0/schema/tapir.xsd</a>, the definition of the <custom> element is such that any elements may be included, however the <xsd:any> element definition does not include a "processContents" attribute, in which case a validator will use the default of "strict" which requires that a definition of the contents are available and valid (
i.e. an appropriate schema is available to validate the element content). The relevant XML schema reference is: <a href="http://www.w3.org/TR/2004/REC-xmlschema-1-20041028/structures.html#element-any">http://www.w3.org/TR/2004/REC-xmlschema-1-20041028/structures.html#element-any
</a><br><br>I'm curious if that was the intent of the TAPIR design? If not, then including an attribute in <xsd:any> of processContents="lax" (validate if possible but ignore problems) or processContents="skip" (don't validate) would enable quick evaluation of TAPIR response documents using xml schema validation tools without requiring that providers explicitly include a schema defining the content of the <custom> element (which seems overly restrictive). An appropriate change could be:
<br><br><span style="font-family: courier new,monospace;"> <xsd:element name="custom"></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <xsd:annotation>
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <xsd:documentation>Extension slot for additional information not defined in the schema.</xsd:documentation>
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> </xsd:annotation></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
<xsd:complexType></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <xsd:sequence></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
<xsd:any minOccurs="0" maxOccurs="unbounded" processContents="lax" ></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <xsd:annotation>
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <xsd:documentation>For any custom extension. E.g what security related</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> capabilities does the provider have? Encryption, access restriction,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
etc.</xsd:documentation></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> </xsd:annotation></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> </xsd:any></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> </xsd:sequence></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> </xsd:complexType></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> </xsd:element></span><br style="font-family: courier new,monospace;">
<br>I do not believe this will change any functionality of TAPIR providers, but it will enable validation of responses such as:<br><br><span style="font-family: courier new,monospace;"><?xml version="1.0" encoding="utf-8" ?>
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"><response xmlns="<a href="http://rs.tdwg.org/tapir/1.0">http://rs.tdwg.org/tapir/1.0</a>" </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> xsi:schemaLocation="<a href="http://rs.tdwg.org/tapir/1.0/schema/tapir.xsd">http://rs.tdwg.org/tapir/1.0/schema/tapir.xsd</a>"></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <header></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <source accesspoint="<a href="http://lsid.herbimi.info/TapirDotNET/tapir.aspx/herbIMI">
http://lsid.herbimi.info/TapirDotNET/tapir.aspx/herbIMI</a>" </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> sendtime="2007-11-09T05:15:05">
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <software name="TapirDotNET" version="0.1 (revision )"/></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> </source></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <destination><a href="http://128.111.242.127">
128.111.242.127</a></destination></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <custom><skin>default</skin></custom></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> </header></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <pong/></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"></response></span><br style="font-family: courier new,monospace;"><br>which does not validate according to the current TAPIR schema.<br><br>Other places in the schema that may be a problem (because processContents is not explicitly stated) are:
<br><br>/xsd:schema/xsd:group[1]/xsd:sequence[1]/xsd:element[1]/xsd:complexType[1]/xsd:choice[1]/xsd:any[1]<br>/xsd:schema/xsd:complexType[34]/xsd:sequence[1]<br><br><br>regards,<br> Dave V.<br><br>