Esempio n. 1
0
        // Actual parsing is done here
        private void Parse(XmlNode node)
        {
            // First, check if it iself is on the SVG namespace and if it is "svg"
            if (node.NamespaceURI != Namespace)
            {
                throw new InvalidDataException("The SVG root element must be in the SVG namespace!");
            }
            if (node.LocalName != "svg")
            {
                throw new InvalidDataException("The SVG root element must be svg!");
            }

            // Now, parse the root element
            Root = new SvgGroup(node, null);
        }
Esempio n. 2
0
 public SvgPath(XmlNode child, SvgGroup parent)
     : base(child, parent)
 {
 }