Solved

Parse XML using SimpleXML

Posted on 2010-09-01
1
329 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

707 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

17 Experts available now in Live!

Get 1:1 Help Now