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

Web and WebWorks Development

Reply
Contributor
pulkitkkr
Posts: 23
Registered: ‎03-07-2013
My Device: Blackberry Z10
My Carrier: Vodafone

Read from XML

Guyz my xml file is :-

 

<?xml version="1.0"?>
<user>
<mail>abc@gmail.com</mail>
<mail>abcdd@live.com</mail>

</user>

 

 

I want to retrieve mail id on click of button in html please help

Please use plain text.
Developer
kpbird
Posts: 23
Registered: ‎01-05-2013
My Device: 9800
My Carrier: IDEA

Re: Read from XML

I suggest to use XML Dom with getElementById method to get email list
for more detail check following link
http://www.w3schools.com/xml/xml_dom.asp
Please use plain text.
Developer
The_Anomaly
Posts: 322
Registered: ‎08-06-2012
My Device: Dev Alpha / Playbook / Curve 9300

Re: Read from XML

I know its crazy long thread and a bit complicated but try get your head around this:

http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/why-it-goes-to-if-condiation/td-...

 

It uses a js called soapclient which was the one way I could get to read external XML.  It also explains how to bypass the whole browser protection blocking CORS.

If it helped you, click like. :smileyhappy:
Please use plain text.