[jdom-interest] Specify a XML schema in a Jdom document

Benjamin Kopic benjamin.kopic at panContext.com
Mon Nov 24 01:58:57 PST 2003


Try:

Element rootElt = new Element("root");
rootElt.setNamespace(Namespace.getNamespace("noNamespaceSchemaLocation",
"schema.xsd"));
rootElt.addNamespaceDeclaration("xsi",
"http://www.w3.org/2001/XMLSchema-instance");

I hope this helps.

Best regards,

Ben

On Thu, 2003-11-20 at 17:22, Cédric Pélissier wrote:

> Hi,
> Is it possible to specify a xml schema when building a Jdom document ... as
> following
>       Code:
>       <root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:noNamespaceSchemaLocation="schema.xsd">
>       .....
> 
> There is a way to specify dtd but schema ??
> 
> thanks for any help ...
> 
> Cedric
> 
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com

-- 
benjamin kopic
m: +44 (0)780 154 7643
t: +44 (0)20 7794 3090
e: benjamin.kopic at panContext.com
w: http://www.panContext.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20031124/1fe1d93a/attachment.htm


More information about the jdom-interest mailing list