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

Reply
New Contributor
includee666
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.

Please use plain text.
New Contributor
includee666
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 ?
Please use plain text.
New Contributor
includee666
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.

Please use plain text.
Developer
MasterOfBinary
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/

Please use plain text.
New Contributor
includee666
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.

Please use plain text.
New Contributor
includee666
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.

Please use plain text.
New Contributor
includee666
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 ?

Please use plain text.