X-Git-Url: https://git.llucax.com/z.facultad/75.10/miklolife.git/blobdiff_plain/654bbdf445d46de05b2c9e1b269ae55a6811a0f9..5421c84a95c42db5c3b2753d556dd7efbd1a6b4e:/demo/src/Reportes/InfoPrestacionesReport.cs diff --git a/demo/src/Reportes/InfoPrestacionesReport.cs b/demo/src/Reportes/InfoPrestacionesReport.cs index 277bef0..a127f1c 100644 --- a/demo/src/Reportes/InfoPrestacionesReport.cs +++ b/demo/src/Reportes/InfoPrestacionesReport.cs @@ -148,31 +148,12 @@ namespace Reportes XmlValidatingReader valReader = new XmlValidatingReader( xmlDoc.OuterXml, XmlNodeType.Element, pc ); + valReader.Schemas.Add( string.Empty, this.XsdPathNombre ); valReader.ValidationType = ValidationType.Schema; - //XmlSchemaCollection schemaColl = new XmlSchemaCollection(); - //schemaColl.Add( null, this.XsdPathNombre ); - - valReader.Schemas.Add( "", this.XsdPathNombre ); // schemaColl ); valReader.ValidationEventHandler += new ValidationEventHandler(valReader_ValidationEventHandler); - //while ( valReader.Read() ); - - while (valReader.Read()) - { - if (valReader.IsStartElement()) - { - if (valReader.Prefix==String.Empty) - Console.WriteLine("<{0}>", valReader.LocalName); - else - { - Console.Write("<{0}:{1}>", valReader.Prefix, valReader.LocalName); - Console.WriteLine(" The namespace URI is " + - valReader.NamespaceURI); - } - } - } - + while (valReader.Read()) { } valReader.Close();