1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-08 11:46:01 +02:00
tldr/pages.ko/common/xml-edit.md
Nelson Figueroa dbb1a7d9c2
xml-*: update more information links for Korean pages (#16685)
* xml-*: update more information links for Korean pages

* updated commands

* updated commands again
2025-05-31 20:23:50 -07:00

28 lines
1 KiB
Markdown

# xml edit
> XML 문서 편집.
> 더 많은 정보: <https://xmlstar.sourceforge.net/doc/UG/xmlstarlet-ug.html#idm47077139594320>.
- XML 문서에서 XPATH와 일치하는 요소 삭제:
`xml {{[ed|edit]}} {{[-d|--delete]}} "{{XPATH1}}" {{경로/대상/입력.xml|URI}}`
- XML 문서의 요소 노드를 XPATH1에서 XPATH2로 이동:
`xml {{[ed|edit]}} {{[-m|--move]}} "{{XPATH1}}" "{{XPATH2}}" {{경로/대상/입력.xml|URI}}`
- 이름이 "id"인 모든 속성을 "ID"로 변경:
`xml {{[ed|edit]}} {{[-r|--rename]}} "{{//*/@id}}" -v "{{ID}}" {{경로/대상/입력.xml|URI}}`
- "table" 요소의 하위 요소 중 "rec"으로 명명된 요소를 "record"로 이름 변경:
`xml {{[ed|edit]}} {{[-r|--rename]}} "{{/xml/table/rec}}" -v "{{record}}" {{경로/대상/입력.xml|URI}}`
- "id=3"인 XML 테이블 레코드를 "id=5" 값으로 업데이트:
`xml {{[ed|edit]}} {{[-u|--update]}} "{{xml/table/rec[@id=3]/@id}}" {{[-v|--value]}} {{5}} {{경로/대상/입력.xml|URI}}`
- 도움말 표시:
`xml {{[ed|edit]}} {{[-h|--help]}}`