removing xml tags from a string of data

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf removing xml tags from a string of data

  • Creator
    Topic
  • #48189
    John Harvey
    Participant

      Hi,

      I am writing a procedure to call Screen Rejuvenator from a thread in Quovadx.

    Viewing 0 reply threads
    • Author
      Replies
      • #57956
        Nathan Martin
        Participant

          Use a regular expression:

          Code:

          tcl>set data {
          001850
          }
          tcl>regexp {UnitNumber[^>]*>([^>]*)echo $mnum
          001850

          You could also pick an xml package and use it to access that little bit of data.  Or you could build a DTD or XML schema format and then an XML translate or TPS w/GRM and get there too… eventually.

      Viewing 0 reply threads
      • The forum ‘Cloverleaf’ is closed to new topics and replies.