Uses of Class
cloud.opencode.base.xml.XmlElement
Packages that use XmlElement
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 构建器
Namespace Package - XML namespace handling
命名空间包 - XML 命名空间处理
Path Package - Simple dot-notation path access for XML elements
路径包 - XML 元素的简单点表示法路径访问
Transform Package - XSLT transformation and formatting
转换包 - XSLT 转换和格式化
XPath Package - XPath query support
XPath 包 - XPath 查询支持
-
Uses of XmlElement in cloud.opencode.base.xml
Methods in cloud.opencode.base.xml that return XmlElementModifier and TypeMethodDescriptionXmlElement.addChild(XmlElement child) Adds an existing element as a child.Adds a new child element.Adds a new child element with text content.XmlDocument.addElement(String name, String text) Adds an element to the root.Returns the first child element with the specified name.XmlDocument.getElement(String name) Returns the first element with the specified name.XmlElement.getParent()Returns the parent element.XmlDocument.getRoot()Returns the root element.static XmlElementCreates an XmlElement from a DOM Element.static XmlElementCreates an XmlElement from a DOM Node (if it's an Element).XmlElement.removeAttribute(String name) Removes an attribute.XmlElement.removeChild(String name) Removes child elements with the specified name.XmlElement.removeChildren()Removes all child elements.XmlElement.setAttribute(String name, String value) Sets an attribute value.Sets the text content.Evaluates an XPath expression and returns single element.Methods in cloud.opencode.base.xml that return types with arguments of type XmlElementModifier and TypeMethodDescriptionXmlElement.getChildren()Returns all child elements.XmlElement.getChildren(String name) Returns all child elements with the specified name.XmlDocument.getElements(String name) Returns all elements with the specified name.static List<XmlElement> OpenXml.xpathElements(XmlDocument doc, String xpath) Evaluates an XPath expression and returns elements.Evaluates an XPath expression and returns element list.Evaluates an XPath expression and returns element list.Methods in cloud.opencode.base.xml with parameters of type XmlElementModifier and TypeMethodDescriptionXmlElement.addChild(XmlElement child) Adds an existing element as a child.XmlDocument.addElement(XmlElement element) Adds an existing element to the root.static StringOpenXml.xpath(XmlElement element, String xpath) Evaluates an XPath expression on an element. -
Uses of XmlElement in cloud.opencode.base.xml.bind
Methods in cloud.opencode.base.xml.bind with parameters of type XmlElementModifier and TypeMethodDescription<T> TXmlBinder.unmarshal(XmlElement element, Class<T> clazz) Unmarshals XML element to object. -
Uses of XmlElement in cloud.opencode.base.xml.builder
Methods in cloud.opencode.base.xml.builder that return XmlElementModifier and TypeMethodDescriptionElementBuilder.build()Builds and returns the XmlElement.XmlBuilder.buildElement()Builds and returns the root element.Methods in cloud.opencode.base.xml.builder with parameters of type XmlElementModifier and TypeMethodDescriptionElementBuilder.child(XmlElement xmlElement) Adds a built XmlElement as a child. -
Uses of XmlElement in cloud.opencode.base.xml.namespace
Methods in cloud.opencode.base.xml.namespace with parameters of type XmlElementModifier and TypeMethodDescriptionstatic OpenNamespaceContextNamespaceUtil.createContext(XmlElement element) Creates a namespace context from an element.static voidNamespaceUtil.declareDefaultNamespace(XmlElement element, String namespaceUri) Adds a default namespace declaration to an element.static voidNamespaceUtil.declareNamespace(XmlElement element, String prefix, String namespaceUri) Adds a namespace declaration to an element.NamespaceUtil.extractNamespaces(XmlElement element) Extracts all namespace declarations from an element and its ancestors.static StringNamespaceUtil.getNamespacePrefix(XmlElement element) Gets the namespace prefix of an element.static StringNamespaceUtil.getNamespaceUri(XmlElement element) Gets the namespace URI of an element.static booleanNamespaceUtil.hasNoNamespace(XmlElement element) Checks if an element has no namespace.static booleanNamespaceUtil.isInNamespace(XmlElement element, String namespaceUri) Checks if an element is in a specific namespace.static voidNamespaceUtil.removeNamespaceDeclaration(XmlElement element, String prefix) Removes a namespace declaration from an element. -
Uses of XmlElement in cloud.opencode.base.xml.path
Methods in cloud.opencode.base.xml.path that return XmlElementModifier and TypeMethodDescriptionstatic XmlElementXmlPath.getElement(XmlDocument doc, String path) Gets the element at the specified path.Methods in cloud.opencode.base.xml.path that return types with arguments of type XmlElementModifier and TypeMethodDescriptionstatic List<XmlElement> XmlPath.getElements(XmlDocument doc, String path) Gets all matching elements at the specified path.Methods in cloud.opencode.base.xml.path with parameters of type XmlElementModifier and TypeMethodDescriptionstatic StringXmlPath.getString(XmlElement element, String path) Gets the text value at the specified path relative to an element. -
Uses of XmlElement in cloud.opencode.base.xml.transform
Methods in cloud.opencode.base.xml.transform that return XmlElementModifier and TypeMethodDescriptionstatic XmlElementXmlTransformer.clone(XmlElement element) Clones an XmlElement.Methods in cloud.opencode.base.xml.transform with parameters of type XmlElementModifier and TypeMethodDescriptionstatic XmlElementXmlTransformer.clone(XmlElement element) Clones an XmlElement.static StringXmlTransformer.serialize(XmlElement element) Serializes an XmlElement to a string.static StringXmlTransformer.serialize(XmlElement element, int indent) Serializes an XmlElement to a formatted string. -
Uses of XmlElement in cloud.opencode.base.xml.xpath
Methods in cloud.opencode.base.xml.xpath that return XmlElementModifier and TypeMethodDescriptionstatic XmlElementOpenXPath.selectElement(String xml, String xpath) Selects a single XmlElement using XPath.static XmlElementOpenXPath.selectElement(Document document, String xpath) Selects a single XmlElement from a Document.static XmlElementOpenXPath.selectElement(Node node, String xpath) Selects a single XmlElement from a Node.XPathQuery.selectElement(String xpath) Selects a single element.Methods in cloud.opencode.base.xml.xpath that return types with arguments of type XmlElementModifier and TypeMethodDescriptionXPathResult.asElement()Returns the first element if available.XPathResult.asElements()Returns all elements.XPathResult.elements()Returns the value of theelementsrecord component.static List<XmlElement> OpenXPath.selectElements(String xml, String xpath) Selects XmlElements using XPath.static List<XmlElement> OpenXPath.selectElements(Document document, String xpath) Selects XmlElements from a Document.static List<XmlElement> OpenXPath.selectElements(Node node, String xpath) Selects XmlElements from a Node.XPathQuery.selectElements(String xpath) Selects multiple elements.Method parameters in cloud.opencode.base.xml.xpath with type arguments of type XmlElementModifier and TypeMethodDescriptionstatic XPathResultXPathResult.of(List<XmlElement> elements, String xpath) Creates an XPath result from elements.Constructor parameters in cloud.opencode.base.xml.xpath with type arguments of type XmlElementModifierConstructorDescriptionXPathResult(Object value, List<XmlElement> elements, String xpath) Creates an instance of aXPathResultrecord class.