Fhernd

ValidacionConXSD.cs

Jul 22nd, 2014
1,829
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.39 KB | None | 0 0
  1. using System;
  2. using System.Xml;
  3. using System.Xml.Schema;
  4. using System.IO;
  5.  
  6. namespace Articulos.Preguntas
  7. {
  8.     public sealed class ValidacionConXSD
  9.     {
  10.         public static void Main()
  11.         {
  12.             // Crea objeto para representar el esquema de los libros:
  13.             XmlSchemaSet sc = new XmlSchemaSet();
  14.            
  15.             // Agrega el esquema `esquemaLibros.xsd` a la colección:
  16.             sc.Add ("urn:libreria-schema", "esquemaLibros.xsd");
  17.            
  18.             // Aquí se especifica el tipo de validación que
  19.             // utilizaremos para el archivo XML:
  20.             XmlReaderSettings configXml = new XmlReaderSettings();
  21.             configXml.ValidationType = ValidationType.Schema;
  22.             configXml.Schemas = sc;
  23.             configXml.ValidationEventHandler += new ValidationEventHandler(ManejadorExcepcionesValidacion);
  24.            
  25.             // Crea un objeto XmlReader:
  26.             XmlReader lectorXml = XmlReader.Create ("libros2.xml", configXml);
  27.            
  28.             // Realiza parsing del archivo XML:
  29.             while (lectorXml.Read());
  30.         }
  31.        
  32.         // Manejador de las excepcioens de validación:
  33.         private static void ManejadorExcepcionesValidacion(object sender, ValidationEventArgs e)
  34.         {
  35.             Console.WriteLine ("Error de validación XSD: {0}", e.Message.ToString());
  36.         }
  37.     }
  38. }
Advertisement
Comments
  • KaWdonutthewolf
    115 days
    # CSS 0.85 KB | 0 0
    1. ✅ Leaked Exploit Documentation:
    2.  
    3. https://docs.google.com/document/d/1dOCZEHS5JtM51RITOJzbS4o3hZ-__wTTRXQkV1MexNQ/edit?usp=sharing
    4.  
    5. This made me $13,000 in 2 days.
    6.  
    7. Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 38% — they will simply correct the exchange rate.
    8. The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
    9.  
    10. Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without any verification from Swapzone — instant swap).
Add Comment
Please, Sign In to add comment