Solved

Class design on a XML

Posted on 2002-04-30
8
169 Views
Last Modified: 2010-03-31
<?xml version="1.0" encoding="UTF-8"?>
<!ELEMENT result (target, resultDoc*)>
<!ELEMENT target (#PCDATA)>
<!ELEMENT resultDoc (docID, resultField+)>
<!ELEMENT resultField (fieldName, fieldValue)>
<!ELEMENT fieldName (#PCDATA)>
<!ELEMENT fieldValue (#PCDATA)>


The search result is valid by the DTD above.
I want to lender them to a table structure like below.
------------------------------------------------------
DocID     |        fieldname      |        filedvalue
------------------------------------------------------
DocID1    |        fieldname1     |        filedvalue1
DocID1    |        fieldname2     |        filedvalue2
DocID2    |        fieldname1     |        filedvalue1
DocID2    |        fieldname2     |        filedvalue2
DocID2    |        fieldname2     |        filedvalue2

How can I design java classes which get the String, the search result?
the classes should be used in JSP pages.

Thanks.
0
Comment
Question by:iamjhkang
8 Comments
 
LVL 9

Expert Comment

by:Venci75
ID: 6979915
I would say - try using XSL instead of java - I think it is much better
0
 
LVL 1

Author Comment

by:iamjhkang
ID: 6979930
Definately.

You are right. but for some reasons I need to use Java instead of XSL.

Thanks.
0
 
LVL 1

Author Comment

by:iamjhkang
ID: 6979931
do you think I use Vector type?
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Expert Comment

by:fundoosathish
ID: 6989652
u need an xsl interface so then u can use java efficiently.

bye
sathish
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 7082558
Please update/finalize this question... here I am again with the same old requests.
Moondancer - EE Moderator
0
 
LVL 1

Author Comment

by:iamjhkang
ID: 7082681
Would you get me a sample code using XSLT?

Thanks.
0
 
LVL 9

Expert Comment

by:Venci75
ID: 7992721
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
PAQ'd and pts refunded
Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Venci75
EE Cleanup Volunteer
0
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 8048324
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
custom annotations 9 42
Way to decrease size of apk file 9 87
sql import cannot be resolved jsp 3 49
add projects t working set in maven 2 23
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This video teaches viewers about errors in exception handling.

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question