XmlValidationReader and xs:AnyType

  • Thread starter Thread starter Soren S. Jorgensen
  • Start date Start date
S

Soren S. Jorgensen

Hi,

I'm using .NET 1.1



Under a specific node in my XML schema I want user of my app to have the
ability to put in any XML he/she chooses. So I defined this parent node as
xs:AnyType. The rest of the XML file should be validated against the schema
using the XmlValidationReader - but the reader complains about not knowing
the XML put into the node. Btw. the XML is validated fine in XmlSpy.



Anyway to get around this ??



I thought about separating this "unknown" XML from the "known" XML - but
this creates a new set of problems.





In advance, thanks.



Soren
 
Under a specific node in my XML schema I want user of my app to have the ability to put in any XML he/she chooses. So
I defined this parent node as xs:AnyType. The rest of the XML file should be validated against the schema using the
XmlValidationReader - but the reader complains about not knowing the XML put into the node. Btw. the XML is validated
fine in XmlSpy.

You could drop this internal data inside a CDATA node, it's not as pretty but would circumvent the problem.
Hope this helps,

Mike


- Microsoft Visual Basic MVP -
E-Mail: (e-mail address removed)
WWW: Http://EDais.mvps.org/
 
Back
Top