Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8652965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:25:45+00:00 2026-06-12T14:25:45+00:00

Apologies if there is an obvious answer (and I know there are about 1000

  • 0

Apologies if there is an obvious answer (and I know there are about 1000 of these similar questions) – but I have spent two days trying to attack this without success. I cannot seem to crack why I get a null response…

Short background: the following works just fine

$xurl= new SimpleXMLElement('https://gptxsw.appspot.com/view/submissionList?formId=GP_v7&numEntries=1', NULL,    TRUE);
$keyname = $xurl->idList->id[0];
echo $keyname;

this provides a response: a unique key like uuid:d0721391-6953-4d0b-b981-26e38f05d2e5

however I try a similar request (which ultimately would be based on first request) and get a failure. I’ve simplified code as follows…

$xdurl= new SimpleXMLElement('https://gptxsw.appspot.com/view/downloadSubmission?formId=GP_v7[@version=null%20and%20@uiVersion=null]/GP_v7[@key=uuid:d0721391-6953-4d0b-b981-26e38f05d2e5]', NULL, TRUE);
$keyname2 = $xdurl->data->GP_v7->SDD_ID_N[0];
echo $keyname2;

this provides null. And if I try something like
echo $xdurl->asXML();
I get an error response from the site (not from PHP).

Do I need to eject from SimpleXMLElement for the second request? I’ve read about using XPath and about defining the namespace, but I’m not sure that either would be required: the second file does have two namespaces but one of them isn’t used and the other has no prefix for elements. Plus I have tried variations of those – enough to think that my problem/error is either more global in nature (or oversight due to inexperience).

For purposes of this request I have no control over the formatting of either XML file.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T14:25:46+00:00Added an answer on June 12, 2026 at 2:25 pm

    Thanks to @Matze for getting me on right track.
    Issue is that URL has special characters that SimpleXMLElement cannot parse without help.

    Solution: add urlencode() command like the following

    $fixurl = urlencode('https://gptxsw.appspot.com/view/downloadSubmission?formId=GP_v7[@version=null and     @uiVersion=null]/GP_v7[@key=uuid:d0721391-6953-4d0b-b981-26e38f05d2e5]');
    $xdurl= new SimpleXMLElement($fixurl, NULL, TRUE);
    $keyname2 = $xdurl->data->GP_v7->SDD_ID_N[0];
    echo $keyname2;
    

    this provided the answer (in this case 958)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new to iOS dev and apologies if the answer is obvious...but it
Apologies for the poor question title. I have two tables, jobs and Persons-Jobs. Jobs
Apologies in advance if this is obvious, but I can't seem to find an
Apologies if this is obvious, I'm new to C++. There seem to be related
I know what I want to do is probably easy and obvious but I
Am still new to Haskell, so apologize if there is an obvious answer to
Apologies if this should be fairly obvious! If I have a cell array of
This may be a very obvious question - apologies if it is. I have
Apologies if this has been asked before but it seems an obvious question for
I'm pretty new with WPF, so apologies if I'm missing something obvious. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.