Textwrangler -- Trying to run a xmllint command

Posted by bobber205 on Server Fault See other posts from Server Fault or by bobber205
Published on 2011-03-18T22:51:08Z Indexed on 2011/03/19 0:12 UTC
Read the original article Hit count: 537

Filed under:
|

When I run:

#!/bin/sh
xmllint --c14n "$*" | XMLLINT_INDENT=$'\t' xmllint --encode UTF-8 --format -

I get

/private/var/folders/Aj/Aj9m3c8JGnmkccHY2o3lKE+++TI/Cleanup At Startup/Tidy XML.sh.S:1: parser error : Start tag expected, '<' not found question_autoSwitch ^ -:1: parser error : Document is empty

^ -:1: parser error : Start tag expected, '<' not found

Something is very wrong. :P

Any ideas?

© Server Fault or respective owner

Related posts about macosx

Related posts about Xml