November 22, 2019, 02:00:23 AM
Welcome, Guest. Please login or register
News: Stay up to date with everything that's happening at http://plus.digitalsignage.com

MediaSignage support forum



Author Topic: XMLItem  (Read 4484 times)

ecolmar

  • Jr. Member
  • **
  • Posts: 97
  • Karma: +5/-0
    • View Profile
XMLItem
« on: June 04, 2012, 02:22:13 PM »
Hello
I am trying to use the new XMLItem component with our own xml files.
You seem to explain that this component can work with any kind of xml structure. Is that right ?
If that is the case, how would you configure the Items path with the following xml structure :

<Promos-FRAM>
  <Promos From="NTE">
    <Promo>
      <BlankDiscount>FALSE</BlankDiscount>
      <DateCreationPromo>10.05.2012</DateCreationPromo>
      <ID>2</ID>
      <RefProduit>36206</RefProduit>
      <Produit>ADRIATIC</Produit>
      <TypeOffre>Promotion</TypeOffre>
      <From>NANTES</From>
      <To>DUBROVNIK</To>
      <Country>DUBROVNIK</Country>
      <Hotel>Adriatic **</Hotel>
      <Description>Chambre Double DOUCHE, DEMI-PENSION</Description>
      <StayDuration>7</StayDuration>
      <Date>le samedi 19 mai 2012</Date>
      <OriginalPrice>680</OriginalPrice>
      <Price>490</Price>
      <Discount>190</Discount>
      <Map Duration="15">MAPS\CROATIE.FLV</Map>
      <Logo Duration="15">MAPS\Logo_FRAM_ECO.FLV</Logo>
      <Embassy />
      <AgencyGroups />
      <Medias />
    </Promo>
    <Promo>
      <BlankDiscount>FALSE</BlankDiscount>
      <DateCreationPromo>10.05.2012</DateCreationPromo>
      <ID>79</ID>
      <RefProduit>34919</RefProduit>
      <Produit>RIBAT</Produit>
      <TypeOffre>Promotion</TypeOffre>
      <From>NANTES</From>
      <To>MONASTIR</To>
      <Country>MONASTIR</Country>
      <Hotel>Delphin Ribat ***</Hotel>
      <Description>Chambre Double BAIN, DEMI-PENSION</Description>
      <StayDuration>7</StayDuration>
      <Date>du jeudi 17 mai 2012 au samedi 23 juin 2012</Date>
      <OriginalPrice>604</OriginalPrice>
      <Price>590</Price>
      <Discount>14</Discount>
      <Map Duration="15">MAPS\TUNISIE.FLV</Map>
      <Logo Duration="15">MAPS\Logo_FRAM_ECO.FLV</Logo>
      <Embassy />
      <AgencyGroups />
      <Medias>
        <Media Duration="3">FRAM_MEDIAS\RIBAT\Tunisie H Delphin Ribat 04.jpg</Media>
        <Media Duration="3">FRAM_MEDIAS\RIBAT\Tunisie H Delphin Ribat 09.jpg</Media>
        <Media Duration="3">FRAM_MEDIAS\RIBAT\Tunisie H Delphin Ribat 13.jpg</Media>
        <Media Duration="3">FRAM_MEDIAS\RIBAT\Tunisie H Delphin Ribat 16.jpg</Media>
        <Media Duration="3">FRAM_MEDIAS\RIBAT\Tunisie H Delphin Ribat 18.jpg</Media>
        <Media Duration="3">FRAM_MEDIAS\RIBAT\Tunisie H Delphin Ribat 22.jpg</Media>
      </Medias>
    </Promo>
  <Promos From="TLS">
    <Promo>
      <BlankDiscount>FALSE</BlankDiscount>
      <DateCreationPromo>10.05.2012</DateCreationPromo>
      <ID>18</ID>
      <RefProduit>36106</RefProduit>
      <Produit>CHEMS</Produit>
      <TypeOffre>Promotion</TypeOffre>
      <From>TOULOUSE</From>
      <To>MARRAKECH</To>
      <Country>MARRAKECH</Country>
      <Hotel>Chems ****</Hotel>
      <Description>Chambre Double BAIN, DEMI-PENSION</Description>
      <StayDuration>7</StayDuration>
      <Date>le dimanche 27 mai 2012</Date>
      <OriginalPrice>652</OriginalPrice>
      <Price>490</Price>
      <Discount>162</Discount>
      <Map Duration="15">MAPS\MAROC.FLV</Map>
      <Logo Duration="15">MAPS\Logo_FRAM_ECO.FLV</Logo>
      <Embassy />
      <AgencyGroups />
      <Medias>
        <Media Duration="6">FRAM_MEDIAS\CHEMS\1-MAR-RAK-H-CHEMS-----00005.JPG</Media>
        <Media Duration="6">FRAM_MEDIAS\CHEMS\1-MAR-RAK-H-CHEMS-----00015.JPG</Media>
        <Media Duration="6">FRAM_MEDIAS\CHEMS\MARoc_RAK_CHEMS-----00009.JPG</Media>
      </Medias>
    </Promo>
