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

I see a problem  for <Disk> tag:

<Disks>
<Disk... />
<Partitions>
<Partition ... />
</Partitions>
</Disk> <--- no open tag!
</Disks>

-----Original Message-----
From: vincent doyelle [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 16, 2002 1:35 PM
To: [EMAIL PROTECTED]
Subject: 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to