[jdom-interest] Commenting whole Elements?
jan.brauer at coremedia.com
Thu Dec 6 01:40:02 PST 2007
I'm currently writing a tool to merge different fragments into a
web.xml. I'm looking for a way to surround an element with comments.
I've added a namespaced attribute to the element. Based on this I'm
trying to surround the Element with two Text elements:
Text intro = new Text("<!--");
Text outro = new Text("-->");
Unfortunately the pointy brackets are escaped. I haven't found a way to
disable the escaping:
What can I do to disable the escaping for those two Text elements? Or is
there an even better way to accomplish what I'm trying?
More information about the jdom-interest