I’m trying to get and parse an XML file. I am following the sample code in “How To – Use the XML Parser” but when I put my url in the sample code it just hangs on requesting forever. If I put the same URL in the html demo I get the text of the xml file. I do not understand why one works and the other doesn’t. The htmldemo does have some kind of flow control built in, is that why it works?
I am using JDE version 5.0.0.14
//providing the location of the XML file,
//your address might be different
conn=(StreamConnection)Connector.open("http://localhost/bbxml/bookstore.xml");
you can’t use localhost on BlackBerry/MDS, open a command-prompt, type hostname and use that instead.