xpath
XML 데이터에서 XPath 쿼리를 실행하십시오.
xpath()
함수는 xml 문서에서 xpath 쿼리를 실행합니다.
XML 문서에서 XPath 쿼리를 실행하십시오.
<? php $ note = <<< XML <note> <to> George </to> <f> John </from> <Heading> 알림 </heading> <body> 회의를 잊지 마십시오! </body> </note> XML ; $ xml = 새로운 SimplexMlelement ( $ note ) ; $ result = $ xml- > xpath ( "/note/to" ) ; print_r ( $ result ) ; ?>
인스턴스를 실행하십시오
SimplexmlElement :: XPath ( Path )
매개 변수 | 설명하다 |
---|---|
길 | 필수의. 사용할 XPath 경로를 지정합니다. |