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

  • Home
  • SEARCH
  • 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 8630061
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T08:58:05+00:00 2026-06-12T08:58:05+00:00

I have a content management system (Omeka) which is built on the Zend framework.

  • 0

I have a content management system (Omeka) which is built on the Zend framework. There’s pages on the site which have different output options such as XML and JSON.

I’m able to validate the output from the site. And when I save the XML files as a .xml file on my server, my code is able to load it. But when I reference the URL of the XML file generated by the script, the PHP returns an error. Although it returns a 404, I can put the URL I’m trying to load into my browser and I will see the proper XML page.

The script I’m loading: http://lw4.gc.cuny.edu/_dev_push/archive/items/show/1?output=omeka-xml.

Here is the code I’m using to try and load the files. I’m just trying a series of methods to see if any of them work. I’d prefer to use the SimpleXML method if it can be done:

    $xml = simplexml_load_file('http://lw4.gc.cuny.edu/_dev_push/archive/items/show/id/1?output=omeka-xml');
    $doc = new DOMDocument();
    $doc->loadXML('http://lw4.gc.cuny.edu/_dev_push/archive/items/show/id/1?output=omeka-xml');
    echo $doc->saveXML();

    $str = file_get_contents('http://lw4.gc.cuny.edu/_dev_push/archive/items/show/id/1?output=omeka-xml');
    echo $str; 

Here are the errors that my script returns when I type in the exact URL of the dynamically generated XML page.

Warning:
simplexml_load_file(http://lw4.gc.cuny.edu/_dev_push/archive/items/show/id/1?output=omeka-xml):
failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in
/var/www/html/_dev_push/wp-content/plugins/omekafeed/omekafeed.php on
line 122 Warning: simplexml_load_file(): I/O warning : failed to load
external entity
“http://lw4.gc.cuny.edu/_dev_push/archive/items/show/id/1?output=omeka-xml”
in /var/www/html/_dev_push/wp-content/plugins/omekafeed/omekafeed.php
on line 122 Warning: DOMDocument::loadXML(): Start tag expected, ‘<‘
not found in Entity, line: 1 in
/var/www/html/_dev_push/wp-content/plugins/omekafeed/omekafeed.php on
line 124 Warning:
file_get_contents(http://lw4.gc.cuny.edu/_dev_push/archive/items/show/id/1?output=omeka-xml):
failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in
/var/www/html/_dev_push/wp-content/plugins/omekafeed/omekafeed.php on
line 127

The scripts do load when I specify the URLs in this fashion. Note that in this case text3.xml isn’t generate dynamically with a script, but it is identical to the xml file called in the previous example.

    $xml = simplexml_load_file('http://lw4.gc.cuny.edu/_dev_push/archive/test3.xml');
    $doc = new DOMDocument();
    $doc->loadXML('http://lw4.gc.cuny.edu/_dev_push/archive/test3.xml');
    echo $doc->saveXML();

    $str = file_get_contents('http://lw4.gc.cuny.edu/_dev_push/archive/test3.xml');
    echo $str;

There are no passwords protecting the part of the site I’m using. I’m working on the same domain, although it’s worth pointing out that I’m trying to pull the XML content from a separate content management system into another one [that is in a subdirectory of the first one].

As I can get these scripts to work when I specify a hardcoded, but identical XML file, my suspicion is that it is the fact that the dynamic XML files are generated by Zend which is the problem, but I couldn’t find any reference to this feature, or how to change it.

What do you think, what can I do to make this content load so I can parse it with my PHP script?

  • 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-12T08:58:06+00:00Added an answer on June 12, 2026 at 8:58 am

    I have a content management system (Omeka) which is built on the Zend
    framework. There’s pages on the site which have different output
    options such as XML and JSON.

    Read the docs and see if you can find out how to access these resources using a REST request. If you can do that, you can then put the returned XML or JSON into whatever form you need.

    Otherwise you may need to scrape the page with something like cURL() and then put the results into the form you need.

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

Sidebar

Related Questions

I have a site which is using DNN (DotNetNuke) as a content management system.
I have a content management system that I have designed which uses XML files
I have a fairly complex content management system I've written in PHP, which has
I have a content management system in which a user can dynamically create an
I have a simple content management system that stores pages by Pagename and Version.
I have an old custom built content management system in PHP, where users can
I have content management system application that uses a polymorphic tree table as the
In a content management system, moderators have to approve changes to existing articles. Currently
I'm looking content management system that would have features similar to stackoverflow: Users can
I am working on a content management system , where i have a controller

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.