<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1170" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I have to generate a piece of xml, which is in the 
folowing format:</FONT></DIV>
<DIV><FONT face=Arial size=2>this is for generating xml-forms for cocoon. 
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><STRONG><EM>&lt;?xml version="1.0" 
encoding="UTF-8"?&gt;<BR>&lt;document xmlns:xf="</EM></STRONG><A 
href="http://apache.org/cocoon/xmlform/1.0"><STRONG><EM>http://apache.org/cocoon/xmlform/1.0</EM></STRONG></A><STRONG><EM>"&gt;<BR>&nbsp; 
&lt;xf:form 
view="deathcertificate/result.xml"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;xf:group 
class="maintitle"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;xf:caption&gt;Overlijdensakte 
aanvragen&lt;/xf:caption&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;/xf:group&gt;<BR></EM></STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>My problem is getting the document xmlns line to 
work. When I use&nbsp;<FONT face=Arial size=2></FONT>&nbsp;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><FONT 
size=2><STRONG><EM></EM></STRONG></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><FONT size=2><STRONG><EM>Element rootElement = 
</EM></STRONG></FONT><STRONG><EM><FONT color=#7f0055 size=2>new</FONT><FONT 
size=2> Element(</FONT><FONT color=#2a00ff size=2>"document"</FONT><FONT 
size=2>, </FONT><FONT color=#2a00ff size=2>"xf"</FONT></EM></STRONG><FONT 
size=2><STRONG><EM>,</EM></STRONG></DIV>
<P align=justify></FONT><FONT color=#2a00ff size=2><STRONG><EM>"</EM></STRONG><A 
href="http://apache.org/cocoon/xmlform/1.0"><STRONG><EM>http://apache.org/cocoon/xmlform/1.0</EM></STRONG></A><STRONG><EM>"</EM></STRONG></FONT><FONT 
size=2><STRONG><EM>);</EM></STRONG></P></FONT>
<DIV>a <STRONG>xf:</STRONG> is placed before the <STRONG>document</STRONG> tag 
and I don't want that. </DIV>
<DIV>&nbsp;</DIV>
<DIV>I also want as you can see a <STRONG>xf:</STRONG> placed before every other 
tag, without getting the </DIV>
<DIV><STRONG><EM>xmlns:xf="</EM></STRONG><A 
href="http://apache.org/cocoon/xmlform/1.0"><STRONG><EM>http://apache.org/cocoon/xmlform/1.0</EM></STRONG></A><STRONG><EM>&nbsp;</EM></STRONG>attribute 
everywhere.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>is there a way of doing this? I would be very grateful</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thnx</DIV>
<DIV>&nbsp;</DIV>
<DIV>Twan<BR></DIV></FONT></BODY></HTML>