Parse XML using SimpleXML

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!
interclubsAsked:
Who is Participating?
 
mpickreignConnect With a Mentor Commented:
$xml = simplexml_load_file(path_to_xml_file);
$var = $xml->Success (this is how to access it/assign it to a var)



0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.