Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help parsing xml from email

Status
Not open for further replies.

admoore

IS-IT--Management
May 17, 2002
224
0
0
US
I am using SimpleXMLElement()to parse the body of an email for XML data and am having difficulty parsing fields with 'parts' defined; such as:
Code:
<name part="first">First</name>
<name part="last">Last</name>

$array->prospect->customer->contact->name yields the first name; but I can't resolve getting the last name portion...

Is this beyond the scope of SimpleXMLElement(), or can someone help resolve what I am missing?

TIA,

-Allen M.
 
$array->prospect->customer->contact->name[0] && $array->prospect->customer->contact->name[1]

did the trick... Solved.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top