You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by vincent doyelle <vd...@yahoo.fr> on 2002/05/16 22:34:58 UTC

What does it mean : "The root element is required in a well-formed document"

Hi all

I've got a problem using a parser to parse a stream
coming from a socket over the network.
I'm using 2 applications, one is the sender and is
writing xml things on the socket output, after
writing, yhe socket is closed.
this socket output is created like this : 
PrintWriter sortie = new PrintWriter(new
OutputStreamWriter(incoming.getOutputStream()), true);
I'm writing on the fly : like this sortie.print(...);

I've got the error "The root element is required in a
well formed document".
I can't see why because I've checked all my elements
and they seems to be correctly nested.
My "document" is formatted like this : 
<?xml version="1.0"?>
<Mesures>
<Equipement ... />
<Processeurs>
<CPU ... />
</Procsseurs>
<Processses>
<Process ... />
</Processes>
<Users>
<User ... />
</Users>
<Memoires>
<Memoire ... />
</Memoires>
<Disks>
<Disk... />
<Partitions>
<Partition ... />
</Partitions>
</Disk>
</Disks>
</Mesures>

Have anyone an idea why I get this error ?

Thanks in advance

Vincent



___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org