XPath란? XML파일에서 elements와 attributes를 찾기위한 path XML표현은 익숙한 아래 그림으로 대변된다 XPath언어는 다음 언어에사 사용되어지고 있다. JavaScript, Java, XML Schema, PHP, Python, C and C++, and lots of other languages XPath3.0이 2014년도부터 W3C추천사항으로 선정됨 XPath에서 Node란? element, attribute, text, namespace, processing-instruction, comment and document nodes XML문서는 node들의 tree형태 최상위 element는 root element라고 한다 연습문제: 다음 코드에서 element와 attribute를 찾으시오 < ?xml version ="1.0" encoding ="UTF-8" ? > < bookstore > < book > < title lang ="en" > Harry Potter < /title > < author > J K. Rowling < /author > < year > 2005 < /year > < price > 29.99 < /price > < /book > < /bookstore > 정답: element: bookstore (root), book 등등 attribute: lang="en" Atomic value란? J K. Rowling이나 ...
댓글
댓글 쓰기