Loading ...
Sorry, an error occurred while loading the content.

Re: [soaplite] How to keep CDATA from parsing?

Expand Messages
  • Paul Kulchenko
    Hi Shyly, It unclear from the message what you want to do, but you may use xml pseudotype: return SOAP::Data- type(xml = hello ]] ); the
    Message 1 of 2 , Nov 13, 2002
    • 0 Attachment
      Hi Shyly,

      It unclear from the message what you want to do, but you may use
      'xml' pseudotype:

      return SOAP::Data->type(xml => "<![CDATA[<hi>hello</hi>]]>");

      the fragment returned by hi4() method will make the XML message
      invalid because of the XML declaration included in it.

      Best wishes, Paul.

      --- shylya <amarasin@...> wrote:
      > Hello.
      >
      > I have read several postings on this subject, but I think I'm
      > missing
      > something in the solution.
      >
      > I have a sub that returns a string already in XML format, so I do
      > not
      > want the '<' returned as "<". I've tried each of the following,
      >
      > and in all instances I get '<![CDATA[<hi>'. Can anyone see
      > what I'm doing wrong? (We are using SOAP::Lite version 1.47)
      >
      > Thank you,
      > Shyly
      >
      > sub hi1
      > { return "<![CDATA[<hi>hello</hi>]]>";
      > }
      > sub hi2
      > { return "<test><![CDATA[<hi>hello</hi>]]></test>";
      > }
      > sub hi3
      > { return "<XML><![CDATA[<hi>hello</hi>]]></XML>";
      > }
      > sub hi4
      > { return "<?xml version="1.0"?><![CDATA[<hi>hello</hi>]]>";
      > }
      >
      >
      > ------------------------ Yahoo! Groups Sponsor
      >
      > To unsubscribe from this group, send an email to:
      > soaplite-unsubscribe@yahoogroups.com
      >
      >
      >
      > Your use of Yahoo! Groups is subject to
      > http://docs.yahoo.com/info/terms/
      >
      >


      __________________________________________________
      Do you Yahoo!?
      U2 on LAUNCH - Exclusive greatest hits videos
      http://launch.yahoo.com/u2
    Your message has been successfully submitted and would be delivered to recipients shortly.