I have this big messy thing that drills down into a iframe to retrieve an attribute from an XML result. (I'm doing it this way to avoid a billion other problems involved with getting data out of this offsite server, so please bare with me.)\[code\]<?php $link = mysqli_connect(//ALL THE CONNECTS!); mysqli_select_db(//THE_DB, $link); $query = "SELECT * FROM jos_mls AS mls INNER JOIN jos_activeagents AS active ON mls.MSTLISTBRD = active.AGENTUID LIMIT 10;"; $result = mysqli_query($query); $array = array(); $index = 0; while($row = mysqli_fetch_array($result)) { $array[$index] = $row; $index++; } foreach ($array as $key => $value) { $mls = $value[1]; $street = $value[5].' '.$value[6]; $city = $value[9]; $state = $value[10]; $zip = $value[11]; $url = "http://eligibility.sc.egov.usda.gov/eligibility/eligibilityservice?eligibilityType=Property&requestString=<?xml version='1.0'?><Eligibility xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='/var/lib/tomcat5/webapps/eligibility/Eligibilitywsdl.xsd'><PropertyRequest StreetAddress1='".$street."' StreetAddress2='' StreetAddress3='' City='".$city."' State='".$state."' County='' Zip='".$zip."' Program='RBS'></PropertyRequest></Eligibility>"; $frame = '<iframe class="frame" mls="'.$mls.'" style="width: 10px; height: 10px;" src="'.$url.'"></iframe>'; echo $frame; } mysql_close($link);?><div id="test"></div><script type="text/javascript"> $(document).ready(function(){ $('.frame').each(function(){ var mls = $(this).attr('mls'), usda = $(this).contents().find('Property').attr('Eligibility'); $('#test').append(mls+' '+usda+'<br/>'); }); });</script>\[/code\]The data in the iframes looks like this...\[code\]<?xml version="1.0" encoding="UTF-8"?><Eligibility xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Adjusted AnnualIncome="" TotalDeduction="" AdjustedIncome="" ElderlyDeduction="" YoungDeduction=""> </Adjusted> <Section502Guaranted MaximumAdjusted="" Eligible=""> </Section502Guaranted> <Section502Direct MaximumAdjusted="" Eligible=""> </Section502Direct> <Property Eligibility="InEligible" MapURL="http://rdgdwe.sc.egov.usda.gov/eligibilitymaps/index.jsp?app=RBSIELG&ADDRESS=7865 ILLINOIS CASEYVILLE&STATE=IL&ZIP=62232" /> <ErrorResponse EngineId="" HostName="" MaxSeverity="" LogFile="" Class="" Module="" Severity="" Time=""> <Message Code="" Type="" Text="" /> </ErrorResponse></Eligibility>\[/code\]I need the \[code\]Eligibility\[/code\] attribute from the \[code\]Property\[/code\] node...UPDATE Sorry, hit send prematurely. The result I get now for \[code\]$(this).contents().find('Property').attr('Eligibility')\[/code\] is just "undefined".