Help! Just need to pull this email field (which exists) from the weblog into an XML template, but keep on getting an error:
XML Parsing Error: mismatched tag.
This XML template works fine…
<?xml version="1.0" encoding="UTF-8"?>
<root>
{exp:weblog:entries weblog="jobs"}
<item>
{if mantra_title!=""}
<title>
<![CDATA[{mantra_title}]]>
</title>
{/if}
{if mantra_subtitle!=""}
<subtitle>
<![CDATA[{mantra_subtitle}]]>
</subtitle>
{/if}
{if mantra_desc!=""}
<desc>
<![CDATA[{mantra_desc}]]>
</desc>
{/if}
</item>
{/exp:weblog:entries}
</root>
But if I add this “if” statement, it fails…invalid.
{if mantra_url!=""}
<email>
<![CDATA[{mantra_url}]]>
</email>
{/if}{mantra_url}[email protected]
I tried installing the XML encode plugin, but that just kicks out garbage.
Help! Just need to pull this email field (which exists) from the weblog, how is that done?