Solved

Parse XML using SimpleXML

Posted on 2010-09-01
1
342 Views
Last Modified: 2012-05-10
I have an XML doc that looks like this:

<UDOAResponse>
      <OMX>xxxxx</OMX>
      <Success>1</Success>
etc....
</UDOAResponse>

How can I get the <Success> value?

Thanks!
0
Comment
Question by:interclubs
1 Comment
 
LVL 4

Accepted Solution

by:
mpickreign earned 500 total points
ID: 33581712
$xml = simplexml_load_file(path_to_xml_file);
$var = $xml->Success (this is how to access it/assign it to a var)



0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now