01-12-2011 01:17 PM
Developing an sample rich client application on blackberry using Visual studio plugin, Got the need to load an XML Document and read the tag values
var xmlDoc =
so hav to define variable XMLDOC , which is later used to load the XML file into it.
When tested in ordinary desktop internet browser, it worked fine , When tested in blackberry simulator , receiving this run time error :
ReferenceError: "ActiveXObject" is not defined
Appreceiate , if you could help us in resolvng the issue or suggest some alternative
01-12-2011 04:40 PM
ActiveX objects are only available inside of Internet Explorer running on Windows. They won't work in any other web browser.
If you are looking to parse XML in your application you can use standards based approaches such as using XMLHttpRequest to load the document through AJAX.
01-23-2011 05:48 AM
Thanks for your help Tim. Was able to implement using XMLHttpRequest to read a file but unable to write/update the XML file that I read.
Using ActiveXObject I can read and write but using XMLHttpRequest I am unable to. So need your further help to let me know, what are the extra settings/ways do I need to implement in my code to be able to write into an XML file.
Appreciate your expedite response.
01-24-2011 09:23 AM
By "write to a file" do you mean manipulate the response returned from the XMLHttpRequest or to physically write data to a remote file?
01-24-2011 11:23 PM
Thanks for your reply.
I have two requirement -
1) I have an XML file available in my project. to which I need to update fields/add records. The file should retain the changes. (PRIORITY )
2) I need to create an XML file and do the update fields/add records to it.
Appreciate if someone can take the priority one, as, I need a solution by evening today.