[Xml-coreutils-discuss] Problem using xml-grep
Status: Alpha
Brought to you by:
lbreyer
From: Douglas H. <do...@do...> - 2010-09-13 11:26:15
|
Hi Laird, I've got xml-coreutils 0.8 running on Mac OS X (Darwin Kernel Version 9.8.0:xnu-1228.15.4~1/RELEASE_I386) and have a variety of problems trying to grep elements out of a 3MB valid xml file. Full output is below, but in summary I am trying to refit the xml utilities into my usual pattern: cat file | grep 'expression' I am not finding the utilities to work as I expect. Perhaps this is usage or documentation. Can you advise? Thanks. I cannot provide the xml file itself. Let me know if you need a test case or if there is debug information I can obtain on my end. Regards, Doug douglas-helds-macbook-pro-2:2010Q3 douglasheld$ xml-cat core_java.xml | xml-grep --subtree 'ControlflowRule' <?xml version="1.0"?> <root> </root> douglas-helds-macbook-pro-2:2010Q3 douglasheld$ cat core_java.xml | grep -m 1 'ControlflowRule' <ControlflowRule formatVersion="3.2" language="java"> douglas-helds-macbook-pro-2:2010Q3 douglasheld$ cat core_java.xml | xml-grep --subtree 'ControlflowRule' xml-grep: error: segmentation fault. douglas-helds-macbook-pro-2:2010Q3 douglasheld$ echo $? 1 douglas-helds-macbook-pro-2:2010Q3 douglasheld$ -- Douglas Held do...@do... +447986527654 |