PDA

View Full Version : load movable type XML


trufflepig
08-29-2003, 07:52 AM
Hi,

I apologize in advance... I've tried (hard) looking through forums and reading tuts to figure this out, and i'm probably just retarded, but i just can't get this right

I want to load content from an xml file into a textbox

my xml (created from mt) is:

<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:admin="http://webns.net/mvcb/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">

<channel>
<title>blah-XML</title>
<link>http://www.blah.com/</link>
<description></description>
<dc:language>en-us</dc:language>
<dc:creator>[email protected]</dc:creator>
<dc:date>2003-08-29T03:11:14-05:00</dc:date>
<admin:generatorAgent rdf:resource="http://www.movabletype.org/?v=2.64" />
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>

<entry>
<title>blah</title>
<link>http://blah.html</link>
<body><![CDATA[ blah blah blah...]]></body>
<guid isPermaLink="false">2@http://www.blah.com/</guid>
<dc:subject></dc:subject>
<dc:date>2003-08-29T03:11:14-05:00</dc:date>
</entry>


</channel>
</rss>

I guess my question is whether i need to change anything in the xml, and if not, then what would the ActionScript look like? A hint? anything? please?!! :confused: (i feel like an arse)

freddycodes
08-31-2003, 12:10 AM
NO you probably don't need to change anything. But what exactly from the XML file do you want to appear in the text box?

trufflepig
08-31-2003, 02:27 AM
Hi, sorry, I want everything between <entry></entry> to load inside a dynamic textfield called "textBox". What would the actionscript look like?

also, i would like to use this for news updates, so there would gradually be more <entry>s added to the xml. Do i need additional actionscripting for this?

Thank you for your time