Page 1 of 1

How do I add an element output to a email from xml doc?

Posted: Tue Nov 04, 2014 7:57 pm
by winkimjr2
I have a xml document and I want to add ServedBy to an email document. How do I do this?

My xml code

Code: Select all


<ServiceInfo>
<ServedBy Word="AMRTC">Metro Regional Treatment Center</ServedBy>
<DateServed>10/30/2014</DateServed>
<HowServed Word="SHORTFORM">Short Form</HowServed>
</ServiceInfo>
I created email in Altova and it looks like this:

Code: Select all


<!DOCTYPE html>
<html>
<head>
<title>Service Information</title>
</head>
<body>
<p>Do not reply to this email. This email account is not monitored and any reply will not be read.</p>
<p>The order in your case has been served on the respondent and/or the respondent’s guardian name. This means that the respondent and/or the respondent’s guardian has been notified about the order.</p>
</body>
</html>
I want to add Metro Regional Treatment Center element of ServedBy as the first line in the body of the email saying "Service was done by Metro Regional Treatment Center".

Re: How do I add an element output to a email from xml doc?

Posted: Wed Nov 05, 2014 5:29 pm
by winkimjr2
I decided to use vb to do this instead