zeocrash Posted May 21, 2007 Posted May 21, 2007 OK basically i'm writing a program to read in xml files and send them out to a text message provder The messages come in like so. <messages> <sms.message> <account.id>username</account.id> <password>password</password> <username>i</username> <mobile.to>1</mobile.to> <message>message text</message> <notify>1</notify> <sender.email>test@test.com</sender.email> </sms.message> </messages> Now before anyone comments on the poor xml, it was written by my predecessor and unfortunatly is in common usage so must be kept. anyway, messages can have multiple "<mobile.to>" elements. e.g. <messages> <sms.message> <account.id>username</account.id> <password>password</password> <username>i</username> <mobile.to>1</mobile.to> <mobile.to>1</mobile.to> <mobile.to>1</mobile.to> <mobile.to>1</mobile.to> <mobile.to>1</mobile.to> <message>message text</message> <notify>1</notify> <sender.email>test@test.com</sender.email> </sms.message> </messages> Basically i want to store the fields, then store the mobile numbers to an array. can someopne help me. Quote
Administrators PlausiblyDamp Posted June 3, 2007 Administrators Posted June 3, 2007 What code do you have so far to read in the XML? What classes are you using XMLReader / XMLDocument / Something else? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.