in reply to Re: CDATA probelm in XML::SMart
in thread CDATA probelm in XML::SMart

In content() i am passing the data. does content requires XML? The problem now is the XML::Smart does the encoding. but i dont want to do this but pass the data in CDATA node.

Replies are listed 'Best First'.
Re^3: CDATA probelm in XML::SMart
by ikegami (Patriarch) on Nov 21, 2007 at 18:55 UTC
    Why? CDATA is actually worse than entity-encoding, and they're completely equivalent to XML parsers.
      problem is this xml is read by another system which expectes no binary data

        What binary data? Aren't we taking about entity-encoding (Text "J&K;" -> XML "J&K;")? There's nothing binary about that. If you're getting something else, you'll need to give me more info.

        If your other system doesn't support entity-encoding, it is *very* buggy. You'll probably have an easier time rolling out a solution from scratch, cause that other system does *not* support XML.