
September 24th, 2004, 01:18 PM
|
 |
I'm just an IF statement
|
|
Join Date: Dec 2003
Posts: 400
Time spent in forums: 1 Day 2 h 26 m 33 sec
Reputation Power: 5
|
|
Macromedia Director lingo & XML
I am doing a very simple call to an XML document. And for some reason it only works if the document is local inside Director. If i try to parse an xml document from a URL it wont work. Ill show you very simple code that wont display one of the values of XML child 1
Code:
global internetVersions
internetVersions = new(xtra "xmlparser")
errCode = internetVersions.parseURL("http://webpage.com/index.xml")
put internetVersions.child[1].child[3].attributeValue[1] into member("Display XML").line[1]
and here is the code that works perfectly.
Code:
global localVersions
localVersions = new(xtra "xmlparser")
errCode = localVersions.parseString(member("local XML").text)
put localVersions.child[1].child[3].attributeValue[1] into member("Display XML").line[1]
im guessing the problem is in the "put". Is there a different call to xml data from a url than to a local xml document?
__________________
"In a way, we're dead already"
|