dcsimg
Using XML
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Thursday, August 23, 2001 07:02 AM

Hi Guy's !!!
I'm Presently workin on a Chat Appln where i've got to pass
formatted text data consisting of fonts,colors & styles.
At the moment i'm passing it using "DataOutputStream" through an Applet-Servlet Commn.,which works perfectly where plain text is concerned.

I've heard that using XML,which i'm not very familiar with in such a situation would be most suitable.

Could u Pls suggest how it could be done using XML.

Thanks a lot Guy's.

Re: Using XML

Posted By:   Luigi_Viggiano  
Posted On:   Thursday, August 23, 2001 08:24 AM

XML is just a nice way to represent data, you should create your preferred format for the document (choosing tags, attributes, etc). XML gives the advantage that can be easily be transformed from a format to another using XSLT, and is independent from the presentation (today you can transform your XML data to HTML, tomorrow in any other format will appear). To parse an XML document (for example a string or an InputStream) you can use one of most common parsers that give you a DOM object (a tree of objects that can be browsed programmatically to understand the document's content).
About | Sitemap | Contact