0
问候你怎么找到最深的节点(步) - Xpath的 - PHP - XML -
你怎么找到最深的节点? 所以在这个例子中,字符串将是最深的节点:
,而我要的是
<org.olat.course.nodes.STCourseNode> 0 <ident>81473730700165</ident> 1 <type>st</type> <shortTitle>General Information</shortTitle> <moduleConfiguration> 2 <config> 3 <entry> 4 <string>allowRelativeLinks</string> 5 <--- <string>false</string> </entry> <entry> <string>file</string> <string>/kgalgemeneinformatie.html</string> </entry> <entry> <string>configversion</string> <int>3</int> </entry> <entry> <string>display</string> <string>file</string> </entry> </config> </moduleConfiguration> </org.olat.course.nodes.STCourseNode>
注的结果:我使用PHP,的XPath其他可能性也欢迎:)
亲切的问候
迪特Verbeemen