[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: xpath visualizer for linux?
On Mon, Mar 10, 2003 at 06:20:44PM -0500, Robert P. J. Day wrote: > > what's the closest approximation to xpath visualizer > for linux, so i can goof around? Well, you probably have libxml2 installed, so you can play with xmllint --shell xml_document This parses the document and open a shell in the good old tradition of unix but operating on the document instead of the filesystem. It's not graphical but I find it useful from time to time when I have to design XPath expressions: paphio:~ -> xmllint --shell XML/test/valid/REC-xml-19980210.xml / > cd //p //p is a 313 Node Set / > cd (//p)[12] p > ls t-- 472 XML was developed by an XML Working Grou... p > pwd /spec/body/div1[1]/div2[1]/p[1] p > cd .. div2 > ls t-- 1 --- 1 head t-- 1 --- 1 p t-- 1 --- 3 p t-- 1 --- 3 p t-- 1 --- 5 p t-- 2 div2 > cd .. div1 > grep Maler /spec/back/inform-div1[5]/orglist/member[11]/name : t-- 20 Eve Maler, ArborText div1 > cat head ------- <head>Origin and Goals</head> div2 > help base display XML base of the node setbase URI change the XML base of the node bye leave shell cat [node] display node or current node cd [path] change directory to path or to root dir [path] dumps informations about the node (namespace, attributes, content) du [path] show the structure of the subtree under path or the current node exit leave shell help display this help free display memory usage load [name] load a new document with name ls [path] list contents of path or the current directory xpath expr evaluate the XPath expression in that context and print the result pwd display current working directory quit leave shell save [name] save this document to name or the original name validate check the document for errors write [name] write the current node to the filename grep string search for a string in the subtree div1 > exit paphio:~ -> It doesn't aim at replacing a graphical XPath evaluator, but it's fun and kindof useful sometimes :-) Daniel -- Daniel Veillard | Red Hat Network https://rhn.redhat.com/ veillard@xxxxxxxxxx | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|