K kurotsuke Aug 1, 2004 #1 I'm using DOM to read an XML file. How can I do validation without reading the xml file twice? Thanks.
I'm using DOM to read an XML file. How can I do validation without reading the xml file twice? Thanks.
M Martin Honnen Aug 1, 2004 #2 kurotsuke said: I'm using DOM to read an XML file. How can I do validation without reading the xml file twice? Click to expand... Well, XmlDocument has a method Load which allows to pass in an XmlReader and as XmlValidatingReader is a subclass of XmlReader you simply need to use that method and pass in an XmlValidatingReader.
kurotsuke said: I'm using DOM to read an XML file. How can I do validation without reading the xml file twice? Click to expand... Well, XmlDocument has a method Load which allows to pass in an XmlReader and as XmlValidatingReader is a subclass of XmlReader you simply need to use that method and pass in an XmlValidatingReader.
M Mohamoss Aug 1, 2004 #3 HI you can use the XMLValidatating reader object http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/ frlrfsystemxmlxmlvalidatingreaderclasstopic.asp Mohamed Mahfouz MEA Developer Support Center ITworx on behalf of Microsoft EMEA GTSC
HI you can use the XMLValidatating reader object http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/ frlrfsystemxmlxmlvalidatingreaderclasstopic.asp Mohamed Mahfouz MEA Developer Support Center ITworx on behalf of Microsoft EMEA GTSC