Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to replace @VARIABLE in text file with value of Emails in xml file

Status
Not open for further replies.

johnfaj

Programmer
Oct 15, 2014
1
0
0
SI
How i can read this xml file

<Subs>
<Sub Report="BusinessSummarySubs" EMails="lalla@yahoo.com; haha@yahoo.com">
<Sub Report="PlayerSubs" EMails="hehe@hotmail.com">
</Subs>

and replace @VARIABLE in BusinesSummarySubs.txt with EMails value in

Here is the content(part of the content) from BusinessSumarySubs.txt

CType(extensionParams(0),ParameterValue).Name = "TO"
CType(extensionParams(0),ParameterValue).Label = ""
CType(extensionParams(0),ParameterValue).Value = "@VARIABLE
 
The Sub elements are not properly terminated. It should be.
Code:
<Sub Report="BusinessSummarySubs" EMails="lalla@yahoo.com; haha@yahoo.com"[b]/[/b]>
Does the number of email addresses in the XML file correspond to the number of lines in the txt with the @VARIABLE string? Or do you want to concatenate all email addresses and simply replace the a single instance of the @VARIABLE?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top