Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Using XML with Java Sockets (error detection)

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
The task is to send datastreams between sockets (java.net sockets extended for particular functionality i.e. random insertion of errors) and to evaluate the datastreams sent by examining any errors in the stream.
Does anyone know if it is possible to use XML with Java as a way to detect errors when sending data between 2 sockets?
If this is possible, are there any good online references/tutorials related to using java sockets and XML? Also, if anyone has a suitable approach to this problem it would be most welcome.
Looking forward to your replies
Emma Gordon
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
XML eXtensive Markup Language, provides a set of rules that allow you to define the contents of an xml document in such a way that makes it easy to send/recieve and tranlate data. If you are transferrig the errors as documents (even just a string stream) you can use XML for this. Microsoft<sup>TM </sup> has a tutorial on creating XML documents. The package I use for the manipulation and parsing of an XML Document is Xerces
Hope this helps
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!