X-Git-Url: https://git.llucax.com/z.facultad/75.10/miklolife.git/blobdiff_plain/654bbdf445d46de05b2c9e1b269ae55a6811a0f9..afbf89745cac12021bfe71bc6739dbd9459cacc0:/demo/src/Reportes/InfoPrestacionesReport.cs diff --git a/demo/src/Reportes/InfoPrestacionesReport.cs b/demo/src/Reportes/InfoPrestacionesReport.cs index 277bef0..6ca31d6 100644 --- a/demo/src/Reportes/InfoPrestacionesReport.cs +++ b/demo/src/Reportes/InfoPrestacionesReport.cs @@ -32,8 +32,6 @@ namespace Reportes #region Campos Privados - private bool _esBienFormado = true; - private string _pathArchivo = string.Empty; private string _cuitPrestador; private DateTime _fechaEnvio; @@ -148,31 +146,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();