Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...