Documentation ¶
Index ¶
Constants ¶
View Source
const Name = "xml-validate"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Activity ¶
type Activity struct {
// contains filtered or unexported fields
}
func New ¶
func New(validator XSDValidator) *Activity
type XMLLintValidator ¶
type XMLLintValidator struct{}
XMLLintValidator represents an XSDValidator implementation using the xmllint C library.
func NewXMLLintValidator ¶
func NewXMLLintValidator() *XMLLintValidator
func (*XMLLintValidator) Validate ¶
Validate validates the XML document at xmlPath against the XSD schema at xsdPath using xmllint. If xmllint fails to run due to an error, then an error is returned. If xmllint runs and finds validation errors the errors will be returned as a string and the error return will be nil.
Click to show internal directories.
Click to hide internal directories.