XML parsing with JSP, but not really JSP.

Hello Experts.
I have a peculiar question.  I have a group of Siebel people who have to parse an XML message.  Siebel uses its own proprietary language for coding, but underneath its JSP.  The problem is that no one is familiar with JSP.  So with the limited knowledge of JSP and Siebel not able to parse using a utility like DOM, can someone provide some sample code that would parse this XML…PLEASE!  Thank you in advance.  If I could assign 1000 points to this I would.

<Transaction TargetApplicationName="String" DateTimeStamp="2001-12-17T09:30:47.0Z" TransactionIndicator="String">
                <Contact searchspec="String" Transaction="Create">
                  <AgentTypeDescription>Part Time</AgentTypeDescription>
                        <City>some city </City>
                        <State>some state</State>
                        <AgencyName>AAAA Ins Company</AgencyName>
                        <CodeDescription>Test Div 01</CodeDescription>
                        <CodeDescription>Test District 01</CodeDescription>
                        <CodeDescription>Test Office</CodeDescription>

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Sure. The only question is whether you want to parse this using some java code like DOM or SAX or whether you want to ouput this xml into a jsp.

As this is JSP I will guess the latter and say that you should use the JSTL libs  http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="x" uri="http://java.sun.com/jstl/xml" %>
<c:import var='xml' url='message.xml'/><!-- import your message file-->
<x:parse xml="${xml}" var="doc" />

                <!-- now use standard xpath to traverse the document -->
            <td><x:out select="$doc/Transaction/Object2/Contact/AgentNumber"/><!-- outputs "111111"--></td>
            <td><x:out select="$doc//FirstName"/><!-- outputs "Bob"--></td>
If you need some java code to parse it then I can provide a utility class for that too.
jhughes4Author Commented:
I don't think that the JSTL is available to Siebel.  Is there another way?  Can you also provide the java code?  thanks
you can find an example here...

for more details on dom ...visit the below site...

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java EE

From novice to tech pro — start learning today.