Esempio n. 1
0
        /// <summary>
        /// Emulates the behavior of a SAX parser, it realizes the callback events of the parser.
        /// </summary>
        /// <param name="xmlContent"> </param>
        /// <param name="decodeAttributeValues"> indicates that xml attribute values are encode and should be decoded while parsing </param>
        public void parse(byte[] xmlContent, bool decodeAttributeValues)
        {
            MgSAXParser mgSAXParser = new MgSAXParser(this);

            mgSAXParser.parse(xmlContent, decodeAttributeValues);
        }
Esempio n. 2
0
        public static void Parse(string xmlContent, MgSAXHandler handler)
        {
            MgSAXParser mgSAXParser = new MgSAXParser(handler);

            mgSAXParser.Parse(xmlContent);
        }
Esempio n. 3
0
        /// <summary>
        /// Emulates the behavior of a SAX parser, it realizes the callback events of the parser.
        /// Assumes that the attribute values are not encoded
        /// </summary>
        public void parse(byte[] xmlContent)
        {
            MgSAXParser mgSAXParser = new MgSAXParser(this);

            mgSAXParser.parse(xmlContent, false);
        }