hi,
take a look at jdom for parsing your xml docs. with the jdom api it should
be pretty simple to do the task you want to.

hope this helps!

-mw




----- Original Message -----
From: "Renz Daluz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 26, 2001 5:52 AM
Subject: This might be out of Context


> Hi,
>
> I'm using servlet that will read my xml file. Then from my xml file I will
> generate some counting
>
> ex.
>
> <actions>
>         <tran>
>                 <action>add</action>
>                 <user>me</user>
>         </tran>
>         <tran>
>                 <action>edit</action>
>                 <user>me</user>
>         </tran>
>         <tran>
>                 <action>add</action>
>                 <user>you</user>
>         </tran>
> </action>
>
> From this, I want to get the total number of <tran>, total number of
<tran>
> per <user>, total number of <action> per <user> etc.
>
> I hope I stated it clearly.
>
> If you have other suggestion in doing this, feel free to suggest.
>
> Note: Please make it step by step. I'm a newbie :-)
>
> Thanks
>
> BR
> /Renz
>
>
___________________________________________________________________________
> 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