File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -50,11 +50,16 @@ type ReadSettings struct {
50
50
// preserve them instead of keeping only one. Default: false.
51
51
PreserveDuplicateAttrs bool
52
52
53
- // ValidateInput forces all ReadFrom* methods to validate that the
54
- // provided input is composed of well-formed XML before processing it. If
55
- // invalid XML is detected, the ReadFrom* methods return an error. Because
56
- // this option requires the input to be processed twice, it incurs a
53
+ // ValidateInput forces all ReadFrom* functions to validate that the
54
+ // provided input is composed of " well-formed"(*) XML before processing it.
55
+ // If invalid XML is detected, the ReadFrom* functions return an error.
56
+ // Because this option requires the input to be processed twice, it incurs a
57
57
// significant performance penalty. Default: false.
58
+ //
59
+ // (*) Note that this definition of "well-formed" is in the context of the
60
+ // go standard library's encoding/xml package. Go's encoding/xml package
61
+ // does not, in fact, guarantee well-formed XML as specified by the W3C XML
62
+ // recommendation. See: https://github.com/golang/go/issues/68299
58
63
ValidateInput bool
59
64
60
65
// Entity to be passed to standard xml.Decoder. Default: nil.
You can’t perform that action at this time.
0 commit comments