buildakicker Posted June 15, 2011 Share Posted June 15, 2011 foreach($indexXML->document->document as $doc) { if(strcmp($doc->DocumentKey[0]->tagData, $docType) == 0) { $viewMapping = $doc; $viewXMLFile = $doc->ViewXML[0]->tagData; break; } Quote Link to comment Share on other sites More sharing options...
redixx Posted June 15, 2011 Share Posted June 15, 2011 It appears to be looping through XML data. Quote Link to comment Share on other sites More sharing options...
buildakicker Posted June 15, 2011 Author Share Posted June 15, 2011 Hi, sorry, yes it is looping through data. The one part I don't get is the: foreach($indexXML->document->document as $doc) { if(strcmp($doc->documentkey[0]->tagData, $docType) == 0) { $viewMapping = $doc; $viewXMLFile = $doc->viewxml[0]->tagData; break; } } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.