public interface XmlFieldNodeModifier
| Modifier and Type | Method and Description |
|---|---|
void |
createAttribute(XmlFieldNode contextNode,
String attributeName,
String textContent)
Create an attribute to a node
|
XmlFieldNode |
createElement(NamespaceMap namespaces,
XmlFieldNode node,
String elementName)
Create a new element node at the end of the root node.
|
XmlFieldNode |
createElement(NamespaceMap namespaces,
XmlFieldNode node,
String elementName,
String textContent)
Create a new element node at the end of the root node.
|
XmlFieldNode |
insertBefore(XmlFieldNode parentNode,
XmlFieldNode newChild,
XmlFieldNode refChild)
Insert a node before another node.
|
XmlFieldNode |
removeAttribute(XmlFieldNode node,
String attributeName)
Remove an attribute from a specified node
|
XmlFieldNode |
removeChild(XmlFieldNode contextNode,
XmlFieldNode oldChild)
Remove a child node
|
void |
removeChildren(XmlFieldNodeList nodesToRemove)
Remove a node list
|
void createAttribute(XmlFieldNode contextNode, String attributeName, String textContent)
contextNode - node where the attribute will be createdattributeName - name of the attributetextContent - text content of the attributeXmlFieldNode createElement(NamespaceMap namespaces, XmlFieldNode node, String elementName)
namespaces - document namespacesnode - context nodeelementName - element nameXmlFieldNode createElement(NamespaceMap namespaces, XmlFieldNode node, String elementName, String textContent)
namespaces - document namespacesnode - context nodeelementName - element nametextContent - text content of the new elementXmlFieldNode insertBefore(XmlFieldNode parentNode, XmlFieldNode newChild, XmlFieldNode refChild)
parentNode - parent node of the nodesnewChild - node to insertrefChild - reference node where the node should be inserted beforeXmlFieldNode removeAttribute(XmlFieldNode node, String attributeName)
node - nodeattributeName - attribute nameXmlFieldNode removeChild(XmlFieldNode contextNode, XmlFieldNode oldChild)
contextNode - the context nodeoldChild - child to be removedvoid removeChildren(XmlFieldNodeList nodesToRemove)
contextNode - the context nodenodesToRemove - node list of children to be removedCopyright © 2011–2014. All rights reserved.