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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:19:06+00:00 2026-05-23T20:19:06+00:00

Here is my XML object: http://pastebin.com/0L8vf0ja Which was created from: <?xml version=1.0 encoding=utf-8?> <methodResponse><params><param><value><struct><member><name>result</name><value><struct><member><name>application_instance_id</name><value><i4>89</i4></value></member></struct></value></member><member><name>status</name><value><i4>0</i4></value></member></struct></value></param></params></methodResponse>

  • 0

Here is my XML object: http://pastebin.com/0L8vf0ja
Which was created from:

<?xml version="1.0" encoding="utf-8"?>
<methodResponse><params><param><value><struct><member><name>result</name><value><struct><member><name>application_instance_id</name><value><i4>89</i4></value></member></struct></value></member><member><name>status</name><value><i4>0</i4></value></member></struct></value></param></params></methodResponse>

I know upto this level:

 $ApplicationInstanceID = (int)(string)$data->params->param->value->struct->member-> 

But from here, as you see in the pastebin, it becomes an array of objects – and I am not sure how to proceed.

Any ideas, please?

  • 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-05-23T20:19:07+00:00Added an answer on May 23, 2026 at 8:19 pm

    By accessing it as an array:

    $x = '<root><child><foo>23</foo><foo>34</foo></child></root>';
    $xml = new SimpleXMLElement($x);
    var_dump($xml->child->foo[0]);
    var_dump($xml->child->foo[1]);
    

    But, if you have it enabled, the xmlrpc_decode function is perhaps easier to use.

    var_dump(xmlrpc_decode($yourxml));
    array(2) {
      ["result"]=>
      array(1) {
        ["application_instance_id"]=>
        int(89)
      }
      ["status"]=>
      int(0)
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's an example program showing what I'm trying to do: http://pastebin.com/m1de1f3ba The XML in
i use the following XSLT by using XMLSpy: <?xml version=1.0 encoding=UTF-16?> <xsl:stylesheet version=2.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform
Here is part of the xml I am trying to parse: <?xml version=1.0 encoding=UTF-8?>
I'm having the problem described here: http://groups.google.com/group/microsoft.public.xml.soap/browse_thread/thread/029ee5b5d4fa2440/0895d73c5c3720a1 I am consuming a Web Service using
My xml <?xml version=1.0 encoding=ISO-8859-1?> <credits> </credits> My schema <?xml version=1.0 encoding=UTF-8 ?> <xsd:schema
Here is my sample code: from xml.dom.minidom import * def make_xml(): doc = Document()
In .Net, I'm trying to get a XmlSchema object from Xml file with an
I am creating an application which requires to convert c# object to XML. I
I just tested an early PowerShell WPF example from here #requires -version 2 Add-Type
I need help some help printing out some xml. Here is my code (which

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.