Not sure how I would do that, here is an example: What I would like to get is: <news xmlns:pub="http://www.romayev.com/publication/1.0"> <item id="N100AE"> <pub:publication> <pub:published-date>2001-11-06</pub:published-date> ... </pub:publication> </item> </news>
Here is the code I use for SourceWritingTransformer: <source:write src="content/news.xml"> <news xmlns:pub="http://www.romayev.com/publication/1.0"> <item id="N100AE"> <pub:publication> <pub:published-date>2001-11-06</pub:published-date> ... </pub:publication> </item> </news> </source:write> --- funing <[EMAIL PROTECTED]> wrote: > Can you use the "insert" tag? > > On Thu, 26 Sep 2002 02:17:56 -0700 (PDT) > Alex Romayev <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > I'm using Source Writing Transformer to write XML > to > > file. I need to add namespace declarations to the > > root node, does anyone know how to do this? > > > > Thanks, > > -Alex > > > -- > funing <[EMAIL PROTECTED]> > > > --------------------------------------------------------------------- > Please check that your question has not already > been answered in the > FAQ before posting. > <http://xml.apache.org/cocoon/faq/index.html> > > To unsubscribe, e-mail: > <[EMAIL PROTECTED]> > For additional commands, e-mail: > <[EMAIL PROTECTED]> > --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>