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

Native Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
New Contributor
Posts: 6
Registered: ‎04-17-2013
My Device: Blackberry Z10 Alpha B
My Carrier: +66909300253

How to parse image from remote xml file ?

[ Edited ]

Hi,

 

I am working currently on , one network app   and   i have  standart listview

 

i  can get  from  remote xml  file   Title  and another infos  no problem but   i cant   parse  image file

 

Linked  in xml .

 

Xml   file is ,

 

<Title>3096 Days</Title>

<ReleaseDate>25/4/2556</ReleaseDate>

<Image>http://xxx.xxxxxxx.com/./site_files/movies/banner/3096Days_bn.jpg</Image>

 

And my Qml ,

 

Page
    {
    id: tab1

        Container
        {          
            ListView
            {
              rightPadding: rightPadding.MAX_VALUE
              rootIndexPath: []
              dataModel: dataModel

                    listItemComponents:
                  [
   
                        ListItemComponent
                        {
                            type: "item"
                              
                             StandardListItem
                             {                      
                              
                              title: ListItemData.Title
                              description: ListItemData.ReleaseDate
                              imageSource: ListItemData.Image
                            }

                        }
                    
                   ]
             }

                attachedObjects:
                [
                    GroupDataModel
                    {
                        id: dataModel
                        sortingKeys: [ "Title" ]
                        sortedAscending: true
                        grouping: ItemGrouping.None
                    },
                    DataSource
                    {
                        id: dataSource
                        source: "http://xxxx.xxxxx.com/BBxml/en/xxxx.xml"
                        query: "/Movies/Movie"                    
                        type: DataSourceType.Xml

                        onDataLoaded:
                            {
                            dataModel.clear();
                            dataModel.insertList(data)
                            }
                    }
                 ]
                
        }
    }
}

 

 

I have searched already  documentation and forum but i couldnt found solution for this  any idea ?

 

How to parse  linked in xml file image ?

 

Thanks.

New Contributor
Posts: 6
Registered: ‎04-17-2013
My Device: Blackberry Z10 Alpha B
My Carrier: +66909300253

Re: How to parse image from remote xml file ?

Any help ?
New Contributor
Posts: 6
Registered: ‎04-17-2013
My Device: Blackberry Z10 Alpha B
My Carrier: +66909300253

Re: How to parse image from remote xml file ?

No one know i  guess ! 

 

my ony problem is parsing  in  xml   file ,   image link   for display in Listview.

Developer
Posts: 29
Registered: ‎05-05-2012
My Device: PB 32
My Carrier: Koodo Mobile

Re: How to parse image from remote xml file ?

To parse the file, look at the Expat or libxml2 libraries. Documentation is at their respective websites:

 

http://expat.sourceforge.net/

http://www.xmlsoft.org/

Highlighted
New Contributor
Posts: 6
Registered: ‎04-17-2013
My Device: Blackberry Z10 Alpha B
My Carrier: +66909300253

Re: How to parse image from remote xml file ?

Thank you very much for advce ill  search in these web sites.

New Contributor
Posts: 6
Registered: ‎04-17-2013
My Device: Blackberry Z10 Alpha B
My Carrier: +66909300253

Re: How to parse image from remote xml file ?

I  have  read both website  but   dont have any solution for my case.

 

Actually  i need  a  code  for understand how its works,  even i have  added

 

QT += network    and    include   <QNetworkAccessManager>
but     QNetworkAccessManager  is   unresolved.

 

realy i dont understand.

New Contributor
Posts: 6
Registered: ‎04-17-2013
My Device: Blackberry Z10 Alpha B
My Carrier: +66909300253

Re: How to parse image from remote xml file ?

Any another solution ?