Documentation ¶
Index ¶
- type Element
- func (e *Element) Compare(o *Element) bool
- func (e *Element) Decode(decoder *xml.Decoder) error
- func (e *Element) FindAll(name string) []*Element
- func (e *Element) FindAllBySpaceAndLocalName(space, localName string) []*Element
- func (e *Element) FindID(id string) *Element
- func (e *Element) GetAttribute(name string) string
- type ValidationError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Element ¶
Element is a representation of an SVG element.
func DecodeFirst ¶
DecodeFirst creates the first element from the decoder.
func NewElement ¶
func NewElement(token xml.StartElement) *Element
NewElement creates element from decoder token.
func (*Element) FindAllBySpaceAndLocalName ¶
FindAllBySpaceAndLocalName finds all children with the specific space and local name.
func (*Element) GetAttribute ¶ added in v1.0.1
GetAttribute returns the value of the attribute with the given name.
type ValidationError ¶
type ValidationError struct {
// contains filtered or unexported fields
}
ValidationError contains errors which have occured when parsing svg input.
func (ValidationError) Error ¶
func (err ValidationError) Error() string
Click to show internal directories.
Click to hide internal directories.