Uses of Class
eu.maveniverse.domtrip.Document
-
Packages that use Document Package Description eu.maveniverse.domtrip DomTrip - A lossless XML processing library for Java.eu.maveniverse.domtrip.sax eu.maveniverse.domtrip.stax -
-
Uses of Document in eu.maveniverse.domtrip
Methods in eu.maveniverse.domtrip that return Document Modifier and Type Method Description DocumentDocument. bom(boolean bom)Sets whether a Byte Order Mark (BOM) should be written when serializing to an OutputStream.DocumentDocument. clone()Deprecated.Usecopy()instead.DocumentDocument. copy()Creates a deep copy of this node.DocumentDocument. doctype(java.lang.String doctype)Sets the DOCTYPE declaration for this document.DocumentEditor. document()Gets the current XML document being edited.DocumentNode. document()Gets the Document that contains this node.DocumentDocument. encoding(java.lang.String encoding)Set the document's character encoding used for serialization.static DocumentDocument. minimal(java.lang.String rootElementName)Creates a minimal document with just a root element (no XML declaration).static DocumentDocument. of()Creates an empty document with default settings.static DocumentDocument. of(java.io.InputStream inputStream)Creates a document by parsing XML from an InputStream with automatic encoding detection.static DocumentDocument. of(java.io.InputStream inputStream, java.lang.String defaultEncoding)Creates a document by parsing XML from an InputStream with encoding detection and fallback.static DocumentDocument. of(java.io.InputStream inputStream, java.nio.charset.Charset defaultCharset)Creates a document by parsing XML from an InputStream with encoding detection and fallback.static DocumentDocument. of(java.lang.String xml)Creates a document by parsing the provided XML string.static DocumentDocument. of(java.nio.file.Path path)Creates a document by parsing XML from a file path with automatic encoding detection.DocumentDocument. parent(ContainerNode parent)Sets the parent container node of this node.DocumentParser. parse(java.io.InputStream inputStream)Parses XML from an InputStream with automatic encoding detection.DocumentParser. parse(java.io.InputStream inputStream, java.lang.String defaultEncoding)Parses XML from an InputStream with encoding detection and fallback.DocumentParser. parse(java.io.InputStream inputStream, java.nio.charset.Charset defaultCharset)Parses XML from an InputStream with encoding detection and fallback.DocumentParser. parse(java.lang.String xml)Parses an XML string into a lossless XML document tree.DocumentDocument. root(Element root)Sets the root element of this document.DocumentDocument. standalone(boolean standalone)Sets the standalone flag for this document.DocumentDocument. version(java.lang.String version)Set the XML version of this document.static DocumentDocument. withDoctype(java.lang.String version, java.lang.String encoding, java.lang.String doctype)Creates a document with XML declaration and DOCTYPE.static DocumentDocument. withRootElement(java.lang.String rootElementName)Creates a document with a root element and XML declaration.DocumentDocument. withXmlDeclaration()Generates and sets an XML declaration based on current document settings.static DocumentDocument. withXmlDeclaration(java.lang.String version, java.lang.String encoding)Creates a document with XML declaration.static DocumentDocument. withXmlDeclaration(java.lang.String version, java.lang.String encoding, boolean standalone)Creates a document with XML declaration and standalone attribute.DocumentDocument. xmlDeclaration(java.lang.String xmlDeclaration)Sets the XML declaration for this document.Methods in eu.maveniverse.domtrip with parameters of type Document Modifier and Type Method Description java.util.List<XmlChange>DiffResult. changesFor(XPathExpression xpath, Document doc)Returns changes affecting elements that match the given compiled XPath expression in the specified document.java.util.List<XmlChange>DiffResult. changesFor(java.lang.String xpath, Document doc)Returns changes affecting elements that match the given XPath expression in the specified document.static EmptyElementStyleEmptyElementStyle. detectFromDocument(Document document)Detects the predominant empty element style used in a document.static DiffResultXmlDiff. diff(Document before, Document after)Compares two documents using default configuration (positional matching).static DiffResultXmlDiff. diff(Document before, Document after, DiffConfig config)Compares two documents using the given configuration.java.lang.StringSerializer. serialize(Document document)Serializes an XML document to string using this serializer's configuration.java.lang.StringSerializer. serialize(Document document, DomTripConfig config)Serializes an XML document to string with custom configuration.voidSerializer. serialize(Document document, java.io.OutputStream outputStream)Serializes an XML document to an OutputStream using the document's encoding.voidSerializer. serialize(Document document, java.io.OutputStream outputStream, java.lang.String encoding)Serializes an XML document to an OutputStream using the specified encoding.voidSerializer. serialize(Document document, java.io.OutputStream outputStream, java.nio.charset.Charset charset)Serializes an XML document to an OutputStream using the specified charset.DomTripConfigDomTripConfig. withAutoDetectedEmptyElementStyle(Document document)Automatically detects and configures the empty element style based on existing empty elements in the provided document.Constructors in eu.maveniverse.domtrip with parameters of type Document Constructor Description Editor(Document document)Creates a new editor with an existing Document.Editor(Document document, DomTripConfig config)Creates a new editor with an existing Document and custom configuration. -
Uses of Document in eu.maveniverse.domtrip.sax
Methods in eu.maveniverse.domtrip.sax that return Document Modifier and Type Method Description DocumentDomTripXMLReader. getDocument()Returns the document backing this reader.Methods in eu.maveniverse.domtrip.sax with parameters of type Document Modifier and Type Method Description static DomTripSAXSourceDomTripSAXSource. of(Document doc)Creates a new SAXSource backed by the given document.voidSAXOutputter. output(Document doc, org.xml.sax.ContentHandler handler)Emits SAX events for the given document to the specified content handler.voidSAXOutputter. output(Document doc, org.xml.sax.ContentHandler handler, org.xml.sax.ext.LexicalHandler lexicalHandler)Emits SAX events for the given document to the specified content and lexical handlers.Constructors in eu.maveniverse.domtrip.sax with parameters of type Document Constructor Description DomTripXMLReader(Document document)Creates a new XMLReader that reads from the given document. -
Uses of Document in eu.maveniverse.domtrip.stax
Methods in eu.maveniverse.domtrip.stax with parameters of type Document Modifier and Type Method Description static DomTripStAXSourceDomTripStAXSource. of(Document doc)Creates a new StAXSource backed by the given document.Constructors in eu.maveniverse.domtrip.stax with parameters of type Document Constructor Description DomTripStreamReader(Document document)Creates a new StAX reader for the given document.
-