String to SVG parser
An Element consists of a tag name, a list of attributes, a list of children nodes.
<svg xmlns="http://www.w3.org/2000/svg"></svg>will be parsed as
Element "svg" [ ( "xmlns", "http://www.w3.org/2000/svg" ) ] []A name/value pair to denote attribute.
Parses String to Html msg. Usually this is the only function you need.
Parses String to SvgNode. Normally you will use parse instead of this.
parse "<svg xmlns=\"http://www.w3.org/2000/svg\"></svg>"
== Ok (SvgElement (Element "svg" [ ( "xmlns", "http://www.w3.org/2000/svg" ) ] []))Convert SvgNode to Svg msg. This is useful when you want to manipulate SvgNode before conveting to Html msg.
Convert SvgAttribute to Attribute msg. This is useful when you want to manipulate SvgAttribute before converting to Html msg.
A SVG node can be one of the three: SvgElement, SvgText or SvgComment.