Here is a list of next steps in XmlStarlet on TODO or wishlist:
1. Editing xml documents with xml 'ed' option must be improved.
2. add --recover to fix broken XML documents
3. Document how to use proxy in XmlStarlet with nanohttp/ftp via http_proxy, ftp_proxy environment variables
ex: export http_proxy=http://192.168.0.1:8080/
4. Add ability to specify xpath expression in XmlStarlet 'el' option
5. -u option of XmlStarlet 'xml el' should work with others too. I.e. sort | uniq equivalent should work when attributes and attributes values are printed out.
6. Think about 'join' analogue
7. Something like xml sel -t -m <xpath> --exec <shell-cmd> --args <args> is needed
8. How would be possible to insert one XML fragment into another XML document from command line without XInclude?
9. Make use of regular expressions ex: Make all element names uppercase
10. Start thinking about diff and patch. Several tree diff algorithms could be implemented for ordered and non ordered labeled trees. What about creating context diff? How to define context in XML space? Good luck solving NP-Complete problems.
11. What about XUpdate implementation?
12. How about making output with syntax coloring in case if it is running in terminal (not batch) mode. Similar to GNU ls?
13. Convert XML to Lisp S-expressions
14. XML Namespace normalization process (There is a XSLT stylesheet floating on the web which could do it).
15. Make use of performance updates from libxml2. mmap() for document chunks, XMLReader interface, etc.
16. More regression testing test cases required.
17. Better Documentation User Guide and Tutorial is needed. More good and real-world examples.
If you wish to enhance/add something to this list, please, reply.
After using this for over a year, the one thing that I want most is the ability to use stdin and stdout instead of always having to point it to a file on the disk.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
>After using this for over a year, the one thing that I want most is the ability to use stdin and stdout instead of always having to point it to a file on the disk.
And you have it. Using '-' as a file name stands for stdin.
Output to stdout is default.
--MG
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Here is a list of next steps in XmlStarlet on TODO or wishlist:
1. Editing xml documents with xml 'ed' option must be improved.
2. add --recover to fix broken XML documents
3. Document how to use proxy in XmlStarlet with nanohttp/ftp via http_proxy, ftp_proxy environment variables
ex: export http_proxy=http://192.168.0.1:8080/
4. Add ability to specify xpath expression in XmlStarlet 'el' option
5. -u option of XmlStarlet 'xml el' should work with others too. I.e. sort | uniq equivalent should work when attributes and attributes values are printed out.
6. Think about 'join' analogue
7. Something like xml sel -t -m <xpath> --exec <shell-cmd> --args <args> is needed
8. How would be possible to insert one XML fragment into another XML document from command line without XInclude?
9. Make use of regular expressions ex: Make all element names uppercase
10. Start thinking about diff and patch. Several tree diff algorithms could be implemented for ordered and non ordered labeled trees. What about creating context diff? How to define context in XML space? Good luck solving NP-Complete problems.
11. What about XUpdate implementation?
12. How about making output with syntax coloring in case if it is running in terminal (not batch) mode. Similar to GNU ls?
13. Convert XML to Lisp S-expressions
14. XML Namespace normalization process (There is a XSLT stylesheet floating on the web which could do it).
15. Make use of performance updates from libxml2. mmap() for document chunks, XMLReader interface, etc.
16. More regression testing test cases required.
17. Better Documentation User Guide and Tutorial is needed. More good and real-world examples.
If you wish to enhance/add something to this list, please, reply.
XmlStarlet home page,
http://xmlstar.sourceforge.net/
Thanks,
--MG
Few additions
1. Better namespace support.
2. something like xml head, and xml tail
3. list directories in XML
4. Defining variables in xml sel
Ex: xml sel -t --m / -d var_name -v @elem
-d would translate into
<xsl:variable name="var_name">
</xml:variable>
and this variable could be referenced as $var_name
in XPATH
5. CygWin binaries?
After using this for over a year, the one thing that I want most is the ability to use stdin and stdout instead of always having to point it to a file on the disk.
>After using this for over a year, the one thing that I want most is the ability to use stdin and stdout instead of always having to point it to a file on the disk.
And you have it. Using '-' as a file name stands for stdin.
Output to stdout is default.
--MG
Do consider adding the XPath Function http://www.w3schools.com/xpath/xpath_functions.asp#boolean
Do try out few and found some of the stated by w3schools is not implemented or buggy.
eg. Not implemented - upper-case(), lower-case() , Buggy - boolean() always return true.