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 8788057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:03:52+00:00 2026-06-13T22:03:52+00:00

I am debugging my code to inspect the current object. It is a SimpleXml

  • 0

I am debugging my code to inspect the current object.

It is a SimpleXml load from xml that looks like this

<?xml version="1.0" encoding="UTF-8"?><epreuves><epreuve id="467" noteSur="20"><![CDATA[Civil Engineering China 2012]]></epreuve></epreuves>

I am using this code to load the object.

$result=simplexml_load_string($xml_string,null,LIBXML_NOCDATA);

And when I debug my code i see this:

enter image description here

When I convert the object to string, it gives me the data I want, but why do I not see “Civil Engineering China 2012” somewhere in the object’s guts?

  • 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-13T22:03:55+00:00Added an answer on June 13, 2026 at 10:03 pm

    In short, @Gordon is quite right: SimpleXMLElement class has some very unusual properties, so it’s not sensible expecting its objects to be as revealing in the debugger as “normal” ones.

    Let’s analyze it a bit more, though. Simple search through lxr.php.net (I took PHP 5.3 branch, as frankly speaking I don’t expect this to be different in 5.4) eventually leads us to the following structure:

    typedef struct {
        zend_object zo;
        php_libxml_node_ptr *node;
        php_libxml_ref_obj *document;
        HashTable *properties;
        xmlXPathContextPtr xpath;
        struct {
            xmlChar               *name;
            xmlChar               *nsprefix;
            int                   isprefix;
            SXE_ITER              type;
            zval                  *data;
        } iter;
        zval *tmp;
        zend_function *fptr_count;
    } php_sxe_object;
    

    There are several notable things here – what matters in the context of question, I suppose, is that “normal” object itself (like defined here) is only a part of this structure.

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

Sidebar

Related Questions

I'm debugging code, and I have a strongly typed object that has around 30
As the question explains: I would like to add some debugging code that only
this is odd, as debugging code, it seems that the Delphi is not pointing
I have some debugging code that if executed while running with GBD attached should
i get this dialog while debugging code in visual studio 2008. (your step-into request
when debugging java code, in the stack trace, I noticed that something in the
I tried debugging my code for like a few hour but I got nothing
I am debugging code that has in it expr1 & expr2 where expr1 has
I am debugging code with exception throwing and exception handling. I would like gdb
When I am debugging code in Emacs, I like to have two buffers open,

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.