public interface CustomXmlPart
Modifier and Type | Method and Description |
---|---|
String |
cachedXPathGetString(String xpath,
String prefixMappings)
Use org.apache.xpath.CachedXPathAPI, since this is much quicker than default javax.xml.xpath.XPath implementations
(Apache's anyway) for large XML files.
|
void |
discardCacheXPathObject()
Use this to null out the org.apache.xpath.CachedXPathAPI object, which you should do
if you've changed your source document, or want to reclaim memory.
|
String |
getItemId() |
String |
getXML()
Get the XML as a String.
|
boolean |
setNodeValueAtXPath(String xpath,
String value,
String prefixMappings) |
void |
setXML(Document xmlDocument)
Set the XML data
|
List<Node> |
xpathGetNodes(String xpathString,
String prefixMappings) |
String |
xpathGetString(String xpath,
String prefixMappings) |
String xpathGetString(String xpath, String prefixMappings) throws Docx4JException
Docx4JException
String cachedXPathGetString(String xpath, String prefixMappings) throws Docx4JException
xpath
- prefixMappings
- Docx4JException
discardCacheXPathObject
void discardCacheXPathObject()
List<Node> xpathGetNodes(String xpathString, String prefixMappings) throws Docx4JException
Docx4JException
boolean setNodeValueAtXPath(String xpath, String value, String prefixMappings) throws Docx4JException
xpath
- prefixMappings
- value
- Docx4JException
String getXML() throws Docx4JException
Docx4JException
void setXML(Document xmlDocument) throws Docx4JException
Docx4JException
String getItemId()
Copyright © 2007-2019. All Rights Reserved.