Advertisement
Guest User

Format XML with TextWrangler script broken in 4.0

a guest
May 8th, 2012
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. [1]
  2. #!/bin/sh
  3. xmllint --c14n -- | XMLLINT_INDENT=$’\t’ xmllint --encode UTF-8 --format -
  4.  
  5.  
  6. [2]
  7. #!/bin/sh
  8. xmllint --c14n "/dev/stdin" | XMLLINT_INDENT=$'\t' xmllint --encode UTF-8 --format -
  9.  
  10. [3]
  11. #!/bin/sh
  12. xmllint --c14n – | XMLLINT_INDENT=$’\t’ xmllint --encode UTF-8 --format -
  13.  
  14. [4]
  15. #!/bin/sh
  16. xmllint --c14n /dev/stdin | XMLLINT_INDENT=/dev/stdin’\t’ xmllint --encode UTF-8 --format -
  17.  
  18. [5]
  19. #!/bin/sh
  20. xmllint --c14n – | XMLLINT_INDENT=$’\t’ xmllint --encode UTF-8 --format -
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement