Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use XML for desktop application?

 
John Best
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear friends,

Another one from me... a learner and user (to be) of XML

Say, I have CVs of various job applicants, with following format -

<cv>
<name>ABC</name>
<dob>03-Jan-1970</dob>
<state>CA</state>
<skills>Java, XML, Oracle, XQuery</skills>
<currentpost>Project Manager</currentpost>
<experience>
<post>Project Manager</post>
<company>Nokia</company>
<profile>Handling of projects. ......</profile>
<post>Project Leader</post>
<company>IBM</company>
<profile>Handling of projects. ......</profile>
</experience>
</cv>
<cv>
<name>PQR</name>
<dob>03-Dec-1971</dob>
<state>AB</state>
<skills>Java, XML, Oracle, XQuery, VB 2005, SQL-Server</skills>
<currentpost>Project Manager</currentpost>
<experience>
<post>Project Manager</post>
<company>XYZ Infotech</company>
<profile>Handling of projects. ......</profile>
<post>Project Leader</post>
<company>ABC Ltd</company>
<profile>Handling of projects. ......</profile>
</experience>
</cv>
.....
.....
.....

What should I use to display this XML file, as it will be displayed regularly in MS Word...?
I mean to format the this XML file what should I use..?

Also, if this has to be done with a desktop application...using JAVA..? then what...?



Have a nice day
John
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The standard Java library provides plenty of tools for manipulating XML. You might want to get familiar with Harold's free online book to start with.

Formatting XML elegantly is the realm of XSLT.

Bill
 
John Best
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear William,

Thanks a lot.
also for the answer and your site link... A very informative site...

Thanks a lot again...


Have a nice day
John
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It seems like you are saying "I have this data, what should I use to display it?"

If it's a desktop application, and you want to write it in Java, then you should use Swing components to display it. It makes no difference whether your data is XML or a database or Windows INI files or whatever. Don't let the structure of the underlying data interfere with the way you want it displayed.
 
John Best
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Paul,

Paul Clapham wrote:It seems like you are saying "I have this data, what should I use to display it?"


I think, I gave my requirement in a wrong way. I will use Java swing for front-end, its sure. But the CVs
are in XML format and I want to display these CVs as if they are written in Word. For this, I will need
some kinda formatting to XML. I was asking for this... :)

Thanks a lot.. :)

Have a nice day
John
 
John Best
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Paul,

One more. ... in continuation of the CV project...

Say, I have 3000 CVs, then to read, search them... which one will be better, SAX or DOM...?


Thanks in advance..

Have a nice day
John
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
DOM will be better because it will be much easier for you to do the programming.
 
John Best
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul Clapham wrote:DOM will be better because it will be much easier for you to do the programming.


Dear Paul,


Thanks a lot ... :)



have a nice day
John
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic