Versions in this module Expand all Collapse all v0 v0.9.0 Dec 30, 2025 Changes in this version + func Format() string + func InterfaceToNode(v interface{}) (ast.SchemaNode, error) + func Marshal(v interface{}) ([]byte, error) + func MarshalIndent(v interface{}, prefix, indent string) ([]byte, error) + func NodeToInterface(node ast.SchemaNode) interface + func Parse(input string) (ast.SchemaNode, error) + func ParseReader(reader io.Reader) (ast.SchemaNode, error) + func ReleaseTree(node ast.SchemaNode) + func Render(node ast.SchemaNode) ([]byte, error) + func RenderIndent(node ast.SchemaNode, prefix, indent string) ([]byte, error) + func Unmarshal(data []byte, v interface{}) error + func Validate(input string) error + func ValidateReader(reader io.Reader) error + type Element struct + func NewElement() *Element + func ParseElement(input string) (*Element, error) + func (e *Element) Attr(name, value string) *Element + func (e *Element) Attrs() []string + func (e *Element) CDATA(value string) *Element + func (e *Element) Child(name string, child *Element) *Element + func (e *Element) ChildText(name, text string) *Element + func (e *Element) Children() []string + func (e *Element) Get(key string) (interface{}, bool) + func (e *Element) GetAttr(name string) (string, bool) + func (e *Element) GetCDATA() (string, bool) + func (e *Element) GetChild(name string) (*Element, bool) + func (e *Element) GetText() (string, bool) + func (e *Element) Has(key string) bool + func (e *Element) HasAttr(name string) bool + func (e *Element) Keys() []string + func (e *Element) Remove(key string) *Element + func (e *Element) RemoveAttr(name string) *Element + func (e *Element) Set(key string, value interface{}) *Element + func (e *Element) Text(value string) *Element + func (e *Element) ToMap() map[string]interface{} + func (e *Element) XML(elementName string) (string, error) + func (e *Element) XMLIndent(elementName, prefix, indent string) (string, error) + type Marshaler interface + MarshalXML func() ([]byte, error)