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
Highlighted
Forums Advisor I
Posts: 501
Registered: ‎03-01-2013
My Device: BlackBerry Z10
Accepted Solution

Problem in parsing XML response.

Hi

I want to parse the XML response like this:

 

http://www.google.co.in/imgres?imgurl=&imgrefurl=http%3A%2F%2Fwww.simpledns.com%2Fkb.aspx%3Fkbid%3D1...

 

Can anyone help me??

Forums Advisor I
Posts: 501
Registered: ‎03-01-2013
My Device: BlackBerry Z10

Re: Problem in parsing XML response.

Contributor
Posts: 10
Registered: ‎12-27-2013
My Device: Blackberry 9780
My Carrier: blackberry

Re: Problem in parsing XML response.

try this method and execute

 

publicclassTest1{
    @XmlAttribute
    String sourceName;
    @XmlAttribute
    String targetName;
    @XmlElement(name ="column")
    List<Test1> columns;

    publicstaticTest1 unmarshal(File file){
        return JAXB.unmarshal(file,Test1.class);
    }
}