[Xmltask-users] Problem with namespaces in output document.

2006-04-21 Thread Nate Pahucki
Hello all, I hope someone can help with this. I have a document with a namespace in a buffer, I try to add some nodes to it with the insert sub-task of xmltask, but when the document is later written, the nodes I inserted have an attribute of xmlns="" which seems to explicitly declare NO namespac

[Xmltask-users] RE:Problem with namespaces in output document.

2006-04-21 Thread Nate Pahucki
Update on this: >From playing around a bit more, it seems the following holds true: 1) Just adding an xmlns attribute to a node does not make it belong to that namespace (how does one set the namespace on inserted nodes then)?. 2) Using an existing document with a namespace declaration, and doing

Re: [Xmltask-users] Problem with namespaces in output document.

2006-04-21 Thread Brian Agnew
Hi Nate, Which JVM and Ant version are you using ? If I do this: position="before">          (which looks like what you have below), then I get: "http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd">      ${portlet.description} SomePortlet  

Re: [Xmltask-users] Problem with namespaces in output document.

2006-04-21 Thread Brian Agnew
ps. namespaces are a real pain to deal with - with or without XmlTask. I'm wondering if XmlTask could provide namespace-specific functions. Answers on a postcard... Nate Pahucki wrote: Hello all, I hope someone can help with this. I have a document with a namespace in a buffer, I try to

Re: [Xmltask-users] RE:Problem with namespaces in output document.

2006-04-21 Thread Brian Agnew
See below. Nate Pahucki wrote: Update on this: >From playing around a bit more, it seems the following holds true: 1) Just adding an xmlns attribute to a node does not make it belong to that namespace (how does one set the namespace on inserted nodes then)?. I need to look at this in

Re: [Xmltask-users] Problem with namespaces in output document.

2006-04-21 Thread Nate Pahucki
Brain, thanks for the speedy reply. I am using Ant 1.6.5 and JDK 1.5.0_05-b05. See my follow-up email. The problem seems to have something to do with the simple formatter. If you run your test again, and output it with the simple outputter instead of the report attribute, you should be able to se