mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 11:25:16 +08:00
xml*: use lowercase uri (#22669)
This commit is contained in:
@@ -5,15 +5,15 @@
|
||||
|
||||
- কমেন্ট সংরক্ষণ করে একটি XML ডকুমেন্টকে ক্যানোনিকাল তৈরি করুন:
|
||||
|
||||
`xml {{[c14n|canonic]}} {{path/to/input.xml|URI}} > {{path/to/output.xml}}`
|
||||
`xml {{[c14n|canonic]}} {{path/to/input.xml|uri}} > {{path/to/output.xml}}`
|
||||
|
||||
- কমেন্ট সরিয়ে একটি XML ডকুমেন্টকে ক্যানোনিকাল তৈরি করুন:
|
||||
|
||||
`xml {{[c14n|canonic]}} --without-comments {{path/to/input.xml|URI}} > {{path/to/output.xml}}`
|
||||
`xml {{[c14n|canonic]}} --without-comments {{path/to/input.xml|uri}} > {{path/to/output.xml}}`
|
||||
|
||||
- কমেন্ট সংরক্ষণ করে, একটি ফাইল থেকে XPATH ব্যবহার করে XML এক্সক্লুসিভ ক্যানোনিকাল তৈরি করুন:
|
||||
|
||||
`xml {{[c14n|canonic]}} --exc-with-comments {{path/to/input.xml|URI}} {{path/to/c14n.xpath}}`
|
||||
`xml {{[c14n|canonic]}} --exc-with-comments {{path/to/input.xml|uri}} {{path/to/c14n.xpath}}`
|
||||
|
||||
- সাহায্য প্রদর্শন করুন:
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
- একটি PYX (ESIS - ISO 8879) ডকুমেন্টকে XML ফরম্যাটে রূপান্তর করুন:
|
||||
|
||||
`xml {{[p2x|depyx]}} {{path/to/input.pyx|URI}} > {{path/to/output.xml}}`
|
||||
`xml {{[p2x|depyx]}} {{path/to/input.pyx|uri}} > {{path/to/output.xml}}`
|
||||
|
||||
- `stdin` থেকে একটি PYX ডকুমেন্টকে XML ফরম্যাটে রূপান্তর করুন:
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
- একটি XML ডকুমেন্টকে PYX ফরম্যাটে রূপান্তর করুন:
|
||||
|
||||
`xml pyx {{path/to/input.xml|URI}} > {{path/to/output.pyx}}`
|
||||
`xml pyx {{path/to/input.xml|uri}} > {{path/to/output.pyx}}`
|
||||
|
||||
- `stdin` থেকে একটি XML ডকুমেন্টকে PYX ফরম্যাটে রূপান্তর করুন:
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
- Convierte un documento XML al formato PYX:
|
||||
|
||||
`xml pyx {{ruta/a/entrada.xml|URI}} > {{ruta/a/salida.pyx}}`
|
||||
`xml pyx {{ruta/a/entrada.xml|uri}} > {{ruta/a/salida.pyx}}`
|
||||
|
||||
- Convierte un documento XML de `stdin` a formato PYX:
|
||||
|
||||
|
||||
@@ -5,15 +5,15 @@
|
||||
|
||||
- XML 문서를 정규화하여 주석을 보존:
|
||||
|
||||
`xml {{[c14n|canonic]}} {{경로/대상/입력.xml|URI}} > {{경로/대상/출력.xml}}`
|
||||
`xml {{[c14n|canonic]}} {{경로/대상/입력.xml|uri}} > {{경로/대상/출력.xml}}`
|
||||
|
||||
- XML 문서를 정규화하여 주석 제거:
|
||||
|
||||
`xml {{[c14n|canonic]}} --without-comments {{경로/대상/입력.xml|URI}} > {{경로/대상/출력.xml}}`
|
||||
`xml {{[c14n|canonic]}} --without-comments {{경로/대상/입력.xml|uri}} > {{경로/대상/출력.xml}}`
|
||||
|
||||
- 파일의 XPATH를 사용하여 XML을 독점적으로 정규화하고, 주석을 보존:
|
||||
|
||||
`xml {{[c14n|canonic]}} --exc-with-comments {{경로/대상/입력.xml|URI}} {{경로/대상/c14n.xpath}}`
|
||||
`xml {{[c14n|canonic]}} --exc-with-comments {{경로/대상/입력.xml|uri}} {{경로/대상/c14n.xpath}}`
|
||||
|
||||
- 도움말 표시:
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
- PYX (ESIS - ISO 8879) 문서를 XML 형식으로 변환:
|
||||
|
||||
`xml {{[p2x|depyx]}} {{경로/대상/입력.pyx|URI}} > {{경로/대상/출력.xml}}`
|
||||
`xml {{[p2x|depyx]}} {{경로/대상/입력.pyx|uri}} > {{경로/대상/출력.xml}}`
|
||||
|
||||
- `stdin`에서 PYX 문서를 XML 형식으로 변환:
|
||||
|
||||
|
||||
@@ -5,23 +5,23 @@
|
||||
|
||||
- XML 문서에서 XPATH와 일치하는 요소 삭제:
|
||||
|
||||
`xml {{[ed|edit]}} {{[-d|--delete]}} "{{XPATH1}}" {{경로/대상/입력.xml|URI}}`
|
||||
`xml {{[ed|edit]}} {{[-d|--delete]}} "{{XPATH1}}" {{경로/대상/입력.xml|uri}}`
|
||||
|
||||
- XML 문서의 요소 노드를 XPATH1에서 XPATH2로 이동:
|
||||
|
||||
`xml {{[ed|edit]}} {{[-m|--move]}} "{{XPATH1}}" "{{XPATH2}}" {{경로/대상/입력.xml|URI}}`
|
||||
`xml {{[ed|edit]}} {{[-m|--move]}} "{{XPATH1}}" "{{XPATH2}}" {{경로/대상/입력.xml|uri}}`
|
||||
|
||||
- 이름이 "id"인 모든 속성을 "ID"로 변경:
|
||||
|
||||
`xml {{[ed|edit]}} {{[-r|--rename]}} "{{//*/@id}}" -v "{{ID}}" {{경로/대상/입력.xml|URI}}`
|
||||
`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}}`
|
||||
`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]}} {{[-u|--update]}} "{{xml/table/rec[@id=3]/@id}}" {{[-v|--value]}} {{5}} {{경로/대상/입력.xml|uri}}`
|
||||
|
||||
- 도움말 표시:
|
||||
|
||||
|
||||
@@ -5,23 +5,23 @@
|
||||
|
||||
- XML 문서에서 요소 추출 (XPATH 표현 생성):
|
||||
|
||||
`xml {{[el|elements]}} {{경로/대상/입력.xml|URI}} > {{경로/대상/요소.xpath}}`
|
||||
`xml {{[el|elements]}} {{경로/대상/입력.xml|uri}} > {{경로/대상/요소.xpath}}`
|
||||
|
||||
- XML 문서에서 요소와 그 속성 추출:
|
||||
|
||||
`xml {{[el|elements]}} -a {{경로/대상/입력.xml|URI}} > {{경로/대상/요소.xpath}}`
|
||||
`xml {{[el|elements]}} -a {{경로/대상/입력.xml|uri}} > {{경로/대상/요소.xpath}}`
|
||||
|
||||
- XML 문서에서 요소, 속성 및 값 추출:
|
||||
|
||||
`xml {{[el|elements]}} -v {{경로/대상/입력.xml|URI}} > {{경로/대상/요소.xpath}}`
|
||||
`xml {{[el|elements]}} -v {{경로/대상/입력.xml|uri}} > {{경로/대상/요소.xpath}}`
|
||||
|
||||
- XML 문서의 정렬된 고유 요소를 출력하여 구조 확인:
|
||||
|
||||
`xml {{[el|elements]}} -u {{경로/대상/입력.xml|URI}}`
|
||||
`xml {{[el|elements]}} -u {{경로/대상/입력.xml|uri}}`
|
||||
|
||||
- 깊이 3까지의 XML 문서의 정렬된 고유 요소 출력:
|
||||
|
||||
`xml {{[el|elements]}} -d{{3}} {{경로/대상/입력.xml|URI}}`
|
||||
`xml {{[el|elements]}} -d{{3}} {{경로/대상/입력.xml|uri}}`
|
||||
|
||||
- 도움말 표시:
|
||||
|
||||
|
||||
@@ -5,15 +5,15 @@
|
||||
|
||||
- XML 문서를 탭으로 들여쓰기하여 포맷:
|
||||
|
||||
`xml {{[fo|format]}} {{[-t|--indent-tab]}} {{경로/대상/입력.xml|URI}} > {{경로/대상/출력.xml}}`
|
||||
`xml {{[fo|format]}} {{[-t|--indent-tab]}} {{경로/대상/입력.xml|uri}} > {{경로/대상/출력.xml}}`
|
||||
|
||||
- HTML 문서를 4칸의 공백으로 들여쓰기하여 포맷:
|
||||
|
||||
`xml {{[fo|format]}} {{[-H|--html]}} {{[-s|--indent-spaces]}} {{4}} {{경로/대상/입력.html|URI}} > {{경로/대상/출력.html}}`
|
||||
`xml {{[fo|format]}} {{[-H|--html]}} {{[-s|--indent-spaces]}} {{4}} {{경로/대상/입력.html|uri}} > {{경로/대상/출력.html}}`
|
||||
|
||||
- 잘못된 XML 문서에서 구문 분석이 가능한 부분을 복구하고 들여쓰지 않음:
|
||||
|
||||
`xml {{[fo|format]}} {{[-R|--recover]}} {{[-n|--noindent]}} {{경로/대상/잘못된.xml|URI}} > {{경로/대상/복구된.xml}}`
|
||||
`xml {{[fo|format]}} {{[-R|--recover]}} {{[-n|--noindent]}} {{경로/대상/잘못된.xml|uri}} > {{경로/대상/복구된.xml}}`
|
||||
|
||||
- `stdin`에서 XML 문서를 포맷하고 `DOCTYPE` 선언을 제거:
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
- XML 선언을 생략하여 XML 문서를 포맷:
|
||||
|
||||
`xml {{[fo|format]}} {{[-o|--omit-decl]}} {{경로/대상/입력.xml|URI}} > {{경로/대상/출력.xml}}`
|
||||
`xml {{[fo|format]}} {{[-o|--omit-decl]}} {{경로/대상/입력.xml|uri}} > {{경로/대상/출력.xml}}`
|
||||
|
||||
- 도움말 표시:
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
- XML 문서를 PYX 형식으로 변환:
|
||||
|
||||
`xml pyx {{경로/대상/입력.xml|URI}} > {{경로/대상/출력.pyx}}`
|
||||
`xml pyx {{경로/대상/입력.xml|uri}} > {{경로/대상/출력.pyx}}`
|
||||
|
||||
- `stdin`에서 XML 문서를 받아 PYX 형식으로 변환:
|
||||
|
||||
|
||||
@@ -6,19 +6,19 @@
|
||||
|
||||
- "XPATH1"과 일치하는 모든 요소를 선택하고 그 하위 요소 "XPATH2"의 값을 출력:
|
||||
|
||||
`xml {{[sel|select]}} {{[-t|--template]}} {{[-m|--match]}} "{{XPATH1}}" {{[-v|--value-of]}} "{{XPATH2}}" {{경로/대상/입력.xml|URI}}`
|
||||
`xml {{[sel|select]}} {{[-t|--template]}} {{[-m|--match]}} "{{XPATH1}}" {{[-v|--value-of]}} "{{XPATH2}}" {{경로/대상/입력.xml|uri}}`
|
||||
|
||||
- "XPATH1"과 일치하는 요소를 선택하고 "XPATH2"의 값을 새 줄과 함께 텍스트로 출력:
|
||||
|
||||
`xml {{[sel|select]}} {{[-T|--text]}} {{[-t|--template]}} {{[-m|--match]}} "{{XPATH1}}" {{[-v|--value-of]}} "{{XPATH2}}" {{[-n|--nl]}} {{경로/대상/입력.xml|URI}}`
|
||||
`xml {{[sel|select]}} {{[-T|--text]}} {{[-t|--template]}} {{[-m|--match]}} "{{XPATH1}}" {{[-v|--value-of]}} "{{XPATH2}}" {{[-n|--nl]}} {{경로/대상/입력.xml|uri}}`
|
||||
|
||||
- "XPATH1"의 요소 수를 계산:
|
||||
|
||||
`xml {{[sel|select]}} {{[-t|--template]}} {{[-v|--value-of]}} "count({{XPATH1}})" {{경로/대상/입력.xml|URI}}`
|
||||
`xml {{[sel|select]}} {{[-t|--template]}} {{[-v|--value-of]}} "count({{XPATH1}})" {{경로/대상/입력.xml|uri}}`
|
||||
|
||||
- 하나 이상의 XML 문서에서 모든 노드 수를 계산:
|
||||
|
||||
`xml {{[sel|select]}} {{[-T|--text]}} {{[-t|--template]}} {{[-f|--inp-name]}} {{[-o|--output]}} " " {{[-v|--value-of]}} "count(node())" {{[-n|--nl]}} {{경로/대상/입력1.xml|URI}} {{경로/대상/입력2.xml|URI}}`
|
||||
`xml {{[sel|select]}} {{[-T|--text]}} {{[-t|--template]}} {{[-f|--inp-name]}} {{[-o|--output]}} " " {{[-v|--value-of]}} "count(node())" {{[-n|--nl]}} {{경로/대상/입력1.xml|uri}} {{경로/대상/입력2.xml|uri}}`
|
||||
|
||||
- 도움말 표시:
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
- XSL 스타일시트를 사용하여 XML 문서를 변환하고, 하나의 XPATH 매개변수와 하나의 리터럴 문자열 매개변수를 전달:
|
||||
|
||||
`xml {{[tr|transform]}} {{경로/대상/스타일시트.xsl}} -p "{{Count='count(/xml/table/rec)'}}" -s {{Text="Count="}} {{경로/대상/입력.xml|URI}}`
|
||||
`xml {{[tr|transform]}} {{경로/대상/스타일시트.xsl}} -p "{{Count='count(/xml/table/rec)'}}" -s {{Text="Count="}} {{경로/대상/입력.xml|uri}}`
|
||||
|
||||
- 도움말 표시:
|
||||
|
||||
|
||||
@@ -5,19 +5,19 @@
|
||||
|
||||
- 하나 이상의 XML 문서가 잘 형성되었는지 검사:
|
||||
|
||||
`xml {{[val|validate]}} {{경로/대상/입력1.xml|URI1 경로/대상/입력2.xml|URI2 ...}}`
|
||||
`xml {{[val|validate]}} {{경로/대상/입력1.xml|uri1 경로/대상/입력2.xml|uri2 ...}}`
|
||||
|
||||
- 하나 이상의 XML 문서를 문서 유형 정의(DTD)와 비교하여 유효성 검사:
|
||||
|
||||
`xml {{[val|validate]}} {{[-d|--dtd]}} {{경로/대상/스키마.dtd}} {{경로/대상/입력1.xml|URI1 경로/대상/입력2.xml|URI2 ...}}`
|
||||
`xml {{[val|validate]}} {{[-d|--dtd]}} {{경로/대상/스키마.dtd}} {{경로/대상/입력1.xml|uri1 경로/대상/입력2.xml|uri2 ...}}`
|
||||
|
||||
- 하나 이상의 XML 문서를 XML 스키마 정의(XSD)와 비교하여 유효성 검사:
|
||||
|
||||
`xml {{[val|validate]}} {{[-s|--xsd]}} {{경로/대상/스키마.xsd}} {{경로/대상/입력1.xml|URI1 경로/대상/입력2.xml|URI2 ...}}`
|
||||
`xml {{[val|validate]}} {{[-s|--xsd]}} {{경로/대상/스키마.xsd}} {{경로/대상/입력1.xml|uri1 경로/대상/입력2.xml|uri2 ...}}`
|
||||
|
||||
- 하나 이상의 XML 문서를 Relax NG 스키마(RNG)와 비교하여 유효성 검사:
|
||||
|
||||
`xml {{[val|validate]}} {{[-r|--relaxng]}} {{경로/대상/스키마.rng}} {{경로/대상/입력1.xml|URI1 경로/대상/입력2.xml|URI2 ...}}`
|
||||
`xml {{[val|validate]}} {{[-r|--relaxng]}} {{경로/대상/스키마.rng}} {{경로/대상/입력1.xml|uri1 경로/대상/입력2.xml|uri2 ...}}`
|
||||
|
||||
- 도움말 표시:
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
- 파일 또는 URI에서 입력을 받아 `stdout`에 출력하여 하위 명령 실행:
|
||||
|
||||
`xml {{하위_명령}} {{옵션}} {{경로/대상/입력.xml|URI}}`
|
||||
`xml {{하위_명령}} {{옵션}} {{경로/대상/입력.xml|uri}}`
|
||||
|
||||
- `stdin`과 `stdout`을 사용하여 하위 명령 실행:
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
- 파일 또는 URI에서 입력을 받아 파일로 출력하여 하위 명령 실행:
|
||||
|
||||
`xml {{하위_명령}} {{옵션}} {{경로/대상/입력.xml|URI}} > {{경로/대상/출력}}`
|
||||
`xml {{하위_명령}} {{옵션}} {{경로/대상/입력.xml|uri}} > {{경로/대상/출력}}`
|
||||
|
||||
- 특정 하위 명령에 대한 도움말 표시:
|
||||
|
||||
|
||||
@@ -5,15 +5,15 @@
|
||||
|
||||
- Maak een XML-document canoniek met behoud van commentaar:
|
||||
|
||||
`xml {{[c14n|canonic]}} {{pad/naar/invoer.xml|URI}} > {{pad/naar/uitvoer.xml}}`
|
||||
`xml {{[c14n|canonic]}} {{pad/naar/invoer.xml|uri}} > {{pad/naar/uitvoer.xml}}`
|
||||
|
||||
- Maak een XML-document canoniek en verwijder het commentaar:
|
||||
|
||||
`xml {{[c14n|canonic]}} --without-comments {{pad/naar/invoer.xml|URI}} > {{pad/naar/uitvoer.xml}}`
|
||||
`xml {{[c14n|canonic]}} --without-comments {{pad/naar/invoer.xml|uri}} > {{pad/naar/uitvoer.xml}}`
|
||||
|
||||
- Maak XML uitsluitend canoniek, met behulp van een XPATH vanuit een bestand, met behoud van commentaar:
|
||||
|
||||
`xml {{[c14n|canonic]}} --exc-with-comments {{pad/naar/invoer.xml|URI}} {{pad/naar/c14n.xpath}}`
|
||||
`xml {{[c14n|canonic]}} --exc-with-comments {{pad/naar/invoer.xml|uri}} {{pad/naar/c14n.xpath}}`
|
||||
|
||||
- Toon de help:
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
- Converteer een PYX (ESIS - ISO 8879) document naar XML formaat:
|
||||
|
||||
`xml {{[p2x|depyx]}} {{pad/naar/invoer.pyx|URI}} > {{pad/naar/uitvoer.xml}}`
|
||||
`xml {{[p2x|depyx]}} {{pad/naar/invoer.pyx|uri}} > {{pad/naar/uitvoer.xml}}`
|
||||
|
||||
- Converteer een PYX document van `stdin` naar XML formaat:
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
- Converteer een XML document naar PYX formaat:
|
||||
|
||||
`xml pyx {{pad/naar/invoer.xml|URI}} > {{pad/naar/uitvoer.pyx}}`
|
||||
`xml pyx {{pad/naar/invoer.xml|uri}} > {{pad/naar/uitvoer.pyx}}`
|
||||
|
||||
- Converteer een XML document van `stdin` naar PYX formaat:
|
||||
|
||||
|
||||
@@ -5,15 +5,15 @@
|
||||
|
||||
- Make an XML document canonical, preserving comments:
|
||||
|
||||
`xml {{[c14n|canonic]}} {{path/to/input.xml|URI}} > {{path/to/output.xml}}`
|
||||
`xml {{[c14n|canonic]}} {{path/to/input.xml|uri}} > {{path/to/output.xml}}`
|
||||
|
||||
- Make an XML document canonical, removing comments:
|
||||
|
||||
`xml {{[c14n|canonic]}} --without-comments {{path/to/input.xml|URI}} > {{path/to/output.xml}}`
|
||||
`xml {{[c14n|canonic]}} --without-comments {{path/to/input.xml|uri}} > {{path/to/output.xml}}`
|
||||
|
||||
- Make XML exclusively canonical, using an XPATH from a file, preserving comments:
|
||||
|
||||
`xml {{[c14n|canonic]}} --exc-with-comments {{path/to/input.xml|URI}} {{path/to/c14n.xpath}}`
|
||||
`xml {{[c14n|canonic]}} --exc-with-comments {{path/to/input.xml|uri}} {{path/to/c14n.xpath}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
- Convert a PYX (ESIS - ISO 8879) document to XML format:
|
||||
|
||||
`xml {{[p2x|depyx]}} {{path/to/input.pyx|URI}} > {{path/to/output.xml}}`
|
||||
`xml {{[p2x|depyx]}} {{path/to/input.pyx|uri}} > {{path/to/output.xml}}`
|
||||
|
||||
- Convert a PYX document from `stdin` to XML format:
|
||||
|
||||
|
||||
@@ -5,23 +5,23 @@
|
||||
|
||||
- Delete elements matching an XPATH from an XML document:
|
||||
|
||||
`xml {{[ed|edit]}} {{[-d|--delete]}} "{{XPATH1}}" {{path/to/input.xml|URI}}`
|
||||
`xml {{[ed|edit]}} {{[-d|--delete]}} "{{XPATH1}}" {{path/to/input.xml|uri}}`
|
||||
|
||||
- Move an element node of an XML document from XPATH1 to XPATH2:
|
||||
|
||||
`xml {{[ed|edit]}} {{[-m|--move]}} "{{XPATH1}}" "{{XPATH2}}" {{path/to/input.xml|URI}}`
|
||||
`xml {{[ed|edit]}} {{[-m|--move]}} "{{XPATH1}}" "{{XPATH2}}" {{path/to/input.xml|uri}}`
|
||||
|
||||
- Rename all attributes named "id" to "ID":
|
||||
|
||||
`xml {{[ed|edit]}} {{[-r|--rename]}} "{{//*/@id}}" -v "{{ID}}" {{path/to/input.xml|URI}}`
|
||||
`xml {{[ed|edit]}} {{[-r|--rename]}} "{{//*/@id}}" -v "{{ID}}" {{path/to/input.xml|uri}}`
|
||||
|
||||
- Rename sub-elements of the element "table" that are named "rec" to "record":
|
||||
|
||||
`xml {{[ed|edit]}} {{[-r|--rename]}} "{{/xml/table/rec}}" -v "{{record}}" {{path/to/input.xml|URI}}`
|
||||
`xml {{[ed|edit]}} {{[-r|--rename]}} "{{/xml/table/rec}}" -v "{{record}}" {{path/to/input.xml|uri}}`
|
||||
|
||||
- Update the XML table record with "id=3" to the value "id=5":
|
||||
|
||||
`xml {{[ed|edit]}} {{[-u|--update]}} "{{xml/table/rec[@id=3]/@id}}" {{[-v|--value]}} {{5}} {{path/to/input.xml|URI}}`
|
||||
`xml {{[ed|edit]}} {{[-u|--update]}} "{{xml/table/rec[@id=3]/@id}}" {{[-v|--value]}} {{5}} {{path/to/input.xml|uri}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
|
||||
@@ -5,23 +5,23 @@
|
||||
|
||||
- Extract elements from an XML document (producing XPATH expressions):
|
||||
|
||||
`xml {{[el|elements]}} {{path/to/input.xml|URI}} > {{path/to/elements.xpath}}`
|
||||
`xml {{[el|elements]}} {{path/to/input.xml|uri}} > {{path/to/elements.xpath}}`
|
||||
|
||||
- Extract elements and their attributes from an XML document:
|
||||
|
||||
`xml {{[el|elements]}} -a {{path/to/input.xml|URI}} > {{path/to/elements.xpath}}`
|
||||
`xml {{[el|elements]}} -a {{path/to/input.xml|uri}} > {{path/to/elements.xpath}}`
|
||||
|
||||
- Extract elements and their attributes and values from an XML document:
|
||||
|
||||
`xml {{[el|elements]}} -v {{path/to/input.xml|URI}} > {{path/to/elements.xpath}}`
|
||||
`xml {{[el|elements]}} -v {{path/to/input.xml|uri}} > {{path/to/elements.xpath}}`
|
||||
|
||||
- Print sorted unique elements from an XML document to see its structure:
|
||||
|
||||
`xml {{[el|elements]}} -u {{path/to/input.xml|URI}}`
|
||||
`xml {{[el|elements]}} -u {{path/to/input.xml|uri}}`
|
||||
|
||||
- Print sorted unique elements from an XML document up to a depth of 3:
|
||||
|
||||
`xml {{[el|elements]}} -d{{3}} {{path/to/input.xml|URI}}`
|
||||
`xml {{[el|elements]}} -d{{3}} {{path/to/input.xml|uri}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
|
||||
@@ -5,15 +5,15 @@
|
||||
|
||||
- Format an XML document, indenting with tabs:
|
||||
|
||||
`xml {{[fo|format]}} {{[-t|--indent-tab]}} {{path/to/input.xml|URI}} > {{path/to/output.xml}}`
|
||||
`xml {{[fo|format]}} {{[-t|--indent-tab]}} {{path/to/input.xml|uri}} > {{path/to/output.xml}}`
|
||||
|
||||
- Format an HTML document, indenting with 4 spaces:
|
||||
|
||||
`xml {{[fo|format]}} {{[-H|--html]}} {{[-s|--indent-spaces]}} {{4}} {{path/to/input.html|URI}} > {{path/to/output.html}}`
|
||||
`xml {{[fo|format]}} {{[-H|--html]}} {{[-s|--indent-spaces]}} {{4}} {{path/to/input.html|uri}} > {{path/to/output.html}}`
|
||||
|
||||
- Recover parsable parts of a malformed XML document, without indenting:
|
||||
|
||||
`xml {{[fo|format]}} {{[-R|--recover]}} {{[-n|--noindent]}} {{path/to/malformed.xml|URI}} > {{path/to/recovered.xml}}`
|
||||
`xml {{[fo|format]}} {{[-R|--recover]}} {{[-n|--noindent]}} {{path/to/malformed.xml|uri}} > {{path/to/recovered.xml}}`
|
||||
|
||||
- Format an XML document from `stdin`, removing the `DOCTYPE` declaration:
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
- Format an XML document, omitting the XML declaration:
|
||||
|
||||
`xml {{[fo|format]}} {{[-o|--omit-decl]}} {{path/to/input.xml|URI}} > {{path/to/output.xml}}`
|
||||
`xml {{[fo|format]}} {{[-o|--omit-decl]}} {{path/to/input.xml|uri}} > {{path/to/output.xml}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
- Convert an XML document to PYX format:
|
||||
|
||||
`xml pyx {{path/to/input.xml|URI}} > {{path/to/output.pyx}}`
|
||||
`xml pyx {{path/to/input.xml|uri}} > {{path/to/output.pyx}}`
|
||||
|
||||
- Convert an XML document from `stdin` to PYX format:
|
||||
|
||||
|
||||
@@ -6,19 +6,19 @@
|
||||
|
||||
- Select all elements matching "XPATH1" and print the value of their sub-element "XPATH2":
|
||||
|
||||
`xml {{[sel|select]}} {{[-t|--template]}} {{[-m|--match]}} "{{XPATH1}}" {{[-v|--value-of]}} "{{XPATH2}}" {{path/to/input.xml|URI}}`
|
||||
`xml {{[sel|select]}} {{[-t|--template]}} {{[-m|--match]}} "{{XPATH1}}" {{[-v|--value-of]}} "{{XPATH2}}" {{path/to/input.xml|uri}}`
|
||||
|
||||
- Match "XPATH1" and print the value of "XPATH2" as text with new-lines:
|
||||
|
||||
`xml {{[sel|select]}} {{[-T|--text]}} {{[-t|--template]}} {{[-m|--match]}} "{{XPATH1}}" {{[-v|--value-of]}} "{{XPATH2}}" {{[-n|--nl]}} {{path/to/input.xml|URI}}`
|
||||
`xml {{[sel|select]}} {{[-T|--text]}} {{[-t|--template]}} {{[-m|--match]}} "{{XPATH1}}" {{[-v|--value-of]}} "{{XPATH2}}" {{[-n|--nl]}} {{path/to/input.xml|uri}}`
|
||||
|
||||
- Count the elements of "XPATH1":
|
||||
|
||||
`xml {{[sel|select]}} {{[-t|--template]}} {{[-v|--value-of]}} "count({{XPATH1}})" {{path/to/input.xml|URI}}`
|
||||
`xml {{[sel|select]}} {{[-t|--template]}} {{[-v|--value-of]}} "count({{XPATH1}})" {{path/to/input.xml|uri}}`
|
||||
|
||||
- Count all nodes in one or more XML documents:
|
||||
|
||||
`xml {{[sel|select]}} {{[-T|--text]}} {{[-t|--template]}} {{[-f|--inp-name]}} {{[-o|--output]}} " " {{[-v|--value-of]}} "count(node())" {{[-n|--nl]}} {{path/to/input1.xml|URI}} {{path/to/input2.xml|URI}}`
|
||||
`xml {{[sel|select]}} {{[-T|--text]}} {{[-t|--template]}} {{[-f|--inp-name]}} {{[-o|--output]}} " " {{[-v|--value-of]}} "count(node())" {{[-n|--nl]}} {{path/to/input1.xml|uri}} {{path/to/input2.xml|uri}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
- Transform an XML document using an XSL stylesheet, passing one XPATH parameter and one literal string parameter:
|
||||
|
||||
`xml {{[tr|transform]}} {{path/to/stylesheet.xsl}} -p "{{Count='count(/xml/table/rec)'}}" -s {{Text="Count="}} {{path/to/input.xml|URI}}`
|
||||
`xml {{[tr|transform]}} {{path/to/stylesheet.xsl}} -p "{{Count='count(/xml/table/rec)'}}" -s {{Text="Count="}} {{path/to/input.xml|uri}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
|
||||
@@ -5,19 +5,19 @@
|
||||
|
||||
- Validate one or more XML documents for well-formedness only:
|
||||
|
||||
`xml {{[val|validate]}} {{path/to/input1.xml|URI1 path/to/input2.xml|URI2 ...}}`
|
||||
`xml {{[val|validate]}} {{path/to/input1.xml|uri1 path/to/input2.xml|uri2 ...}}`
|
||||
|
||||
- Validate one or more XML documents against a Document Type Definition (DTD):
|
||||
|
||||
`xml {{[val|validate]}} {{[-d|--dtd]}} {{path/to/schema.dtd}} {{path/to/input1.xml|URI1 path/to/input2.xml|URI2 ...}}`
|
||||
`xml {{[val|validate]}} {{[-d|--dtd]}} {{path/to/schema.dtd}} {{path/to/input1.xml|uri1 path/to/input2.xml|uri2 ...}}`
|
||||
|
||||
- Validate one or more XML documents against an XML Schema Definition (XSD):
|
||||
|
||||
`xml {{[val|validate]}} {{[-s|--xsd]}} {{path/to/schema.xsd}} {{path/to/input1.xml|URI1 path/to/input2.xml|URI2 ...}}`
|
||||
`xml {{[val|validate]}} {{[-s|--xsd]}} {{path/to/schema.xsd}} {{path/to/input1.xml|uri1 path/to/input2.xml|uri2 ...}}`
|
||||
|
||||
- Validate one or more XML documents against a Relax NG schema (RNG):
|
||||
|
||||
`xml {{[val|validate]}} {{[-r|--relaxng]}} {{path/to/schema.rng}} {{path/to/input1.xml|URI1 path/to/input2.xml|URI2 ...}}`
|
||||
`xml {{[val|validate]}} {{[-r|--relaxng]}} {{path/to/schema.rng}} {{path/to/input1.xml|uri1 path/to/input2.xml|uri2 ...}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
|
||||
+2
-2
@@ -10,7 +10,7 @@
|
||||
|
||||
- Execute a subcommand with input from a file or URI, printing to `stdout`:
|
||||
|
||||
`xml {{subcommand}} {{options}} {{path/to/input.xml|URI}}`
|
||||
`xml {{subcommand}} {{options}} {{path/to/input.xml|uri}}`
|
||||
|
||||
- Execute a subcommand using `stdin` and `stdout`:
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
- Execute a subcommand with input from a file or URI and output to a file:
|
||||
|
||||
`xml {{subcommand}} {{options}} {{path/to/input.xml|URI}} > {{path/to/output}}`
|
||||
`xml {{subcommand}} {{options}} {{path/to/input.xml|uri}} > {{path/to/output}}`
|
||||
|
||||
- Display help for a specific subcommand:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user