Ok, working to get an RSS feed to iTunes for a customer and tried this in Witango

<@assign local$thexml <@dom '<rss xmlns:itunes="http://www.itunes.com/ dtds/podcast-1.0.dtd" version="2.0"></rss>'>> <@dominsert local$thexml xpath="/rss" position=append><channel></ channel></@dominsert>

all is fine with this

but as soon as i do this line

<@dominsert local$thexml xpath="/rss/channel" position=append><itunes:image href="http://<@domain>/images/ RSSlogo.jpg"></itunes:image></@dominsert>

and test i get this error.

Error

An error occurred while processing your request:

File: sermons_iTunes_RSS2.taf
Position: createXML
Class: Internal
Main Error Number: -902

An error occurred while parsing the XML.
The prefix 'itunes' has not been mapped to any URI

Meta Stack Trace:

        Line    Meta Tag
0033    <@dominsert local$thexml xpath="/rss/channel" position=append>
*The meta stack is interpreted top-to-bottom: the top line shows the inner metatag that caused the error.


I can create the document in text and it work. So the issue is you can do namespaces you just cant create on the fly thru <@dom commands

So what i need to know is this.
Is it a bug or is there some documentation on how to do this

Ben
p.s. I have this working in PHP so this is a Witango issue



________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to