%@ taglib uri="http://jakarta.apache.org/taglibs/xtags-1.0" prefix="xtags" %>
Test Add Example
Test Replace Example
This demo tests the use of the <xtags:replace> tag to replace nodes in an XML document
with XML fragments.
abcd
whoo
def
Before Replacements
After Replacements
which should
have replaced all foo elements
Text that replaces a b node
Replacing a single node with multiple nodes
Replacing the <empty> nodes:
node
with text
another node
Replacing the root element
A new root node
Replacing the root node
Another root node
Another root node with an xml declaration
<%
try {
%>
Another root node with an xml declaration
<%
} catch (Exception e) {
%>
Exception - should say too many context nodes:
<%= e.getMessage() %>
<%
}
%>