Solved

Class design on a XML

Posted on 2002-04-30
8
167 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
 

Expert Comment

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

bye
sathish
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to parse custom JSON to POJO java 4 52
What is the latest versions eclipse neon 2 139
what is the difference between "sudo su" and "su - root" 6 102
ForLoop Example 3 40
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
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…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

932 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now