Exemplo n.º 1
0
 /// <summary>
 /// Parses the specified 'XmlSourceSupport' and processes the events over the specified handler, and 
 /// resolves the entities with the specified URI.
 /// </summary>
 /// <param name="source">The 'XmlSourceSupport' instance with the XML.</param>
 public virtual void parse(XmlSourceSupport source)
 {
     if (source.Characters != null)
         parse(source.Characters.BaseStream);
     else
     {
         if (source.Bytes != null)
             parse(source.Bytes);
         else
         {
             if (source.Uri != null)
                 parse(source.Uri);
             else
                 throw new System.Xml.XmlException("The XmlSource class can't be null");
         }
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Parses the specified 'XmlSourceSupport' instance and process the events over the specified handler, 
 /// and resolves the entities with the specified URI.
 /// </summary>
 /// <param name="source">The 'XmlSourceSupport' that contains the XML.</param>
 /// <param name="handler">The handler that manages the parser events.</param>
 public virtual void parse(XmlSourceSupport source, IXmlSaxContentHandler handler)
 {
     if (source.Characters != null)
         parse(source.Characters.BaseStream, handler);
     else
     {
         if (source.Bytes != null)
             parse(source.Bytes, handler);
         else
         {
             if (source.Uri != null)
                 parse(source.Uri, handler);
             else
                 throw new System.Xml.XmlException("The XmlSource class can't be null");
         }
     }
 }