...
This structure repeats itself.
Thanks for your answer.

admin

  • Administrator
  • Hero Member
  • *****
  • Posts: 5005
  • Karma: +35/-8
    • View Profile
Re: XMLItem
« Reply #1 on: June 04, 2012, 06:10:52 PM »
The path will be set in the XML Player as Promos and in the XML Item as Promo.(ID=="2")
« Last Edit: June 04, 2012, 06:17:13 PM by admin »

ecolmar

  • Jr. Member
  • **
  • Posts: 97
  • Karma: +5/-0
    • View Profile
Re: XMLItem
« Reply #2 on: June 05, 2012, 08:49:28 AM »
Ok, thanks !

I'll try that and keep you informed.

Cheers

ecolmar

  • Jr. Member
  • **
  • Posts: 97
  • Karma: +5/-0
    • View Profile
Re: XMLItem
« Reply #3 on: June 05, 2012, 01:16:10 PM »
Actually, what you suggest is not clear.

I need to set the "Field names" in my XML items, and I want to display "Hotel" and "Description" fields; I added 2 xml items in my scene, and set the Field name as @Hotel in the first xml item, and @Description in the second xml item.

Then in the xml Player, in my other scene, I set my URL, I dragged and dropped the scene with my xml items in the "Scene" filed, and I don't know what to write in the "Items path" field...
I tried with Promo.(ID=="2"), then I tried with Promo.(@ID=="2"), then with Promo.(Produit=="ADRIATIC"), then Promo.(@Produit=="ADRIATIC"), then Promos.(@Produit=="ADRIATIC"), then Promos.(Produit=="ADRIATIC"), then...I stopped...

Can you tell me what I am missing ?

Thanks

admin

  • Administrator
  • Hero Member
  • *****
  • Posts: 5005
  • Karma: +35/-8
    • View Profile
Re: XMLItem
« Reply #4 on: June 05, 2012, 05:58:29 PM »
I need the http path to try, can't say what missing till I try it...

ecolmar

  • Jr. Member
  • **
  • Posts: 97
  • Karma: +5/-0
    • View Profile
Re: XMLItem
« Reply #5 on: June 06, 2012, 05:37:56 AM »
OK, no problem

The url to access the xml file is : http://78.215.168.119:85/Promos_FRAM_ECO.xml

Thanks

ecolmar

  • Jr. Member
  • **
  • Posts: 97
  • Karma: +5/-0
    • View Profile
Re: XMLItem
« Reply #6 on: June 07, 2012, 06:45:58 AM »
Hello

Have you been able to look at it ?

Thanks

admin

  • Administrator
  • Hero Member
  • *****
  • Posts: 5005
  • Karma: +35/-8
    • View Profile
Re: XMLItem
« Reply #7 on: June 08, 2012, 07:59:53 PM »
I will take a look asap...

admin

  • Administrator
  • Hero Member
  • *****
  • Posts: 5005
  • Karma: +35/-8
    • View Profile
Re: XMLItem
« Reply #8 on: June 08, 2012, 08:06:04 PM »
Tried it and worked great.

In XML Player Comportment I set:

Scene name (the scene I used)
URL: http://78.215.168.119:85/Promos_FRAM_ECO.xml
Items Path: Promos.Promo

And in the Scene I added an XML Item and set it's field name to Description and Field type to text

Was able to bring the data right away.

Of course you can use the == sign to find specific Elements / Attributes.

one side note, XML Player does not save settings every time, a bug which will be fixed next week, so make sure settings saved.

ecolmar

  • Jr. Member
  • **
  • Posts: 97
  • Karma: +5/-0
    • View Profile
Re: XMLItem
« Reply #9 on: June 09, 2012, 05:19:21 AM »
Thanks ?

I managed to make it work with your input.

The scene with xmlPlayer works fine, even with SlideShow option; But SlideShow does not work when the Scene is in a Timeline : only displays the first xml record...

admin

  • Administrator
  • Hero Member
  • *****
  • Posts: 5005
  • Karma: +35/-8
    • View Profile
Re: XMLItem
« Reply #10 on: June 09, 2012, 06:56:25 AM »
Did you click on the Play preview to see if it works? Did you try it in the SignagePlayer?

ecolmar

  • Jr. Member
  • **
  • Posts: 97
  • Karma: +5/-0
    • View Profile
Re: XMLItem
« Reply #11 on: June 16, 2012, 03:15:57 PM »
No actually, I didn't

I will try with Player and if it works.

Thanks

 

Carbonate design by Bloc
variant: carbon
SMF 2.0.12 | SMF © 2016, Simple Machines