0

my question is very simple. We are doing tests on XML, and to verify the XML I need to simply stamp it (as a string). The XML is located in DE sendable, in a field named HTML__XML. This is my call:

%%[
Var @HTML_XML

Set @HTML_XML = AttributeValue("HTML__XML")]%%

%%=v(@HTML_XML)=%%

However, performing the call it doesn't show anything. The call normally working with XML (BuildRowSetfromXML, for example) normally works, but I am not able to stamp the raw XML. Where am I wrong?

1 Answer 1

0

It should show if you view the source in the VAWP version. As a workaround, I typically do this for XML debugging output:

%%[
var @HTML_XML

set @HTML_XML = AttributeValue("HTML__XML")
set @HTML_XML = replace(replace(@HTML_XML, ">", "&gt;"), "<", "&lt;")

]%%
%%=v(@HTML_XML)=%%
2
  • Hi Adam, thank you for your feedback. Could you explain why it works only in the VAWP? Commented Jan 24, 2018 at 8:02
  • Send preview and VAWP renders the tags as HTML. it's just easier to view the source on the VAWP. Commented Jan 24, 2018 at 11:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .