1 Reply Latest reply on Oct 11, 2012 10:23 AM by John van der Kooij

    XmlDoc AddText method

      How can we acheive the below using Peoplecode XmlDoc AddText method?


      < as lt and > as gt. when i give it as a string this will allow me to include tags as and when needed.

      When tried resolves as &amp...


      Edited by: user1121514 on Oct 10, 2012 10:47 PM

      Edited by: user1121514 on Oct 10, 2012 10:49 PM
        • 1. Re: XmlDoc AddText method
          John van der Kooij
          Escaping for XML is basically the same as for HTML, so looking at the PeopleCode Language Reference (PeopleBooks 8.51) you could use:

          EscapeHTML (TextString)
          PeopleBooks direct link => http://docs.oracle.com/cd/E26239_01/pt851h3/eng/psbooks/tpcl/htm/tpcl02.htm#_44b99cce_132f53268cc__515b