Hi, I am having a problem figuring out how to validate an embedded document
and I was hoping I could get a little help.  I have a schema that defines
the complex type listed below.

paramsSchema.xsd
...
<xsd:complexType name="paramsType">
  <xsd:sequence>
    <xsd:element name="xmlParam" minOccurs="0" maxOccurs="unbounded">
      <xsd:complexType>
          <xsd:sequence>
            <xsd:any namespace="##other" maxOccurs="unbounded"/>
          </xsd:sequence>
          <xsd:attribute name="name" type="xsd:string" use="required"/>
        </xsd:complexType>
    </xsd:element>
  </xsd:sequence>
</xsd:complexType>


A valid instance could be:


<params>
  <xmlParam name="credentials">
    <userCredentials xmlns = "http://www.foo.org/security";>
      <username>Jaime</username>
      <password>foo</password>
    </userCredentials>
  </xmlParam>
</params>


My goal is to validate both the userCredentials portion with the appropriate
schema and the params document with params.xsd.  I am unable to import the
schema into params.xsd because I do not own the file.  I would not be
adverse to importing the userCredentails programmatically without modifying
the schema.

Thank you in advance,
Jaime Meritt




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to