Re: XmlValidatingReader and XmlResolver problems

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: damien morton (google_at_bitfurnace.com)
Date: 06/20/04

  • Next message: Oleg Tkachenko [MVP]: "Re: Merging XML Documents XmlTextReader against XmlDocument"
    Date: 19 Jun 2004 23:27:13 -0700
    
    

    "Oleg Tkachenko [MVP]" <oleg@no_!spam!_please!tkachenko.com> wrote in message news:<eOBjtNiVEHA.2700@TK2MSFTNGP10.phx.gbl>...
    > damien morton wrote:
    >
    > Well, your XML document has no reference to a schema and you don't
    > provide schema for http://ReflectionXmlSerializer/1/1 namespace in your
    > C# code - how do you think XmlValidatingReader is supposed to figure out
    > where the schema is? So you hacve either add xsi:schemaLocation
    > attribute to your document or add the schema to
    > XmlValidatingReader.Schemas collection.

    Thanks for your response Oleg. I thought that XmlValidatingReader used
    the namespace declarations to find the schema through the XmlResolver.
    Obviously this belief was not correct.


  • Next message: Oleg Tkachenko [MVP]: "Re: Merging XML Documents XmlTextReader against XmlDocument"

    Relevant Pages

    • Re: Simple XML & XSD Question
      ... that are all supposed to conform to a schema. ... > include a reference to the XSD in the XML document, ... validating parser will validate the document against that schema. ...
      (microsoft.public.dotnet.xml)
    • external id references
      ... I am working with a schema that uses xsd:ID to tag certain elements. ... The corresponding elements that reference these elements use xsd:IDREF. ... If all were externalized into a separate xml document (say ...
      (comp.text.xml)
    • Re: Find records that do not conform to schema
      ... As long as I can discover bad nodes (exceptions) and walk up to get the node ... > Xml Schema validation would be a good solution for your problem. ... > Given an XML document, and a XSD Schema document it needs to conform to, you ...
      (microsoft.public.dotnet.xml)
    • orchestration processing bulk / row by row ???
      ... step2 is again Xml document but it has a very strict schema. ... when biztalk orchestration procedes to the second step it'll try to ...
      (microsoft.public.biztalk.general)
    • XML schemas .NET 2.0
      ... I have an XML schema and I am trying to validate any XML document sent ... XmlReaderSettings(); ...
      (microsoft.public.dotnet.xml)