Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckToken ¶
CheckToken computes a round trip for a given xml.Token and returns an error if the newly calculated token differs from the original
func Validate ¶
Validate makes sure the given XML bytes survive round trips through encoding/xml without mutations
func ValidateAll ¶
ValidateAll is like Validate, but instead of returning after the first error, it accumulates errors and validates the entire document
Types ¶
type XMLRoundtripError ¶
XMLRoundtripError is returned when a round-trip token doesn't match the original
func (XMLRoundtripError) Error ¶
func (err XMLRoundtripError) Error() string
type XMLValidationError ¶
type XMLValidationError struct {
Start, End, Line, Column int64
// contains filtered or unexported fields
}
XMLValidationError is returned when validating an XML document fails
func (XMLValidationError) Error ¶
func (err XMLValidationError) Error() string
func (XMLValidationError) Unwrap ¶
func (err XMLValidationError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.