<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.0.9">
</HEAD>
<BODY>
Try:<BR>
<BR>
Element rootElt = new Element(&quot;root&quot;);<BR>
rootElt.setNamespace(Namespace.getNamespace(&quot;noNamespaceSchemaLocation&quot;, &quot;schema.xsd&quot;));<BR>
rootElt.addNamespaceDeclaration(&quot;xsi&quot;, &quot;http://www.w3.org/2001/XMLSchema-instance&quot;);<BR>
<BR>
I hope this helps.<BR>
<BR>
Best regards,<BR>
<BR>
Ben<BR>
<BR>
On Thu, 2003-11-20 at 17:22, C&#233;dric P&#233;lissier wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE><FONT COLOR="#737373"><I>Hi,
Is it possible to specify a xml schema when building a Jdom document ... as
following
      Code:
      &lt;root xmlns:xsi=&quot;</FONT><A HREF="http://www.w3.org/2001/XMLSchema-instance"><U>http://www.w3.org/2001/XMLSchema-instance&quot;</U></A>
<FONT COLOR="#737373">xsi:noNamespaceSchemaLocation=&quot;schema.xsd&quot;&gt;
      .....

There is a way to specify dtd but schema ??

thanks for any help ...

Cedric

_______________________________________________
To control your jdom-interest membership:</FONT>
<A HREF="http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com"><U>http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com</U></I></A></PRE>
</BLOCKQUOTE>
<PRE><TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>-- 
benjamin kopic
m: +44 (0)780 154 7643
t: +44 (0)20 7794 3090
e: benjamin.kopic@panContext.com
w: http://www.panContext.com/</PRE>
</TD>
</TR>
</TABLE>
</PRE>
</BODY>
</HTML>