Uses of Class
cloud.opencode.base.xml.XmlDocument
Packages that use XmlDocument
Package
Description
OpenCode Base XML Module - Comprehensive XML processing library
OpenCode Base XML 模块 - 全面的 XML 处理库
Bind Package - XML to Java object binding (JAXB-style)
绑定包 - XML 到 Java 对象绑定(JAXB 风格)
Builder Package - Fluent XML builders
构建器包 - 流式 XML 构建器
Canonical Package - XML canonicalization (C14N)
规范化包 - XML 规范化 (C14N)
Diff Package - XML document comparison and differencing
比较包 - XML 文档比较和差异计算
Merge Package - XML document merging and overlay
合并包 - XML 文档合并和覆盖
Namespace Package - XML namespace handling
命名空间包 - XML 命名空间处理
Path Package - Simple dot-notation path access for XML elements
路径包 - XML 元素的简单点表示法路径访问
Splitter Package - Stream-based XML splitting by element name
拆分包 - 按元素名称进行基于流的 XML 拆分
Transform Package - XSLT transformation and formatting
转换包 - XSLT 转换和格式化
Validate Package - XML validation (Schema/DTD)
验证包 - XML 验证(Schema/DTD)
-
Uses of XmlDocument in cloud.opencode.base.xml
Methods in cloud.opencode.base.xml that return XmlDocumentModifier and TypeMethodDescriptionXmlDocument.addElement(XmlElement element) Adds an existing element to the root.static XmlDocumentCreates an empty document with the specified root element.static XmlDocumentXmlDocument.load(InputStream input) Loads XML from input stream.static XmlDocumentLoads XML from file.static XmlDocumentXmlDocument.loadResource(String resourceName) Loads XML from classpath resource.static XmlDocumentOpenXml.merge(XmlDocument base, XmlDocument overlay) Merges an overlay document onto a base document.static XmlDocumentWraps an existing DOM Document.static XmlDocumentOpenXml.parse(InputStream input) Parses an XML input stream to XmlDocument.static XmlDocumentParses an XML string to XmlDocument.static XmlDocumentParses XML string to document.static XmlDocumentParses an XML file to XmlDocument.XmlDocument.removeElement(String name) Removes elements with the specified name from the root.Methods in cloud.opencode.base.xml that return types with arguments of type XmlDocumentModifier and TypeMethodDescriptionstatic List<XmlDocument> Splits an XML string by element name and collects all fragments.Methods in cloud.opencode.base.xml with parameters of type XmlDocumentModifier and TypeMethodDescriptionOpenXml.diff(XmlDocument doc1, XmlDocument doc2) Computes the differences between two XML documents.OpenXml.extractNamespaces(XmlDocument document) Extracts namespaces from a document.static XmlDocumentOpenXml.merge(XmlDocument base, XmlDocument overlay) Merges an overlay document onto a base document.static OpenNamespaceContextOpenXml.namespaceContext(XmlDocument document) Creates a namespace context from a document.static StringOpenXml.path(XmlDocument doc, String path) Accesses an element value using dot-notation path.OpenXml.pathOptional(XmlDocument doc, String path) Accesses an element value using dot-notation path, returning Optional.static <T> TOpenXml.unmarshal(XmlDocument document, Class<T> clazz) Unmarshals XmlDocument to an object.static StringOpenXml.xpath(XmlDocument doc, String xpath) Evaluates an XPath expression and returns a string.static StringEvaluates an XPath expression with namespaces.static List<XmlElement> OpenXml.xpathElements(XmlDocument doc, String xpath) Evaluates an XPath expression and returns elements.Method parameters in cloud.opencode.base.xml with type arguments of type XmlDocumentModifier and TypeMethodDescriptionstatic voidOpenXml.split(InputStream input, String elementName, Consumer<XmlDocument> handler) Splits an XML input stream by element name and processes each fragment. -
Uses of XmlDocument in cloud.opencode.base.xml.bind
Methods in cloud.opencode.base.xml.bind that return XmlDocumentModifier and TypeMethodDescriptionXmlBinder.marshalToDocument(Object obj) Marshals object to XML document.Methods in cloud.opencode.base.xml.bind with parameters of type XmlDocumentModifier and TypeMethodDescription<T> TXmlBinder.unmarshal(XmlDocument document, Class<T> clazz) Unmarshals XML document to object. -
Uses of XmlDocument in cloud.opencode.base.xml.builder
Methods in cloud.opencode.base.xml.builder that return XmlDocument -
Uses of XmlDocument in cloud.opencode.base.xml.canonical
Methods in cloud.opencode.base.xml.canonical with parameters of type XmlDocumentModifier and TypeMethodDescriptionstatic StringXmlCanonicalizer.canonicalize(XmlDocument doc) Canonicalizes the given XmlDocument.static StringXmlCanonicalizer.canonicalize(XmlDocument doc, boolean removeComments) Canonicalizes the given XmlDocument with optional comment removal. -
Uses of XmlDocument in cloud.opencode.base.xml.diff
Methods in cloud.opencode.base.xml.diff with parameters of type XmlDocumentModifier and TypeMethodDescriptionXmlDiff.diff(XmlDocument doc1, XmlDocument doc2) Compares two XmlDocument objects and returns a list of differences.static booleanXmlDiff.isEqual(XmlDocument doc1, XmlDocument doc2) Checks whether two XmlDocument objects are structurally equal. -
Uses of XmlDocument in cloud.opencode.base.xml.merge
Methods in cloud.opencode.base.xml.merge that return XmlDocumentModifier and TypeMethodDescriptionstatic XmlDocumentXmlMerge.merge(XmlDocument base, XmlDocument overlay) Merges an overlay document onto a base document using OVERRIDE strategy.static XmlDocumentXmlMerge.merge(XmlDocument base, XmlDocument overlay, MergeStrategy strategy) Merges an overlay document onto a base document with the specified strategy.Methods in cloud.opencode.base.xml.merge with parameters of type XmlDocumentModifier and TypeMethodDescriptionstatic XmlDocumentXmlMerge.merge(XmlDocument base, XmlDocument overlay) Merges an overlay document onto a base document using OVERRIDE strategy.static XmlDocumentXmlMerge.merge(XmlDocument base, XmlDocument overlay, MergeStrategy strategy) Merges an overlay document onto a base document with the specified strategy. -
Uses of XmlDocument in cloud.opencode.base.xml.namespace
Methods in cloud.opencode.base.xml.namespace with parameters of type XmlDocumentModifier and TypeMethodDescriptionstatic OpenNamespaceContextNamespaceUtil.createContext(XmlDocument document) Creates a namespace context from a document.NamespaceUtil.extractNamespaces(XmlDocument document) Extracts all namespace declarations from a document. -
Uses of XmlDocument in cloud.opencode.base.xml.path
Methods in cloud.opencode.base.xml.path with parameters of type XmlDocumentModifier and TypeMethodDescriptionstatic booleanXmlPath.exists(XmlDocument doc, String path) Checks whether a path exists in the document.static StringXmlPath.getAttribute(XmlDocument doc, String path) Gets an attribute value using @-notation path.static booleanXmlPath.getBoolean(XmlDocument doc, String path, boolean defaultValue) Gets a boolean value at the specified path, or the default if not found.static XmlElementXmlPath.getElement(XmlDocument doc, String path) Gets the element at the specified path.static List<XmlElement> XmlPath.getElements(XmlDocument doc, String path) Gets all matching elements at the specified path.static intXmlPath.getInt(XmlDocument doc, String path, int defaultValue) Gets an integer value at the specified path, or the default if not found or not parseable.XmlPath.getOptional(XmlDocument doc, String path) Gets an optional text value at the specified path.static StringXmlPath.getString(XmlDocument doc, String path) Gets the text value at the specified path.static StringXmlPath.getString(XmlDocument doc, String path, String defaultValue) Gets the text value at the specified path, or the default value if not found.XmlPath.getStrings(XmlDocument doc, String path) Gets text values of all matching elements at the specified path.static voidXmlPath.set(XmlDocument doc, String path, String value) Sets the value at the specified path, creating intermediate elements as needed. -
Uses of XmlDocument in cloud.opencode.base.xml.splitter
Methods in cloud.opencode.base.xml.splitter that return XmlDocumentModifier and TypeMethodDescriptionSplitResult.fragment()Returns the value of thefragmentrecord component.Methods in cloud.opencode.base.xml.splitter that return types with arguments of type XmlDocumentModifier and TypeMethodDescriptionstatic List<XmlDocument> Collects all matching element fragments from an XML string.Method parameters in cloud.opencode.base.xml.splitter with type arguments of type XmlDocumentModifier and TypeMethodDescriptionstatic voidXmlSplitter.split(InputStream input, String elementName, Consumer<XmlDocument> handler) Splits an XML input stream and processes each matching element via callback.static voidXmlSplitter.split(String xml, String elementName, Consumer<XmlDocument> handler) Splits an XML string and processes each matching element via callback.static voidXmlSplitter.split(Path path, String elementName, Consumer<XmlDocument> handler) Splits an XML file and processes each matching element via callback.Constructors in cloud.opencode.base.xml.splitter with parameters of type XmlDocumentModifierConstructorDescriptionSplitResult(int index, XmlDocument fragment) Creates an instance of aSplitResultrecord class. -
Uses of XmlDocument in cloud.opencode.base.xml.transform
Methods in cloud.opencode.base.xml.transform that return XmlDocumentModifier and TypeMethodDescriptionstatic XmlDocumentXmlTransformer.clone(XmlDocument document) Clones an XmlDocument.XsltTransformer.transformToDocument(XmlDocument document) Transforms an XmlDocument to XmlDocument.XsltTransformer.transformToDocument(String xml) Transforms an XML string to XmlDocument.Methods in cloud.opencode.base.xml.transform with parameters of type XmlDocumentModifier and TypeMethodDescriptionstatic XmlDocumentXmlTransformer.clone(XmlDocument document) Clones an XmlDocument.static StringXmlTransformer.format(XmlDocument document, int indent) Formats an XmlDocument with indentation.static StringXmlTransformer.minify(XmlDocument document) Minifies an XmlDocument by removing whitespace.static StringXmlTransformer.serialize(XmlDocument document) Serializes an XmlDocument to a string.static StringXmlTransformer.serialize(XmlDocument document, int indent) Serializes an XmlDocument to a formatted string.static voidXmlTransformer.serialize(XmlDocument document, OutputStream output) Serializes an XmlDocument to an output stream.static voidXmlTransformer.serialize(XmlDocument document, OutputStream output, int indent) Serializes an XmlDocument to an output stream with formatting.static voidXmlTransformer.serialize(XmlDocument document, Path path) Serializes an XmlDocument to a file.static voidXmlTransformer.serialize(XmlDocument document, Path path, int indent) Serializes an XmlDocument to a file with formatting.static voidXmlTransformer.serialize(XmlDocument document, Path path, int indent, String encoding) Serializes an XmlDocument to a file with options.XsltTransformer.transform(XmlDocument document) Transforms an XmlDocument.XsltTransformer.transformToDocument(XmlDocument document) Transforms an XmlDocument to XmlDocument. -
Uses of XmlDocument in cloud.opencode.base.xml.validate
Methods in cloud.opencode.base.xml.validate with parameters of type XmlDocumentModifier and TypeMethodDescriptionbooleanSchemaValidator.isValid(XmlDocument document) Checks if an XmlDocument is valid.SchemaValidator.validate(XmlDocument document) Validates an XmlDocument.voidSchemaValidator.validateOrThrow(XmlDocument document) Validates and throws if invalid.static ValidationResultXmlValidator.validateSchema(XmlDocument document, Path schemaPath) Validates XmlDocument against an XSD schema.