Home | History | Annotate | Download | only in xml

Lines Matching refs:XML

5 package xml
17 // BUG(rsc): Mapping between XML elements and data structures is inherently flawed:
18 // an XML element is an order-dependent collection of anonymous
24 // Unmarshal parses the XML-encoded data and stores the result in
31 // comparison to match XML element names to tag values and struct
34 // Unmarshal maps an XML element to a struct using the following rules.
36 // key 'xml' in the struct field's tag (see the example above).
39 // ",innerxml", Unmarshal accumulates the raw XML nested inside the
46 // "name" or "namespace-URL name", the XML element must have
50 // * If the XML element has an attribute whose name matches a
55 // * If the XML element has an attribute not handled by the previous
60 // * If the XML element contains character data, that data is
65 // * If the XML element contains comments, they are accumulated in
70 // * If the XML element contains a sub-element whose name matches
72 // will descend into the XML structure looking for elements with the
77 // * If the XML element contains a sub-element whose name matches
82 // * If the XML element contains a sub-element whose name matches a
86 // * If the XML element contains a sub-element that hasn't matched any
95 // Unmarshal maps an XML element to a string or []byte by saving the
105 // Unmarshal maps an XML element or attribute value to a slice by
109 // Unmarshal maps an XML element or attribute value to a bool by
112 // Unmarshal maps an XML element or attribute value to an integer or
117 // Unmarshal maps an XML element to a Name by recording the element
120 // Unmarshal maps an XML element to a pointer by setting the pointer
134 // a pointer to the start XML element to decode into v.
135 // It is useful when a client reads some raw XML tokens itself
151 // an XML element description of themselves.
153 // UnmarshalXML decodes a single XML element
157 // UnmarshalXML must consume exactly one XML element.
159 // a separate value with a layout matching the expected XML
163 // XML object one token at a time.
170 // an XML attribute description of themselves.
172 // UnmarshalXMLAttr decodes a single XML attribute.
190 // unmarshalInterface unmarshals a single XML element into val.
205 return fmt.Errorf("xml: %s.UnmarshalXML did not consume entire <%s> element", receiverType(val), start.Name.Local)
211 // unmarshalTextInterface unmarshals a single XML element into val.
236 // unmarshalAttr unmarshals a single XML attribute into val.
298 // Unmarshal a single XML element into val.
645 // unmarshalPath walks down an XML structure looking for wanted
647 // The consumed result tells whether XML elements have been consumed