So I'll repeat what I allready said, you can't define a root element in
XML Schema, unless you use the emf (Eclipse Modeling Framework)
namespace to tag an element as root. You can also tag it yourself, and
make your paser detect this tag.
<br><br><div><span class="gmail_quote">2006/8/1, enis enis &lt;<a href="mailto:enis_ch2001@yahoo.fr">enis_ch2001@yahoo.fr</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">But the problem is that there's no root element in the xml schema, and I want it to be created, or else the parsing without the root is not interesting for me.
</div><div><span class="q"><br><br>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">
So the root is the &lt;schema&gt; element....<br><br>All else is normal XML parsing. Look for JDOM examples and tutorials... you'll have everything you need.<br></div><br></div></span></div><div></div></div>
</div></blockquote></div><br>