Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Using an Atom feed

Hi Alexander,

Try to make a response from the beginning - if it will not help, let us know.

Alexander vdhooft
Posts: 0
Joined: Thu Nov 14, 2013 9:50 pm

Using an Atom feed

It did not help. Same result.
I see the same behaviour also with other entries. In all cases the entry has some extra 'things' like:

code<d:SubTitle xml:space="preserve">/code

instead of:

code<d:SubTitle>/code

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Using an Atom feed

Hi Alexander,

It's better to know the exact response structure. Do you have a possibility to contact the service provider for getting such information?

Alexander vdhooft
Posts: 0
Joined: Thu Nov 14, 2013 9:50 pm

Using an Atom feed

No. I do not at this time.

It works well for most entries. The only problem that I can find is the one above where there are the extra things.
I studied the response structure and there are not that many variations.
The one with "preserve" is the only one I could find. Apart from an empty one:

code<d:Title m:null="true" &#47;>/code

Is it possible to remove the extra tags after loading using javascript?
Or is there a way to ignore extra tags?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Using an Atom feed

Can you post a sample XML response that doesn't work?

Alexander vdhooft
Posts: 0
Joined: Thu Nov 14, 2013 9:50 pm

Using an Atom feed

Here a part of the XML response. One the first part has the problem, the secound part works fine:

code
<entry>
<id>http:&#47;&#47;www&#46;museumkaart&#46;nl&#47;Services&#47;SchatkamerService&#46;svc&#47;SchatkamerKaartSet(6158)<&#47;id>
<title type="text"><&#47;title>
<updated>2013-11-17T09:01:01Z<&#47;updated>
<author>
<name &#47;>
<&#47;author>
<link rel="edit" title="TreasuryCard" href="SchatkamerKaartSet(6158)" &#47;>
<category term="Museumvereniging&#46;Shared&#46;Treasury&#46;TreasuryCard" scheme="http:&#47;&#47;schemas&#46;microsoft&#46;com&#47;ado&#47;2007&#47;08&#47;dataservices&#47;scheme" &#47;>
<content type="application&#47;xml">
<m:properties>
<d:Id m:type="Edm&#46;Int32">6158<&#47;d:Id>
<d:MuseumId m:type="Edm&#46;Int32">108<&#47;d:MuseumId>
<d:Title>DEVENTER<&#47;d:Title>
<d:SubTitle xml:space="preserve">Speelgoedmuseum <&#47;d:SubTitle>
<d:Description xml:space="preserve">Speelgoedmuseum Deventer exposeert in twee grote 14e-eeuwse huizen zijn verzameling in Nederland gebruikt speelgoed&#46; Van opgegraven speelgoed uit de 13de eeuw tot het modernste speelgoed van vandaag&#46;

<&#47;d:Description>
<d:ImageUrl>http:&#47;&#47;cdn&#46;museum&#46;nl&#47;cards&#47;240x135&#47;58b4dff5-dd01-427c-ab49-b75d3e48d50b\speelgoedmuseum deventer&#46;jpg<&#47;d:ImageUrl>
<d:HasPromotions m:type="Edm&#46;Boolean">false<&#47;d:HasPromotions>
<d:IsPromotion m:type="Edm&#46;Boolean">false<&#47;d:IsPromotion>
<d:IsParticipant m:type="Edm&#46;Boolean">true<&#47;d:IsParticipant>
<d:EndDate m:type="Edm&#46;DateTime" m:null="true" &#47;>
<d:DetailUrl>&#47;museum&#47;Gemeentemusea+Deventer%2fSpeelgoedmuseum&#47;Speelgoedmuseum+Deventer&#46;aspx<&#47;d:DetailUrl>
<d:MagazineTheme m:null="true" &#47;>
<d:MagazineThemeTitle m:null="true" &#47;>
<&#47;m:properties>
<&#47;content>
<&#47;entry>
<entry>
<id>http:&#47;&#47;www&#46;museumkaart&#46;nl&#47;Services&#47;SchatkamerService&#46;svc&#47;SchatkamerKaartSet(1044)<&#47;id>
<title type="text"><&#47;title>
<updated>2013-11-17T09:01:01Z<&#47;updated>
<author>
<name &#47;>
<&#47;author>
<link rel="edit" title="TreasuryCard" href="SchatkamerKaartSet(1044)" &#47;>
<category term="Museumvereniging&#46;Shared&#46;Treasury&#46;TreasuryCard" scheme="http:&#47;&#47;schemas&#46;microsoft&#46;com&#47;ado&#47;2007&#47;08&#47;dataservices&#47;scheme" &#47;>
<content type="application&#47;xml">
<m:properties>
<d:Id m:type="Edm&#46;Int32">1044<&#47;d:Id>
<d:MuseumId m:type="Edm&#46;Int32">428<&#47;d:MuseumId>
<d:Title>MELDERSLO<&#47;d:Title>
<d:SubTitle>MUSEUM DE LOCHT<&#47;d:SubTitle>
<d:Description>Bezoek de authentieke Noord-Limburgse langgevelboerderij en ervaar het leven op het platteland tussen 1850 en 1950&#46; Neem een kijkje in de ouderwetse keuken, de ‘beste’ kamer met bedstee, de opkamer, kelder en bijkeuken&#46;<&#47;d:Description>
<d:ImageUrl>http:&#47;&#47;cdn&#46;museum&#46;nl&#47;cards&#47;240x135&#47;locht3&#46;jpg<&#47;d:ImageUrl>
<d:HasPromotions m:type="Edm&#46;Boolean">false<&#47;d:HasPromotions>
<d:IsPromotion m:type="Edm&#46;Boolean">false<&#47;d:IsPromotion>
<d:IsParticipant m:type="Edm&#46;Boolean">true<&#47;d:IsParticipant>
<d:EndDate m:type="Edm&#46;DateTime" m:null="true" &#47;>
<d:DetailUrl>&#47;museum&#47;Museum+De+Locht+Limburg&#47;De+Locht%2c+Nationaal+Asperge-+en+Champignonmuseum&#46;aspx<&#47;d:DetailUrl>
<d:MagazineTheme m:null="true" &#47;>
<d:MagazineThemeTitle m:null="true" &#47;>
<&#47;m:properties>
<&#47;content>
<&#47;entry>
/code

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Using an Atom feed

The XML fails validation here: http://www.xmlvalidation.com/

Alexander vdhooft
Posts: 0
Joined: Thu Nov 14, 2013 9:50 pm

Using an Atom feed

I checked the whole feed with xmlvalidation (copy and paste from chrome) and the XML is valid (see screenshot).

I also tried the feed with different validators, and the feed is valid.
You can try yourself at: http://validator.w3.org/feed/ (see screenshot)
For the feed link see first post (you can change the 20 to 500 for more entries).

Image Image

Alexander vdhooft
Posts: 0
Joined: Thu Nov 14, 2013 9:50 pm

Using an Atom feed

I have found the following working solution:

code
if (typeof value == 'string')
return value;
else
if(typeof value != 'undefined')
return "&quot
else
return value["content"];
/code

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Using an Atom feed

Hello! Thank you for update! Glad it's working now.

Return to “Issues”