๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๋ฐ˜์‘ํ˜•

์š”์†Œ-์†์„ฑ1

07. XPath ์ธ์ ์…˜ ์ทจ์•ฝ์  ์†Œ๊ฐœ์กฐ์ž‘๋œ XPath(XML Path Language) ์ฟผ๋ฆฌ๋ฅผ ๋ณด๋ƒ„์œผ๋กœ์จ ๋น„์ •์ƒ์  ๋ฐ์ดํ„ฐ๋ฅผ ์—ด๋žŒํ•  ์ˆ˜ ์žˆ๋Š” ์ทจ์•ฝ์ โ†’ XPath: XML ๋ฌธ์„œ๋‚˜ ํŠน์ • ์š”์†Œ-์†์„ฑ์— ์ ‘๊ทผํ•˜๊ธฐ ์œ„ํ•œ ๊ฒฝ๋กœ ์ง€์ • ์–ธ์–ด๋กœ XPath ๊ฒฝ๋กœ์‹์„ ์ด์šฉํ•˜์—ฌ ๋…ธ๋“œ ํ˜•์‹์œผ๋กœ ์ ‘๊ทผโ†’ XML ๋ฐ์ดํ„ฐ ์ฒ˜๋ฆฌ(XML ๋ฌธ์„œ ๊ฒ€์ƒ‰ํ•˜๋Š” ํ™˜๊ฒฝ), XML DB(XML ํ˜•์‹์œผ๋กœ ์ €์žฅ ๊ด€๋ฆฌํ•˜๋Š” ํ™˜๊ฒฝ), ...์—์„œ ๋ฐœ์ƒ ๊ฐ€๋Šฅ์„ฑ ํŒ๋‹จ ๊ธฐ์ค€XPath ์ฟผ๋ฆฌ๊ฐ€ ์‹คํ–‰๋˜์–ด ๋ถˆํ•„์š”ํ•œ ๋ฐ์ดํ„ฐ๊ฐ€ ๋…ธ์ถœ๋  ๊ฒฝ์šฐ ์ ๊ฒ€ ์‚ฌ๋ก€- ' and 'a' = 'a , ' and 'a' = 'b, ' and 1=1, ' and 1=2, ... ๊ฐ’ ์‚ฝ์ž…ํ•˜์—ฌ ์ฐธ, ๊ฑฐ์ง“์— ๋ฐ˜ํ™˜๋˜๋Š” ํŽ˜์ด์ง€๊ฐ€ ๋‹ค๋ฅธ์ง€ ํ™•์ธ- ' or count(parent::*[position()=1])=0 or 'a'='b, ' or.. 2024. 5. 12.
๋ฐ˜์‘ํ˜•