using data from child element to select data in other element using simplexml in php
问题 So, I'm using simplexml in php to display elements from an xml file onto a webpage. This is working fine when selecting a whole list child elements in one certain element. The thing is however, I need to select a number of rules in one element, and display the data attached to these certain rules found in another element. To clarify, this a simplified version of my xml file (it contains everything I need): <report> <profile_info> <rules> <rule id="RUL1"> <display_name> XMP does not have