public class XMLUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
replacePartOfDocument(Document original,
Document replacement,
String beginDelimiter,
String endDelimeter)
Replace part of an XML document with the contents of a second XML document.
|
public void replacePartOfDocument(Document original, Document replacement, String beginDelimiter, String endDelimeter) throws XPathExpressionException
original - The original document, which will be updatedreplacement - The replacement documentbeginDelimiter - The text to identify the start commentendDelimeter - The text to identify the end commentXPathExpressionExceptionCopyright © 2023 LSST. All rights reserved.