Home› Welcome to the FamilySearch Community!› FamilySearch Help› Other Languages› Nederlands - Dutch

Verwerken van de XML: selecteer de afbeelding gebaseerd op de "waypoints";

Vande Kerckhove Walter
Vande Kerckhove Walter ✭
December 17, 2022 in Nederlands - Dutch

Beste,

Ik heb het volgende waypoint staan in een bestand:

https://www.familysearch.org/service/cds/recapi/waypoints/QZ9J-P6N%3A1009438301%2C1009621801?cc=2139860

Nu wil ik via deze via dit waypoint de url voor de 5de afbeelding selecteren. Daartoe gebruik ik deze link en sla de informatie op in een xml-bestand.

Dit wordt dus:

https://www.familysearch.org/service/cds/recapi/waypoints/QZ9J-P6N%3A1009438301%2C1009621801?cc=2139860&offset=4&count=1

Als ik dit oproep via de url krijg ik een op mijn scherm een xml waarin de volgende link staat:

https://www.familysearch.org/ark:/61903/3:1:33SQ-GGKY-SMTM?cc=2139860&wc=QZ9J-P6N%3A1009438301%2C1009621801

Maar als ik in een programma maak en daarin een bestand wil maken via de url dan kan dit xml-bestand niet verwerkt worden met de XML routines van php. Vroeger werkte dit wel. Wat is er veranderd of waar zit de fout?

Vriendelijke groeten,

Walter Vande Kerckhove

Tagged:
  • search records
0

