File: bigxml-embed-ref

package info (click to toggle)
xmlstarlet 1.6.1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,656 kB
  • sloc: sh: 4,735; ansic: 4,187; xml: 1,936; makefile: 66; awk: 43
file content (7 lines) | stat: -rwxr-xr-x 301 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
#!/bin/sh
. ./bigxml
xmldoc '<a>foo</a>' '<!DOCTYPE root SYSTEM "dtd/bigxml.dtd">' \
    | ./xmlstarlet val --embed --err - 2>&1 >/dev/null \
    | ${SED:-sed} -n "$SEDLINUM_PROG" \
    | head -n 1 # a bug in libxml 2.9.0 causes extra errors to be
                # printed, so we take just the first