A Document is a container holding a complete XML tree. A document has a single embedded element, which contains zero or more child tokens, one of which is usually the root element. The embedded element may include other children such as processing instruction tokens or character data tokens. The do
| 231 | // A document also contains read and write settings, which influence the way |
| 232 | // the document is deserialized, serialized, and indented. |
| 233 | type Document struct { |
| 234 | Element |
| 235 | ReadSettings ReadSettings |
| 236 | WriteSettings WriteSettings |
| 237 | } |
| 238 | |
| 239 | // An Element represents an XML element, its attributes, and its child tokens. |
| 240 | type Element struct { |
nothing calls this directly
no outgoing calls
no test coverage detected