I started with the following error...
-------------------------------------------------------
An error occured while loading the schema with TargetNamespace
'http://www.w3.org/2001/XMLSchema' referenced in this document.
The value for the 'base' attribute is invalid - 'xsd:string'
is an invalid value for the 'base' attribute.
An error occured at the file:///C:Program Files/Microsoft Visual Studio
.NET 2003
/Common7/Packages/Schemas/XML/xsdschema.xsd.(516,16).
after trying to load this schema file:
-------------------------------------------------------
(fragment)
<?xml version="1.0" ?>
<!-- Filename: ownership4Document.xsd.xml -->
<!-- Purpose: Defines the elements specific to a 4 Ownership primary
document. -->
<!-- Version: X0202 -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
xmlns:sql="urn:schemas-microsoft-com:mapping-schema"> <!-- Added for
SQLXMLBulkLoad Annotation purposes -->
<xs:include schemaLocation=".//ownershipDocumentCommon.xsd.xml" />
<!-- this schema applies exclusively to a "4" document -->
<xs:simpleType name="DOCUMENT_TYPE">
<xs:restriction base="xs:string">
<xs:pattern value="4" />
</xs:restriction>
</xs:simpleType>
Then I changed the offending line in the VS.NET 2003 xsdschema.xsd from:
<restriction base="xsd:string"> ....changed to <restriction
base="string">
--------------------------------------------------------
and now I get this error:
Dataset does not support "union' or 'list' as SimpleType.
================================================== =====
How do I get past this error so that I can load my schema file?
-------------------------------------------------
Here's the entire schema if anyone is interested.
<?xml version="1.0"?>
<!-- Filename: ownership4Document.xsd.xml -->
<!-- Purpose: Defines the elements specific to a 4 Ownership primary
document. -->
<!-- Version: X0202 -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
xmlns:sql="urn:schemas-microsoft-com:mapping-schema"> <!-- Added for
SQLXMLBulkLoad Annotation purposes -->
<xs:include schemaLocation=".//ownershipDocumentCommon.xsd.xml"/>
<!-- this schema applies exclusively to a "4" document -->
<xs:simpleType name="DOCUMENT_TYPE">
<xs:restriction base="xs:string">
<xs:pattern value="4"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="TRANS_FORM4_TYPE_PICKLIST">
<xs:annotation>
<xs:documentation>
A "4" document can have security transactions of types 4
and 5.
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:pattern value="4|5"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="TRANSACTION_CODING_FOR_4">
<xs:annotation>
<xs:documentation>
The transactionFormType can be 4 or 5.
The transactionCode is mandatory.
The equitySwapInvolved flag is mandatory.
A "4" transaction is assumed on-time.
A "5" transaction is assumed early.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="transactionFormType"
type="TRANS_FORM4_TYPE_PICKLIST" minOccurs="1"/>
<xs:element name="transactionCode"
type="TRANS_CODE_PICKLIST" minOccurs="1"/>
<xs:element name="equitySwapInvolved" type="xs:boolean"
minOccurs="1"/>
<xs:element name="footnoteId" type="FOOTNOTE_ID"
minOccurs="0" maxOccurs="99"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="NONDERIVATIVE_TRANSACTION"
sql:relation="ownershipDocument">
<xs:sequence>
<xs:element name="securityTitle"
sql:field="securityTitle" type="SECURITY_TITLE"
minOccurs="1"/>
<xs:element name="transactionDate"
sql:field="transactionDate" type="DATE_WITH_FOOTNOTE"
minOccurs="1"/>
<xs:element name="deemedExecutionDate"
sql:field="deemedExecutionDate" type="DATE_AND_OR_FOOTNOTE"
minOccurs="0"/>
<xs:element name="transactionCoding"
sql:field="transactionCoding" type="TRANSACTION_CODING_FOR_4"
minOccurs="0"/>
<xs:element name="transactionTimeliness"
sql:field="transactionTimeliness" type="TRANSACTION_TIMELINESS"
minOccurs="0"/>
<xs:element name="transactionAmounts"
sql:field="transactionAmounts" type="NONDERIV_TRANSACT_AMOUNTS"
minOccurs="1"/>
<xs:element name="postTransactionAmounts"
sql:field="postTransactionAmounts" type="POST_TRANSACTION_AMOUNTS"
minOccurs="1"/>
<xs:element name="ownershipNature"
sql:field="ownershipNature" type="OWNERSHIP_NATURE"
minOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="DERIVATIVE_TRANSACTION">
<xs:sequence>
<xs:element name="securityTitle"
type="SECURITY_TITLE" minOccurs="1"/>
<xs:element name="conversionOrExercisePrice"
type="OPT_NUMBER_WITH_FOOTNOTE" minOccurs="1"/>
<xs:element name="transactionDate"
type="DATE_WITH_FOOTNOTE" minOccurs="1"/>
<xs:element name="deemedExecutionDate"
type="DATE_AND_OR_FOOTNOTE" minOccurs="0"/>
<xs:element name="transactionCoding"
type="TRANSACTION_CODING_FOR_4" minOccurs="0"/>
<xs:element name="transactionTimeliness"
type="TRANSACTION_TIMELINESS" minOccurs="0"/>
<xs:element name="transactionAmounts"
type="DERIV_TRANSACT_AMOUNTS" minOccurs="1"/>
<xs:element name="exerciseDate"
type="OPT_DATE_WITH_FOOTNOTE" minOccurs="1"/>
<xs:element name="expirationDate"
type="OPT_DATE_WITH_FOOTNOTE" minOccurs="1"/>
<xs:element name="underlyingSecurity"
type="UNDERLYING_SECURITY" minOccurs="1"/>
<xs:element name="postTransactionAmounts"
type="POST_TRANSACTION_AMOUNTS" minOccurs="1"/>
<xs:element name="ownershipNature"
type="OWNERSHIP_NATURE" minOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="NONDERIVATIVE_HOLDING">
<xs:sequence>
<xs:element name="securityTitle"
type="SECURITY_TITLE" minOccurs="1"/>
<xs:element name="postTransactionAmounts"
type="POST_TRANSACTION_AMOUNTS" minOccurs="1"/>
<xs:element name="ownershipNature"
type="OWNERSHIP_NATURE" minOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="DERIVATIVE_HOLDING">
<xs:sequence>
<xs:element name="securityTitle"
type="SECURITY_TITLE" minOccurs="1"/>
<xs:element name="conversionOrExercisePrice"
type="OPT_NUMBER_WITH_FOOTNOTE" minOccurs="1"/>
<xs:element name="exerciseDate"
type="OPT_DATE_WITH_FOOTNOTE" minOccurs="1"/>
<xs:element name="expirationDate"
type="OPT_DATE_WITH_FOOTNOTE" minOccurs="1"/>
<xs:element name="underlyingSecurity"
type="UNDERLYING_SECURITY" minOccurs="1"/>
<xs:element name="postTransactionAmounts"
type="POST_TRANSACTION_AMOUNTS" minOccurs="1"/>
<xs:element name="ownershipNature"
type="OWNERSHIP_NATURE" minOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="NONDERIVATIVE_TABLE">
<xs:annotation>
<xs:documentation>
Can have up to 30 entries in the Non-Derivative Table.
This is Table 1 on the printed form.
Can have any combination of Transactions and Holdings in
any order.
</xs:documentation>
</xs:annotation>
<xs:choice minOccurs="0" maxOccurs="30">
<xs:element name="nonDerivativeTransaction"
type="NONDERIVATIVE_TRANSACTION"/>
<xs:element name="nonDerivativeHolding"
type="NONDERIVATIVE_HOLDING"/>
</xs:choice>
</xs:complexType>
<xs:complexType name="DERIVATIVE_TABLE">
<xs:annotation>
<xs:documentation>
Can have up to 30 entries in the Derivative Table. This
is Table 2 on the printed form.
Can have any combination of Transactions and Holdings in
any order.
</xs:documentation>
</xs:annotation>
<xs:choice minOccurs="0" maxOccurs="30">
<xs:element name="derivativeTransaction"
type="DERIVATIVE_TRANSACTION"/>
<xs:element name="derivativeHolding"
type="DERIVATIVE_HOLDING"/>
</xs:choice>
</xs:complexType>
<xs:element name="ownershipDocument"
sql:relation="ownershipDocument">
<xs:complexType>
<xs:sequence>
<xs:element name="schemaVersion"
sql:field="schemaVersion" type="SCHEMA_VERSION" minOccurs="0"
maxOccurs="1"/>
<xs:element name="documentType"
sql:field="documentType" type="DOCUMENT_TYPE" minOccurs="1"
maxOccurs="1"/>
<xs:element name="periodOfReport"
sql:field="periodOfReport" type="xs:date" minOccurs="1"
maxOccurs="1"/>
<xs:element
name="notSubjectToSection16"sql:field="notSubjectT oSection16"
type="xs:boolean" minOccurs="0" maxOccurs="1"/>
<xs:element name="issuer"
sql:field="issuer" type="ISSUER" minOccurs="1"
maxOccurs="1"/>
<xs:element name="reportingOwner"
sql:field="reportingOwner" type="REPORTING_OWNER" minOccurs="1"
maxOccurs="10"/>
<xs:element name="nonDerivativeTable"
sql:field="nonDerivativeTable" type="NONDERIVATIVE_TABLE"
minOccurs="0" maxOccurs="1"/>
<xs:element name="derivativeTable"
sql:field="derivativeTable" type="DERIVATIVE_TABLE" minOccurs="0"
maxOccurs="1"/>
<xs:element name="footnotes"
sql:field="footnotes" type="FOOTNOTE_GROUP" minOccurs="0"
maxOccurs="1"/>
<xs:element name="remarks"
sql:field="remarks" type="STRING_2000" minOccurs="0"
maxOccurs="1"/>
<xs:element name="ownerSignature"
sql:field="ownerSignature" type="SIGNATURE" minOccurs="1"
maxOccurs="10"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
*** Sent via Developersdex http://www.developersdex.com ***