<!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("root");<BR>
rootElt.setNamespace(Namespace.getNamespace("noNamespaceSchemaLocation", "schema.xsd"));<BR>
rootElt.addNamespaceDeclaration("xsi", "http://www.w3.org/2001/XMLSchema-instance");<BR>
<BR>
I hope this helps.<BR>
<BR>
Best regards,<BR>
<BR>
Ben<BR>
<BR>
On Thu, 2003-11-20 at 17:22, Cédric Pé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:
<root xmlns:xsi="</FONT><A HREF="http://www.w3.org/2001/XMLSchema-instance"><U>http://www.w3.org/2001/XMLSchema-instance"</U></A>
<FONT COLOR="#737373">xsi:noNamespaceSchemaLocation="schema.xsd">
.....
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>