embed line breaks in xml

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf embed line breaks in xml

  • Creator
    Topic
  • #48822
    Greg Eriksen
    Participant

      I’m having trouble getting a line break indicator(s) to show up in my xml output.

    Viewing 1 reply thread
    • Author
      Replies
      • #59805
        Dick Bly
        Participant

          try using the line break sequence

        • #59806
          Greg Eriksen
          Participant

            Thanks very much for the suggestion.  I tried to manually edit  a
            into a test xml file, and when I tried to display it using Internet Explorer it gave an error saying that ‘the character “<" can't be used in an attribute value.'  I didn't explain in my first post that the schema for the xml file has all data contained in attributes.  Maybe the
            would be allowed in element data.

            However, the developer for the receiving system uses the xml files to populate a SQL database, so he thought the
            wouldn’t work because it was html specific.

            I ended up inserting a value of “*crlf*” as I appended each NTE.3 value to the output attribute field.  Then I wrote a tcl proc containing a regsub to replace the constant with the desired html line break escape sequences, and put it after translation in the Outbound Data tps.

            The user came back and said that he found out what he really needed was (spaces inserted so it will display in this forum post) ” & # x d ; & # x a ; ”  rather than ” & # 1 3 ; & # 1 0 ; “.  I’ve made the change and am waiting to find out what, if anything, worked.

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