Editing the xml using ant task?

The first option to check would be the Ant xslt task. For an introduction to its use see the Ant/XSLT Wikibook.

I've used groovy to do this. Groovy is very Java like, so you can create your groovy classes very similarly to a static java method, and have ant call out to your groovy script using the task (you will of course need to include the groovy task def). Because groovy can use Java syntax you can include the org.W3c.com.

* libraries to have access to DOM classes. For example, snippet of code showing the adding a resource ref element to a specifed web. Xml file :- import org.

W3c.dom. *; String web_xml_filename=args0; String res_ref_name=args1; Document doc = DomHelper. GetDoc(web_xml_filename); Element rootNode=doc.

GetDocumentElement(); newNode = doc. CreateElement("resource-ref"); DomHelper. CreateElement(doc, newNode, "res-ref-name", res_ref_name); DomHelper.

CreateElement(doc, newNode, "res-type", "javax.sql. DataSource"); DomHelper. CreateElement(doc, newNode, "description", description); DomHelper.

CreateElement(doc, newNode, "res-auth", "Container"); rootNode. InsertBefore(newNode, nodes. Item(0)); DomHelper.

WriteDoc(doc, web_xml_filename, false); To call from ant, use the groovy task.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions