Discussion Locked

Enterprise Java Bean and XML

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hello Freinds
This is my first question in this community. I hope experts will must reply. I want to know that how can we integerate XML with Java or EJB?
I have much stuff on it but these do not give me the best answer please try to breifly explain it. my email address is.
atherali@trdesk.com
Thank you very much in Advance.
Ather Ali Shaikh

5 replies

by okujava

hi!
the major use of XML is as data model for your java applications. for this purpose u can use sun's xml kit - SAX. then u can parse xml files and read your data. it's up to u, what do u do with this data. XML is fine to replace databases in simple applications as u define your own XML tags and mark your data with these tags:

Charly
22
333333

so u have the info about a person. u can make a file staff.xml, that looks like this:

....

....

....

....

that's all.

easy and powerful

ciao

by dinesh_upare

Hi,
XML serves as database.When u use other databases such as oracle ,access, it takes lot of resources to establish the conection which is very costly when performance comes into picture. Using XML u store ur data in text file( ur own defined format).Through java,it is possible to parse
the whole xml document and the data as well using different API like JDOM,SAX,W3C,DOM.
U can extract data from a particular node as well which is quite simillar of extracting data from a row or a column of the table in the database.And it is more effective than rather sending sql queries to databases.

Regards

Dinesh Upare
Java Software Developer
Rushi Software, Mumbai -India

This discussion is closed to new replies.