Hi,

I'm experiencing an issue which seems to have been discussed in this thread:

http://sourceforge.net/mailarchive/forum.php?thread_name=4448BE49.ED36.0006.0%40novell.com&forum_name=xmltask-users

I'm wondering if since then anything changed on that front and how to proceed.

Hope someone could help please.

Here are the details:

        <target name="servlet.inclusion">

                <xmltask source="web.xml" dest="web.xml" report="true">
                        <insert 
path="//:web-app/:servlet[count(//:web-app/:servlet)]" position="after">
                                <![CDATA[
                                  <servlet>
                                                
<servlet-name>gma_app</servlet-name>
                                                
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
                                                
<load-on-startup>3</load-on-startup>
                                  </servlet>
                                ]]>
                        </insert>
                </xmltask>
        </target>

produces the following:

<servlet xmlns="">
        <servlet-name>gma_app</servlet-name>
        
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
        <load-on-startup>3</load-on-startup>
</servlet>

There's _xmlns=""_ present in the results as you can see and I don't want that 
to be present.

The thread mentioned above discusses "simple" outputter contributing to this 
behavior whereas I'm using the default outputter it seems and still see this 
unnecessary attribute present in the generated xml.

I'm using Ant 1.7.1 in Eclipse 3.5 and xmltask 1.16.1

Thank you in advance,

Regards,
Simeon

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Xmltask-users mailing list
Xmltask-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xmltask-users

Reply via email to