You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To test several instances running in background or simultaneously (issue #15)
297
+
298
+
BG=1 ./test-all.sh
299
+
296
300
## Generate an XML from an XSD and show its XPaths
297
301
If an XSD file is provided and **xmlbeans** package is installed, try to create an XML instance and print the XPath from it.
298
302
@@ -449,14 +453,15 @@ This simple command will extract the first `entry` element to `wiki-1.xml` file.
449
453
```text
450
454
Print XPath present on xml or (if possible) xsd files. Based on xmllint utility, try to build all possible XPaths from an XML instance. The latter could be constructed from a provided XSD file.
-q do not print information messages, just xpath list.
460
465
-v print version
461
466
462
467
XML/HTML Common Options:
@@ -473,7 +478,7 @@ HTML options:
473
478
XML options:
474
479
-n Set namespaces found on root element. Default namespace prefix is 'defaultns' but may be overriden with -o option.
475
480
-o Override the default namespace definition by passing <prefix>=URI, e.g.: -o 'defns=urn:hl7-org:v3'
476
-
-p Namespace prefix to use. No need to pass -n if used. EXPERIMENTAL.
481
+
-p Namespace prefix to use. No need to pass -n if used and takes precedence if it is.
477
482
-x xml file, will take precedence over -d option.
478
483
479
484
XSD options:
@@ -495,8 +500,13 @@ Examples:
495
500
496
501
xml2xpath.sh -a -n -l test.html Html file with absolute paths option
497
502
498
-
Reporting bugs:
499
-
https://github.com/mluis7/xml2xpath/issues
503
+
Environment:
504
+
XML_XPATH_RTOUT Set XML file the read timeout. Default 5s.
505
+
506
+
XMLBEANS_HOME Set Apache XmlBeans home for xml instance creation from xsd file. Default: /usr/share/java/xmlbeans
507
+
508
+
Bugs:
509
+
Report found bugs or feature requests at https://github.com/mluis7/xml2xpath/issues
500
510
```
501
511
502
512
## Generate man page
@@ -507,4 +517,4 @@ To test the generated man page use:
507
517
`MANPATH="./man" man man/xml2xpath.sh.1`
508
518
509
519
## Known issues
510
-
*Multiple default namespaces in document: `-o` and/or `-s` may give [incorrect results](https://stackoverflow.com/questions/69380381/send-command-output-back-to-previous-subshell-in-pipe-for-processing).
520
+
*No one! ... that I know of :-p but [performance](#performance) with big documents can always be an issue.
Print XPath present on xml or (if possible) xsd files. Based on xmllint utility, try to build all possible XPaths from an XML instance. The latter could be constructed from a provided XSD file.
<ns:a01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678z01234567890123456789012345678x>ERROR: 0 elements found</ns:a01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678z01234567890123456789012345678x>
0 commit comments