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: 53

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

Tue Nov 04, 2014 7:57 pm

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: 53

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

Wed Nov 05, 2014 5:29 pm

I decided to use vb to do this instead

Return to “General XML Questions”

Who is online

Users browsing this forum: Bing [Bot] and 3 guests