Good. You know you need the XML parsers to parse the data. You should read
about SAX and DOM. Start here: http://java.sun.com/xml/tutorial_intro.html ,
http://java.sun.com/xml/?frontpage-spotlight. You will quickly figure out
that they are not intuitive for Java programmers to use...

Happily, there is a great tool you can use to make working with XML much
easier: it's called JDOM. Go to www.jdom.org.

There are other tools out there that give you similar functionality, but I
happen to like JDOM the best - that's why I recommend it.

--------------------
Kevin Baynes
Software Engineer
[EMAIL PROTECTED]


> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
> karthikeyan
> Sent: Friday, August 17, 2001 10:48 AM
> To: [EMAIL PROTECTED]
> Subject: XML JSP
>
>
> Hi Guys,
>
>   This is my requirement - i am doing a user search, samle search
> result is
> below :
>
>   Displaying matches 1 through 10
>
>   John
>   Matching Criteria: 75% AUSTIN, TX
>
>   Dave
>   Matching Criteria: 50% DALLAS, TX
>
>   click-> [1, 2, 3, 4, 5]
>
>  all i need is i should be able to read below xml schema and display the
> above result :
>
> <?xml version='1.0'?>
>   <SearchResult>
>     <ResultHeader>
>       <MemberID>12345</MemberID>
>       <SearchType>quick</SearchType>
>       <Result>success</Result>
>       <CurrentPage>5</CurrentPage>
>       <TotalPages>10</TotalPages>
>     </ResultHeader>
>     <ROWSET>
>       <ROW num="1">
>         <MemberID>100</MemberID>
>  <UserName>John</UserName>
>  <City> Austin</City>
>  <State> TX</State>
>  <Score>75</Score>
>       </ROW>
>       <ROW num="2">
>         <MemberID>10001</MemberID>
>  <UserName>Dave</UserName>
>  <City> DALLAS</City>
>  <State>TX</State>
>  <Score>50</Score>
>       </ROW>
>       <ROW num="3">
>         <MemberID>1210</MemberID>
>  <UserName>Mike</UserName>
>  <City> San Diego</City>
>  <State> CA</State>
>  <Score>50</Score>
>       </ROW>
>       <!-- Additional Rows -->
>     </ROWSET>
>   </SearchResult>
>
>   I have xecres.jar and xalan.jar in my classpath.  I saw few
> example files
> but i don't know how to go about it. If you
> guys could give me suggestions or sample code which which match the above
> requirement i would be grateful.
>
>   Waiting for your earliest reply,
>
>   With Regards,
>
> b.karthikeyan.
>
> __________________________________________________________________
> _________
> To unsubscribe, send email to [EMAIL PROTECTED] and include
> in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to