Retrieving children from XML with PHP
问题 Helle there, There is a post: https://stackoverflow.com/questions/5816786/counting-nodes-in-a-xml-file-using-php I have the same question, but instead of count, I want to echo it. I have this code in xml: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Row> <ModeNumber>1</ModeNumber> <Mode>online</Mode> </Row> <Row> <ModeNumber>2</ModeNumber> <Mode>mmorpg</Mode> </Row> And this as PHP: $xml = simplexml_load_file("include