Solved

Class design on a XML

Posted on 2002-04-30
8
166 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
Comment Utility
I would say - try using XSL instead of java - I think it is much better
0
 
LVL 1

Author Comment

by:iamjhkang
Comment Utility
Definately.

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

Thanks.
0
 
LVL 1

Author Comment

by:iamjhkang
Comment Utility
do you think I use Vector type?
0
 

Expert Comment

by:fundoosathish
Comment Utility
u need an xsl interface so then u can use java efficiently.

bye
sathish
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 1

Expert Comment

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

Author Comment

by:iamjhkang
Comment Utility
Would you get me a sample code using XSLT?

Thanks.
0
 
LVL 9

Expert Comment

by:Venci75
Comment Utility
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
Comment Utility
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

744 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

10 Experts available now in Live!

Get 1:1 Help Now