Hi Derek,
Thanks for the response. Below is a listing of the schema. The problem is
that I have to write a program that generates an XML file that conforms to
this schema. I cannot make changes to it, because it was developed by
someone else. If there is something wrong with the schema I can notify them
and hope that they will make the change. But, I suspect that the schema is
ok because other people are using it.
Thanks again for your response.
<?xml version="1.0"?>
<xsd:schema
targetNamespace="http://apply.grants.gov/system/MetaGrantApplication"
xmlns:grant="http://apply.grants.gov/system/MetaGrantApplication"
xmlns:header="http://apply.grants.gov/system/Header-V1.0"
xmlns:footer="http://apply.grants.gov/system/Footer-V1.0"
xmlns:att="http://apply.grants.gov/system/Attachments-V1.0"
xmlns:SF424="http://apply.grants.gov/forms/SF424-V1.0"
xmlns:SF424B="http://apply.grants.gov/forms/SF424B-V1.0"
xmlns:SF424A="http://apply.grants.gov/forms/SF424A-V1.0"
xmlns:SFLLL="http://apply.grants.gov/forms/SFLLL-V1.0"
xmlns:SF424D="http://apply.grants.gov/forms/SF424D-V1.0"
xmlns:SF424C="http://apply.grants.gov/forms/SF424C-V1.0"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
attributeFormDefault="qualified">
<!--System Data Types-->
<xsd:import namespace="http://apply.grants.gov/system/Header-V1.0"
schemaLocation="http://apply.grants.gov/system/schemas/Header-V1.0.xsd"/>
<xsd:import namespace="http://apply.grants.gov/system/Footer-V1.0"
schemaLocation="http://apply.grants.gov/system/schemas/Footer-V1.0.xsd"/>
<xsd:import namespace="http://apply.grants.gov/system/Attachments-V1.0"
schemaLocation="http://apply.grants.gov/system/schemas/Attachments-V1.0.xsd"/>
<!--Included Mandatory Forms-->
<xsd:import namespace="http://apply.grants.gov/forms/SF424-V1.0"
schemaLocation="http://apply.grants.gov/forms/schemas/SF424-V1.0.xsd"/>
<xsd:import namespace="http://apply.grants.gov/forms/SF424B-V1.0"
schemaLocation="http://apply.grants.gov/forms/schemas/SF424B-V1.0.xsd"/>
<xsd:import namespace="http://apply.grants.gov/forms/SF424A-V1.0"
schemaLocation="http://apply.grants.gov/forms/schemas/SF424A-V1.0.xsd"/>
<!--Included Optional Forms-->
<xsd:import namespace="http://apply.grants.gov/forms/SFLLL-V1.0"
schemaLocation="http://apply.grants.gov/forms/schemas/SFLLL-V1.0.xsd"/>
<xsd:import namespace="http://apply.grants.gov/forms/SF424D-V1.0"
schemaLocation="http://apply.grants.gov/forms/schemas/SF424D-V1.0.xsd"/>
<xsd:import namespace="http://apply.grants.gov/forms/SF424C-V1.0"
schemaLocation="http://apply.grants.gov/forms/schemas/SF424C-V1.0.xsd"/>
<xsd:element name="GrantApplication">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="header:GrantSubmissionHeader"/>
<xsd:element name="Forms">
<xsd:complexType>
<xsd:all>
<!--Included Mandatory Forms-->
<xsd:element ref="SF424:GrantApplication"/>
<xsd:element ref="SF424B:Assurances"/>
<xsd:element ref="SF424A:BudgetInformation"/>
<!--Included Optional Forms-->
<xsd:element ref="SFLLL:LobbyingActivitiesDisclosure" minOccurs="0"/>
<xsd:element ref="SF424D:Assurances" minOccurs="0"/>
<xsd:element ref="SF424C:BudgetInformation" minOccurs="0"/>
</xsd:all>
</xsd:complexType>
</xsd:element>
<xsd:element ref="footer:GrantSubmissionFooter"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
"Derek Harmon" wrote:
"Dale Anderson" <Dale An******@discussions.microsoft.com> wrote in message
news:CB**********************************@microsof t.com... The schema has an element named
'GrantApplication' and one with a namespace prefix named
'SF424:GrantApplication'. When I try to read this schema in, I get an
exception saying 'A datatable named 'GrantApplication' alread belongs to this
dataset'.
The first thing I'd check is the namespace URIs to see if they're really the same.
Remember that if you have a default namespace URI in effect, like urn:my-types,
and then have an xmlns declaration associating the prefix, SF424, with the same
namespace URI, urn:my-types, then the two references to GrantApplication are
identical.
Derek Harmon