Ty, Im using regexp and replace, I wonder is there is something like <xmltask>
Nir. -----Original Message----- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 29, 2005 5:14 PM To: Ant Users List Cc: Ant Users List Subject: Re: How can i update DTD file? Here's a snippet of code from my AjaxTags project where I modify a DTD on-the-fly... <replace file="${src}/META-INF/tlds/struts-html.tld"> <replacetoken></taglib></replacetoken> <replacevalue><tag> <name>enableAjax</name> <tagclass>org.apache.struts.taglib.html.ajax.tags.EnableAjaxTag</tagclass> <bodycontent>empty</bodycontent> </tag> </taglib></replacevalue> </replace> The <replace> task allows you to replace sections of a text file. As long as you have some text you can key off of, you can use it to do what you want. There is also a <replaceregex> that is very similar but that allows for regular expressions. That might be of more help to you. Here's an example from another script: <replaceregexp file="${toa_base_dir}/jsp/systemAbout.jsp" match=">Version.*EDT<" replace=">Version ${project_version}<br>Build ${next_build_number}<br>${build.datetime}<" byline="true" /> -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Wed, June 29, 2005 11:47 am, Nir Geier said: > Hi again > > I have a DTD list (inside DTD file) > which i need to update. > how can i do this? > > ex. > <!ELEMENT app_object_list ( > item1, > item3, > item2, > NEW_ITEM > )> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]