Versions in this module Expand all Collapse all v1 v1.0.0 Jun 6, 2019 Changes in this version + const MaxAttributeNameLength + const MaxElementNameLength + const MaxEncodingLength + const MaxNamespaceURILength + const MaxValueBufferSize + const MaxXPathExpressionLength + var ErrAttributeNameTooLong = errors.New("attribute name too long") + var ErrAttributeNotFound = errors.New("attribute not found") + var ErrElementNameTooLong = errors.New("element name too long") + var ErrInvalidArgument = errors.New("invalid argument") + var ErrInvalidAttribute = errors.New("invalid attribute") + var ErrInvalidDocument = errors.New("invalid document") + var ErrInvalidNamespace = errors.New("invalid namespace") + var ErrInvalidNode = errors.New("invalid node") + var ErrInvalidNodeName = errors.New("invalid node name") + var ErrInvalidParser = errors.New("invalid parser") + var ErrInvalidSchema = errors.New("invalid schema") + var ErrInvalidXPathContext = errors.New("invalid xpath context") + var ErrInvalidXPathExpression = errors.New("invalid xpath expression") + var ErrInvalidXPathObject = errors.New("invalid xpath object") + var ErrNamespaceURITooLong = errors.New("namespace uri too long") + var ErrNodeNotFound = errors.New("node not found") + var ErrValueTooLong = errors.New("value too long") + var ErrXPathCompileFailure = errors.New("xpath compilation failed") + var ErrXPathEmptyResult = errors.New("empty xpath result") + var ErrXPathExpressionTooLong = errors.New("xpath expression too long") + var ErrXPathNamespaceRegisterFailure = errors.New("cannot register namespace") + func HTMLReadDoc(content, url, encoding string, opts int) (uintptr, error) + func ReportErrors(b bool) + func SplitPrefixLocal(s string) (string, string) + func XMLAddChild(n PtrSource, child PtrSource) error + func XMLAppendText(n PtrSource, s string) error + func XMLC14NDocDumpMemory(d PtrSource, mode int, withComments bool) (string, error) + func XMLChildNodes(n PtrSource) ([]uintptr, error) + func XMLCreateAttributeNS(doc PtrSource, uri, k, v string) (uintptr, error) + func XMLCreateDocument(version, encoding string) uintptr + func XMLCreateElement(d PtrSource, name string) (uintptr, error) + func XMLCreateElementNS(doc PtrSource, nsuri, name string) (uintptr, error) + func XMLCreateMemoryParserCtxt(s string, o int) (uintptr, error) + func XMLCtxtReadMemory(ctx PtrSource, file string, baseURL string, encoding string, options int) (uintptr, error) + func XMLDocCopyNode(n PtrSource, d PtrSource, extended int) (uintptr, error) + func XMLDocumentElement(doc PtrSource) (uintptr, error) + func XMLDocumentEncoding(doc PtrSource) string + func XMLDocumentStandalone(doc PtrSource) int + func XMLDocumentString(doc PtrSource, encoding string, format bool) string + func XMLDocumentURI(doc PtrSource) string + func XMLDocumentVersion(doc PtrSource) string + func XMLElementAttributes(n PtrSource) ([]uintptr, error) + func XMLElementGetAttributeNode(n PtrSource, name string) (uintptr, error) + func XMLElementNamespaces(n PtrSource) ([]uintptr, error) + func XMLEncodeEntitiesReentrant(docptr *C.xmlDoc, s string) (*C.xmlChar, error) + func XMLEvalXPath(x PtrSource, expr PtrSource) (uintptr, error) + func XMLFirstChild(n PtrSource) (uintptr, error) + func XMLFreeDoc(doc PtrSource) error + func XMLFreeNode(n PtrSource) error + func XMLFreeParserCtxt(ctx PtrSource) error + func XMLFreeProp(attr PtrSource) error + func XMLHasChildNodes(n PtrSource) bool + func XMLLastChild(n PtrSource) (uintptr, error) + func XMLLocalName(n PtrSource) string + func XMLLookupNamespacePrefix(n PtrSource, href string) (string, error) + func XMLLookupNamespaceURI(n PtrSource, prefix string) (string, error) + func XMLNamespaceFree(n PtrSource) + func XMLNamespaceHref(n PtrSource) string + func XMLNamespacePrefix(n PtrSource) string + func XMLNamespaceURI(n PtrSource) string + func XMLNewCDataBlock(doc PtrSource, txt string) (uintptr, error) + func XMLNewComment(txt string) (uintptr, error) + func XMLNewDocNode(doc PtrSource, ns PtrSource, local, content string) (uintptr, error) + func XMLNewDocProp(doc PtrSource, k, v string) (uintptr, error) + func XMLNewNode(ns PtrSource, name string) (uintptr, error) + func XMLNewNs(n PtrSource, nsuri, prefix string) (uintptr, error) + func XMLNewText(txt string) (uintptr, error) + func XMLNextSibling(n PtrSource) (uintptr, error) + func XMLNodeName(n PtrSource) (string, error) + func XMLNodeSetBase(doc PtrSource, s string) + func XMLNodeValue(n PtrSource) (string, error) + func XMLOwnerDocument(n PtrSource) (uintptr, error) + func XMLParentNode(n PtrSource) (uintptr, error) + func XMLParseDocument(ctx PtrSource) error + func XMLParseInNodeContext(n PtrSource, data string, o int) (uintptr, error) + func XMLPrefix(n PtrSource) string + func XMLPreviousSibling(n PtrSource) (uintptr, error) + func XMLRemoveChild(n PtrSource, t PtrSource) error + func XMLSchemaFree(s PtrSource) error + func XMLSchemaParse(buf []byte) (uintptr, error) + func XMLSchemaParseFromFile(path string) (uintptr, error) + func XMLSchemaValidateDocument(schema PtrSource, document PtrSource) []error + func XMLSearchNs(doc PtrSource, n PtrSource, prefix string) (uintptr, error) + func XMLSearchNsByHref(doc PtrSource, n PtrSource, uri string) (uintptr, error) + func XMLSetDocumentElement(doc PtrSource, n PtrSource) error + func XMLSetDocumentEncoding(doc PtrSource, e string) + func XMLSetDocumentStandalone(doc PtrSource, v int) + func XMLSetDocumentVersion(doc PtrSource, v string) + func XMLSetNodeName(n PtrSource, name string) error + func XMLSetNodeValue(n PtrSource, value string) error + func XMLSetNs(n PtrSource, ns PtrSource) error + func XMLSetProp(n PtrSource, name, value string) error + func XMLSetTreeDoc(n PtrSource, d PtrSource) error + func XMLTextContent(n PtrSource) string + func XMLTextData(n PtrSource) string + func XMLToString(n PtrSource, format int, docencoding bool) string + func XMLUnsetNsProp(n PtrSource, ns PtrSource, name string) error + func XMLUnsetProp(n PtrSource, name string) error + func XMLXPathCompile(s string) (uintptr, error) + func XMLXPathContextSetContextNode(x PtrSource, n PtrSource) error + func XMLXPathFreeCompExpr(x PtrSource) error + func XMLXPathFreeContext(x PtrSource) error + func XMLXPathFreeObject(x PtrSource) + func XMLXPathNSLookup(x PtrSource, prefix string) (string, error) + func XMLXPathNewContext(n PtrSource) (uintptr, error) + func XMLXPathObjectBool(x PtrSource) bool + func XMLXPathObjectFloat64(x PtrSource) float64 + func XMLXPathObjectNodeList(x PtrSource) ([]uintptr, error) + func XMLXPathObjectNodeListLen(x PtrSource) int + func XMLXPathRegisterNS(x PtrSource, prefix, nsuri string) error + type C14NMode int + type ErrNamespaceNotFound struct + Target string + func (e ErrNamespaceNotFound) Error() string + type PtrSource interface + Pointer func() uintptr + type XMLNodeType int + const AttributeDecl + const AttributeNode + const CDataSectionNode + const CommentNode + const DTDNode + const DocbDocumentNode + const DocumentFragNode + const DocumentNode + const DocumentTypeNode + const ElementDecl + const ElementNode + const EntityDecl + const EntityNode + const EntityRefNode + const HTMLDocumentNode + const NamespaceDecl + const NotationNode + const PiNode + const TextNode + const XIncludeEnd + const XIncludeStart + func XMLGetNodeType(n PtrSource) XMLNodeType + func XMLGetNodeTypeRaw(n uintptr) XMLNodeType + func (i XMLNodeType) String() string + type XPathObjectType int + const XPathBooleanType + const XPathLocationSetType + const XPathNodeSetType + const XPathNumberType + const XPathPointType + const XPathRangeType + const XPathStringType + const XPathUndefinedType + const XPathUsersType + const XPathXSLTTreeType + func XMLXPathObjectType(x PtrSource) XPathObjectType + func (i XPathObjectType) String() string