Random Tags showing up in XML Output

luckyfun

New Member
So I have a php file returning an XML to be parsed by my iPhone app. When it returns the website, all is good. However, when the iPhone app parses it, random tags that aren't in the output show up.Here is the script:\[code\]$xml_output = "<?xml version=\"1.0\"?>\n"; $xml_output .= "<PitData>\n";$resultID4 = mysql_query($sqlquery4);for($d = 0; $d < mysql_num_rows($resultID4); $d++){ $row4 = mysql_fetch_assoc($resultID4); $xml_output .= "<Pit>"; $xml_output .= "<teamNumber>" . $row4['Team Number'] . "</teamNumber>"; $xml_output .= "<yearNumber>" . $row4['Year'] . "</yearNumber>"; $xml_output .= "<eventLocation>" . $row4['Event Location'] . "</eventLocation>"; $xml_output .= "<height>" . $row4['Height'] . "</height>"; $xml_output .= "<weight>" . $row4['Weight'] . "</weight>"; $xml_output .= "<driveTrain>" . $row4['Drivetrain'] . "</driveTrain>"; $xml_output .= "<shooter>" . $row4['Shooter'] . "</shooter>"; $xml_output .= "<auto>" . $row4['Autonomous'] . "</auto>"; $xml_output .= "<canClimb>" . $row4['Climb'] . "</canClimb>"; $xml_output .= "<highestLevel>" . $row4['Highest Climb'] . "</highestLevel>"; $xml_output .= "<maxFrisbees>" . $row4['Max Frisbees'] . "</maxFrisbees>"; $xml_output .= "<frisbeeLoading>" . $row4['Frisbee Loader'] . "</frisbeeLoading>"; $xml_output .= "<shotBlocking>" . $row4['Shot Blocking'] . "</shotBlocking>"; $xml_output .= "<defensiveStrategy>" . $row4['Defensive Strategy'] . "</defensiveStrategy>"; $xml_output .= "<notes>" . $row4['Notes'] . "</notes>"; $xml_output .= "</Pit>";}$xml_output .= "</PitData>";echo $xml_output;\[/code\]Here is what the website outputs:\[code\]<PitData> <Pit> <teamNumber>1885</teamNumber> <yearNumber>2013</yearNumber> <eventLocation>D.C</eventLocation> <height>42</height> <weight>48</weight> <driveTrain>2</driveTrain> <shooter>1</shooter> <auto>1</auto> <canClimb>0</canClimb> <highestLevel>2</highestLevel> <maxFrisbees>3</maxFrisbees> <frisbeeLoading>1</frisbeeLoading> <shotBlocking>0</shotBlocking> <defensiveStrategy>0</defensiveStrategy> <notes>NISONSNDOISF</notes> </Pit></PitData>\[/code\]As seen, everything outputs just fine. Now here is what iOS shows:\[code\]2013-03-28 16:40:46.078 XXX[15866:907] meta2013-03-28 16:40:46.079 XXX[15866:907] title2013-03-28 16:40:46.080 XXX[15866:907] style2013-03-28 16:40:46.081 XXX[15866:907] head2013-03-28 16:40:46.082 XXX[15866:907] div2013-03-28 16:40:46.083 XXX[15866:907] img2013-03-28 16:40:46.084 XXX[15866:907] div2013-03-28 16:40:46.085 XXX[15866:907] img2013-03-28 16:40:46.086 XXX[15866:907] div2013-03-28 16:40:46.087 XXX[15866:907] div2013-03-28 16:40:46.088 XXX[15866:907] br2013-03-28 16:40:46.089 XXX[15866:907] p2013-03-28 16:40:46.090 XXX[15866:907] embed2013-03-28 16:40:46.091 XXX[15866:907] Error parsing XML: Error code 76.\[/code\]Where are those tags coming from? They aren't in the output, so why do they show up? I have 4 other PHP scripts running, but none return weird tags like the ones returned above.
 
Back
Top