[jdom-interest] Newbie schema question

Scott Ellsworth scott at alodar.com
Tue Aug 1 18:45:44 PDT 2000


At 07:32 PM 8/1/2000 -0500, Brett McLaughlin wrote:
>Scott Ellsworth wrote:
> > How will [schema] be set up?  I know that for a dtd, all I need do is 
> provide a
> > doctype to my document, and provide the "true" flag, and I am set.  (Modulo
> > the bug in xerces that has it validate whenever there is a doctype set.)
> >
> > [A]ll it looks like I need to do is add a few
> > attributes to the parent node.
>
>Check p. 38, Example 2-2
>
>;-)

Click.  I grab the root element, then call addAttribute on it for the 
xmlns:xsi and xsi:schemaLocation attributes with appropriate values.

Thanks!

Scott
Scott Ellsworth
scott at alodar.com




More information about the jdom-interest mailing list