实例如下:$xml = simplexml_load_file("test.xml");$result = $xml->xpath("form");print_r($result);?>获取form内容