i have this
<Connector protocol="HTTP/1.1" redirectPort="8443"/>
How can i use xmltask to add this attribute?
<Connector protocol="HTTP/1.1" redirectPort="8443" newAttribute="VALUE"/>
i cant find anything on the documentation.
Thanks
i have this
<Connector protocol="HTTP/1.1" redirectPort="8443"/>
How can i use xmltask to add this attribute?
<Connector protocol="HTTP/1.1" redirectPort="8443" newAttribute="VALUE"/>
i cant find anything on the documentation.
Thanks
<taskdef name="xmltask" classname="com.oopsconsultancy.xmltask.ant.XmlTask" />
<xmltask destbuffer="xml-buffer">
<fileset file="src.xml"/>
<attr path="//Connector[@protocol='HTTP/1.1']" attr="newAttribute" value="VALUE"/>
</xmltask>
<xmltask>
<print buffer="xml-buffer"/>
</xmltask>
[xmltask] { buffer 'xml-buffer' output
[xmltask] <Connector newAttribute="VALUE" protocol="HTTP/1.1" redirectPort="8443"/>
[xmltask] } buffer 'xml-buffer' output