Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 50
Registered: ‎09-01-2009
My Device: Not Specified
Accepted Solution

Web Browser Unable to open .XML file

hi

 

I need to use my XML file from a web server and when i try to open the same using HTTP connection it is unable to open. when i try to open same .XML file in the web browser it is unable to open?

can you please tell me why it is happening and how to solve this problem?

 

Thanks

Gunjan

Highlighted
Developer
Posts: 39
Registered: ‎02-06-2010
My Device: 9000
My Carrier: devloper

Re: Web Browser Unable to open .XML file

[ Edited ]

Use StreamConnection to access http Request

Reffer following code:=

 StreamConnection conn;
                conn=(StreamConnection)Connector.open("URL of XML FILE");

Developer
Posts: 50
Registered: ‎09-01-2009
My Device: Not Specified

Re: Web Browser Unable to open .XML file

hey Dhavani

 

Thanks for your reply.

It help me a lot.

 

Thanks