Answers

  • GilbertStaepels1
    GilbertStaepels1 mod
    December 23, 2022

    Dit is een antwoord dat we ontvingen van de ingenieurs:

    The second URL leads me to a different link embedded:

    https://www.familysearch.org/ark:/61903/3:1:33SQ-GGKY-SMGH?cc=2139860&wc=QZ9J-P6N%3A1009438301%2C1009621801

    but I don't believe this matters. As far as I can see, both URLs (first and second) result in well-formatted XML-files, which should be processed fine. I.e., I would look for a possible error in the php XML routines or program logic of the application, etc.

     

    I don't know what might have happened on the FamilySearch side in regards to a possible API change. Further questions might need to be referred to the FS-API team in SLC.


    I‘ll find a contact on the API team. 

    0
  • Vande Kerckhove Walter
    Vande Kerckhove Walter ✭
    January 6

    I have done some research and the question is now the following.

    Based on a waypoinumber, I want to find the nth number of images. When I open a file based on the url like $file = fopen($xml, "r");

    and I want to read the contents of the file I get a "Incapsula_Resource" error (= not allowed).

    0
  • Vande Kerckhove Walter
    Vande Kerckhove Walter ✭
    January 6

    Well I thinks this is te error message I get now but it didn't happen in the past.

    This is an url which worked in the past:https://www.familysearch.org/service/cds/recapi/waypoints/QZ9J-P8H:1009438301,1009620701?cc=2139860

    I can save the result in Firefox as an xml file, but when I want to load it through a php program :

    (line 182)

    $xml = simplexml_load_file("https://www.familysearch.org/service/cds/recapi/waypoints/QZ9J-P8H:1009438301,1009620701?cc=2139860")

    I get a bunch of messages:

    • Warning: simplexml_load_file():
    • https://www.familysearch.org/service/cds/recapi/waypoints/QZ9J-P8H:1009438301,1009620701?cc=2139860:1:
    • parser error : Specification mandates value for attribute async in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file(): ,chrome=1"><script src="/Hemlock-Night-Gosper-this-go-this-Famids-not-of-" async in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file(): ^ in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file():
    • https://www.familysearch.org/service/cds/recapi/waypoints/QZ9J-P8H:1009438301,1009620701?cc=2139860:1:
    • parser error : Opening and ending tag mismatch: meta line 1 and head in
    • main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file(): t src="/Hemlock-Night-Gosper-this-go-this-Famids-not-of-" async></script></head> in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file(): ^ in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file():
    • https://www.familysearch.org/service/cds/recapi/waypoints/QZ9J-P8H:1009438301,1009620701?cc=2139860:1:
    • parser error : EntityRef: expecting ';' in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file(): eight:100%"><iframe id="main-iframe" src="/_Incapsula_Resource?SWUDNSAI=31&xinfo in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file(): ^ in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file():
    • https://www.familysearch.org/service/cds/recapi/waypoints/QZ9J-P8H:1009438301,1009620701?cc=2139860:1:
    • parser error : EntityRef: expecting ';' in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file(): %20q%280%20-1%20-1%200%29%20r%280%20-1%29%20B12%2814%2c0%2c0%29%20U5&incident_id in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file(): ^ in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file():
    • https://www.familysearch.org/service/cds/recapi/waypoints/QZ9J-P8H:1009438301,1009620701?cc=2139860:1:
    • parser error : EntityRef: expecting ';' in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file(): 12%2814%2c0%2c0%29%20U5&incident_id=1102000820807496812-2246747600777516173&edet in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file(): ^ in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file():
    • https://www.familysearch.org/service/cds/recapi/waypoints/QZ9J-P8H:1009438301,1009620701?cc=2139860:1:
    • parser error : EntityRef: expecting ';' in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file(): c0%2c0%29%20U5&incident_id=1102000820807496812-2246747600777516173&edet=12&cinfo in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file(): ^ in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file():
    • https://www.familysearch.org/service/cds/recapi/waypoints/QZ9J-P8H:1009438301,1009620701?cc=2139860:1:
    • parser error : EntityRef: expecting ';' in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file(): ent_id=1102000820807496812-2246747600777516173&edet=12&cinfo=0e000000f64f&rpinfo in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file(): ^ in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file():
    • https://www.familysearch.org/service/cds/recapi/waypoints/QZ9J-P8H:1009438301,1009620701?cc=2139860:1:
    • parser error : EntityRef: expecting ';' in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file(): =1102000820807496812-2246747600777516173&edet=12&cinfo=0e000000f64f&rpinfo=0&cts in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file(): ^ in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file():
    • https://www.familysearch.org/service/cds/recapi/waypoints/QZ9J-P8H:1009438301,1009620701?cc=2139860:1:
    • parser error : EntityRef: expecting ';' in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file(): nfo=0&cts=y2oQqKx1snznAg0YrZycGwyYM8dZQbMY2w6KLbr0UvpjeoKujdjSFxL17kFTt1G%2b&mth in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file(): ^ in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file():
    • https://www.familysearch.org/service/cds/recapi/waypoints/QZ9J-P8H:1009438301,1009620701?cc=2139860:1:
    • parser error : AttValue: " or ' expected in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file(): snznAg0YrZycGwyYM8dZQbMY2w6KLbr0UvpjeoKujdjSFxL17kFTt1G%2b&mth=GET" frameborder= in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file(): ^ in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file():
    • https://www.familysearch.org/service/cds/recapi/waypoints/QZ9J-P8H:1009438301,1009620701?cc=2139860:1:
    • parser error : attributes construct error in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file(): snznAg0YrZycGwyYM8dZQbMY2w6KLbr0UvpjeoKujdjSFxL17kFTt1G%2b&mth=GET" frameborder= in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file(): ^ in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file():
    • https://www.familysearch.org/service/cds/recapi/waypoints/QZ9J-P8H:1009438301,1009620701?cc=2139860:1:
    • parser error : Couldn't find end of Start Tag iframe line 1 in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file(): snznAg0YrZycGwyYM8dZQbMY2w6KLbr0UvpjeoKujdjSFxL17kFTt1G%2b&mth=GET" frameborder= in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file(): ^ in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file():
    • https://www.familysearch.org/service/cds/recapi/waypoints/QZ9J-P8H:1009438301,1009620701?cc=2139860:1:
    • parser error : Opening and ending tag mismatch: body line 1 and iframe
    • in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file(): cessful. Incapsula incident ID: 1102000820807496812-2246747600777516173</iframe> in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file(): ^ in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file():
    • https://www.familysearch.org/service/cds/recapi/waypoints/QZ9J-P8H:1009438301,1009620701?cc=2139860:1:
    • parser error : Opening and ending tag mismatch: meta line 1 and body in
    • main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file(): . Incapsula incident ID: 1102000820807496812-2246747600777516173</iframe></body> in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file(): ^ in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file():
    • https://www.familysearch.org/service/cds/recapi/waypoints/QZ9J-P8H:1009438301,1009620701?cc=2139860:1:
    • parser error : Opening and ending tag mismatch: meta line 1 and html in
    • main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file(): sula incident ID: 1102000820807496812-2246747600777516173</iframe></body></html> in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file(): ^ in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file():
    • https://www.familysearch.org/service/cds/recapi/waypoints/QZ9J-P8H:1009438301,1009620701?cc=2139860:1:
    • parser error : EndTag: '</' not found in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file(): sula incident ID: 1102000820807496812-2246747600777516173</iframe></body></html> in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).
    • Warning: simplexml_load_file(): ^ in main() (line 182 of /data/sites/web/vrijwilligersrabbe/www/Familysearchxml.php).How can I get around?


    0
  • Vande Kerckhove Walter
    Vande Kerckhove Walter ✭
    January 21

    It looks as if I have no rights to access this data as I have not been logged in. But how can I do this in a batch job like this :

    C:

    CD ..

    CD ..

    C:

    CD Program Files

    CD Mozilla Firefox

    Firefox.exe https://familysearch.org/service/cds/recapi/waypoints/Q82R-83Z:1009334901,1009334902?cc=2138513

    Thanks


    Walter Vande Kerckhove

    0
Clear
No Groups Found

Categories

  • 28.4K All Categories
  • 22.7K FamilySearch Help
  • 111 Get Involved
  • 2.6K General Questions
  • 421 FamilySearch Center
  • 431 FamilySearch Account
  • 4.1K Family Tree
  • 3.2K Search
  • 4.5K Indexing
  • 591 Memories
  • 6.1K Temple
  • 305 Other Languages
  • 34 Community News
  • 6.4K Suggest an Idea
  • Groups