nowhere near usable but setting aside for rainy day

This commit is contained in:
2021-07-04 04:06:05 -04:00
parent 5e9399497b
commit 9d59974e5a
6 changed files with 178 additions and 127 deletions
+28
View File
@@ -0,0 +1,28 @@
package main
import (
lxmlt "github.com/lestrrat-go/libxml2/types"
"github.com/lestrrat-go/libxml2/xsd"
)
// NsXml is a namespaced XML document.
type NsXml struct {
// Raw is the raw bytes of the document.
Raw *[]byte
// XML is the libxml2-parsed document.
XML lxmlt.Document
// Root is LXML's root element.
Root lxmlt.Element
// XSD is LXML's schema (NsXsd).
XSD *NsXsd
}
// NsXsd is a namespaced XSD (XML Schema Definition).
type NsXsd struct {
// Raw is the raw bytes of the document.
Raw *[]byte
// XSD is the libxml2-parsed schema.
XSD xsd.Schema
// XSDPath is the path of the XSD in a fetchable form (the URI of the document, essentially).
XSDPath string
}