General discussion

Locked

Enterprise Java Bean and XML

By shaikhather ·
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

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Enterprise Java Bean and XML

by okujava In reply to Enterprise Java Bean and ...

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:
<person>
<name>Charly</name>
<age>22</age>
<tel>333333</tel>
</person>
so u have the info about a person. u can make a file staff.xml, that looks like this:

<staff>
<person>
....
</person>
<person>
....
</person>
<person>
....
</person>
....
</staff>

that's all.

easy and powerful

ciao

Collapse -

Enterprise Java Bean and XML

by shaikhather In reply to Enterprise Java Bean and ...

Poster rated this answer

Collapse -

Enterprise Java Bean and XML

by dinesh_upare In reply to Enterprise Java Bean and ...

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

Collapse -

Enterprise Java Bean and XML

by shaikhather In reply to Enterprise Java Bean and ...

Poster rated this answer

Collapse -

Enterprise Java Bean and XML

by shaikhather In reply to Enterprise Java Bean and ...

This question was closed by the author

Back to Web Development Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums