Documentation ¶
Overview ¶
Package xml provides an XSD-based dynamically typed xml decoder.
Index ¶
Constants ¶
View Source
const ( StringType = iota IntType FloatType BoolType )
Variables ¶
This section is empty.
Functions ¶
func Details ¶
Details returns type and plurality details obtained from the provided XSD doc. Only interesting nodes are retained in the type hint tree. Interesting nodes are either plural, integer, float or bool, or have children at some depth that are plural, integer float or bool.
func Unmarshal ¶
func Unmarshal(r io.Reader, details map[string]Detail) (cdata string, elems map[string]any, err error)
Unmarshal decodes the data in r using type and plurality hints in details. If details is nil, best effort plurality assessment will be made and all data will be represented as strings.
Types ¶
Click to show internal directories.
Click to hide internal directories.