> We know, however, that every XML-Message starts on
> a new line.

In that case, forget that your data is XML and treat it as plain text with
the standard Unix utilities, as sketched below. You are warned that this
code has not been tested.

Jeroen.

File header.xml contains

  <?xml version="1.0"?>
  <!DOCTYPE STREET_REF SYSTEM "fti://repository/dtd/STREET_REF">
  <STREET_REF>

File footer.xml contains

  </STREET_REF>

(If I understand correctly, the top element name must be equal to the
first argument of the DOCTYPE.)

Commands to execute are

  FILETOREAD=/path/to/your/pseudo-xml.file
  grep -v '^<!DOCTYPE' $FILETOREAD | \
    grep -v '^<?xml ' | \
    cat header.xml - footer.xml | \
    your-application



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to