XmlReader.Read produce an exception




Hi

We have the following problem:
We get at the validation of an XML file against the corresponding schema
an internal exception in the XML reader. (Validation of an XML file
according to
MSDN Help)
The exception occurs also in the Visual Studio designer, this exception
appears in the
Error list when the XML file is loaded with the schema.
The XML and the schema should be valid.

It occurs with the following XML file and schema: open Trans 2.1fd
-> Http://www.opentrans.org/
-> \ Documents and files \ files openTRANS 2.1 \ openTRANS 2.1 (final draft
- draft) \ openTRANS 2.1fd english all-in-one package

These are the schema and a sample file, which we want to validate.

Can someone confirm this error?

How can I fix this error in Visual Studio or in my code?

Bye
knoxi
.



Relevant Pages

  • Re: default namespace / Xmlvalidatingreader
    ... You dont get an exception in the case of the second file, ... validation warning should be thrown. ... XmlReader readerToUse = validatingReader; ...
    (microsoft.public.dotnet.xml)
  • Re: XmlValidatingReader / Default Namespace
    ... You dont get an exception in the case of the second file, ... validation warning should be thrown. ... XmlReader readerToUse = validatingReader; ...
    (microsoft.public.dotnet.xml)
  • Re: InvalidOperationException: ReadElementContentAsString method is not supported on node type None
    ... I want to import a user uploaded XML file into a database. ... XmlReaderSettings readerSettings = new XmlReaderSettings; ... now I have an XmlReader object with a schema so I check for validation. ...
    (microsoft.public.dotnet.xml)
  • Problem with partial validation
    ... I have a problem when I select node elements from an xml file and validata ... I have defined a schema for details of a particular service request. ... Is the definition of namespace in the selected node causing the validation ...
    (microsoft.public.dotnet.xml)
  • Re: SAX parser problem
    ... against a given schema. ... turns on validation, whether it be against a DTD or any other schema ... attribute within the XML file, which will probably be in a remote ... the parser up and not by simply using the setValidationmethod. ...
    (comp.lang.java.programmer)