Hi Erico,
I am developing the application under Palm OS only.
I am using the file streaming functions provided by
the palm.
Sorry if I had not mentioned that clearly.

I am reposting my question below again.

I have a created an XML file that looks like this.

<?xml version="1.0" encoding="UTF-8"?><MyMail
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:noNamespaceSchemaLocation="MyMail.xsd"><Mail><MailID>M1</MailID><Date>20
03-12-3</Date><Content>Hello</Content></Mail></MyMail>

I need to find how many mails are stored in the
file.
I can determine this by counting the number of
occurances of "<Mail>". How to I do this?

I need to do this so that I can append new mails to
this file & appropriately increment the MailID

Thanks,
RK
> >


__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to