allow any child element in

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I want to create an xsd so that I can validate xml against it. All I care
is that the root node (named brl) exists in the document. Any other node
can go inside it. If I validate an xml file with just the brl node it
validates fine, but if I put other elements in I get errors. How can I
change the xsd so that any child elements/attributes of brl validate ok,
without having to explicitly declare them in the xsd? (I've included my
xml, xsd and the errors below)

XSD:
<?xml version="1.0" encoding="utf-16"?>
<xs:schema xmlns:b="http://schemas.microsoft.com/BizTalk/2003";
targetNamespace="http://schemas.microsoft.com/businessruleslanguage/2002";
xmlns:xs="http://www.w3.org/2001/XMLSchema";>
<xs:element name="brl" type="xs:anyType">
<xs:annotation>
<xs:documentation>Business Rules Engine Deployment
File</xs:documentation>
</xs:annotation>
</xs:element>
</xs:schema>

XML:
<?xml version="1.0" encoding="utf-8"?>
<brl xmlns="http://schemas.microsoft.com/businessruleslanguage/2002";>
<ruleset name="InteriorHealth.Orchestrations.InterRaiADT.RouteFilter">
<version major="1" minor="0" description="" modifiedby="IHA\chaj17"
date="2005-09-26T16:40:45.6215718-07:00" />

</ruleset>
</brl>

Errors:
The 'http://schemas.microsoft.com/businessruleslanguage/2002:ruleset'
element is not declared. An error occurred at , (3, 4).
Could not find schema information for the attribute 'name'. An error
occurred at , (3, 12).
The 'http://schemas.microsoft.com/businessruleslanguage/2002:version'
element is not declared. An error occurred at , (4, 6).
Could not find schema information for the attribute 'major'. An error
occurred at , (4, 14).
Could not find schema information for the attribute 'minor'. An error
occurred at , (4, 24).
Could not find schema information for the attribute 'description'. An error
occurred at , (4, 34).
Could not find schema information for the attribute 'modifiedby'. An error
occurred at , (4, 49).
Could not find schema information for the attribute 'date'. An error
occurred at , (4, 73).


.



Relevant Pages

  • Re: Referencing the xml: namespace in BTS2004
    ... namesace as any other namespace instead of the reserved namespace the W3C ... except for the "lang" attribute qualified to the special xml: ... > able to validate your xsd file and also xml.xsd and you should now be able ... > generated XSD was equivalent to the original DTD. ...
    (microsoft.public.biztalk.general)
  • Re: Obsessive Compulsive XMLing
    ... As in 'validate the XML against a series of rules'? ... DTD, XSD, Schematron, Relax-NG.. ...
    (comp.lang.java.programmer)
  • XML validation of single value without entire XML document
    ... entire XML document to validate against the schema. ... Within XSD certain restrictions are defined for a particular ... Is it at all possible to validate a simple string value against these ...
    (microsoft.public.dotnet.xml)
  • Re: vs2003 & xsd:extension
    ... Your xml and xsd validate fine with the validation engine in VS 2003. ... PTR --> ...
    (microsoft.public.dotnet.xml)
  • Re: Cannot deserialize XML even though it validates against generated XSD file.
    ... referencing the derived classes. ... I have generated XSD from the classes for this ... I have made an XML file that validates against that XSD. ... However, when I try to deserialize from the XML file, I get complaints ...
    (microsoft.public.dotnet.general)