displaying xml in a field - solved
Posted: Sun Jun 21, 2009 8:59 pm
I have an extremely simple script which should display the contents of a web page. The web page is returned from the google weather api and as far as I can see is a lot larger in content than shown by my script.
Here is the script
on mouseUp
local tURL, tTree
put "http://google.co.uk/ig/api?weather=dl56up" into tURL
put revCreateXMLTree(tURL,false,true,false) into tTree
put revXMLText(tTree, ,false) into field "ListXML"
revDeleteXMLTree tTree
end mouseUp
first I create a URL and then a tree using the URL as an argument. My attempts to display the contents result in only the first line of the XML being shown;
<?xml version="1.0"?>
I have entered the URL into a web browser to make sure things are ok, which they are.
Anyone have an idea why I do not see more of the XML stream in my field?
Regards
Jeff
Here is the script
on mouseUp
local tURL, tTree
put "http://google.co.uk/ig/api?weather=dl56up" into tURL
put revCreateXMLTree(tURL,false,true,false) into tTree
put revXMLText(tTree, ,false) into field "ListXML"
revDeleteXMLTree tTree
end mouseUp
first I create a URL and then a tree using the URL as an argument. My attempts to display the contents result in only the first line of the XML being shown;
<?xml version="1.0"?>
I have entered the URL into a web browser to make sure things are ok, which they are.
Anyone have an idea why I do not see more of the XML stream in my field?
Regards
Jeff