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

Questions about XML that are not covered by the other forums should go here.
winkimjr2
Posts: 62
Joined: Thu Jun 26, 2014 9:00 pm

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

Post 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".
winkimjr2
Posts: 62
Joined: Thu Jun 26, 2014 9:00 pm

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

Post by winkimjr2 »

I decided to use vb to do this instead
Post Reply