I have an XML feed which is being generated in expressionengine which is validating and working fine. However I need it for an import and what I am trying to do is remove the space between the words that are being generated in the 'author' node.
At the moment the below feed outputs:
<author>Author Name</author>
What I need it to do is to automatically remove the space so it outputs:
<author>AuthorName</author>
I am a newbie at XML and have spent hours reading up on using xsl and researching XML but had no luck. If anyone can tell me how to achieve this or if it is even possible I would be very grateful.
Current XML Template
{exp:rss:feed channel="name"}
<?xml version="1.0" encoding="{encoding}"?>
<rss version="2.0"
xmlns:atom="http://ift.tt/r5ut6F"
xmlns:dc="http://ift.tt/mToXri"
xmlns:sy="http://ift.tt/wvwGq0"
xmlns:admin="http://webns.net/mvcb/"
xmlns:rdf="http://ift.tt/oZyhLL"
xmlns:content="http://ift.tt/yb6HFH">
<channel>
<admin:generatorAgent
rdf:resource="http://ift.tt/1lu2GOT" />
{exp:channel:entries channel="name"
limit="5" rdf="off" dynamic_start="yes" disable="member_data" status="open"}
<item>
<title>{title}</title>
<author>{exp:xml_encode}{entry_author}{/exp:xml_encode}</author>
</item>
{/exp:channel:entries}
</channel>
</rss>
{/exp:rss:feed}
No comments:
Post a Comment