Trouble with XML validation using XSD

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MarkJohnson
    New Member
    • Mar 2008
    • 1

    Trouble with XML validation using XSD

    Hi,

    I have a question about validating an XML document against an XSD schema. If I have an element with name "XYZ" and of complex type "ABC", can I validate against either the element name, type or both?

    e.g.

    XSD:
    <xsd:element name="XYZ" type="ism:ABC"/>
    <xsd:complexTyp e name="ABC">
    <ABC content>
    </xsd:complexType >

    Can I then validate an XML having <XYZ> nodes, <ABC> nodes, or doesn't it matter which I use?

    Thanks
Working...