Hi all
 
I've got a problem using a parser to parse a steam 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.
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 correct.
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 ?
 
TIA
 
Vincent

Reply via email to