• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: NSXML encoding question...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: NSXML encoding question...


  • Subject: RE: NSXML encoding question...
  • From: James Bucanek <email@hidden>
  • Date: Sun, 26 Aug 2007 13:28:36 -0700

John Stiles <mailto:email@hidden> wrote (Sunday, August 26, 2007 12:10 PM -0700):
Unfortunately I don't have a lot of CDATA experience so I don't know
the best workaround for this sort of situation.

The recommended solution is to encode the string using two CDATA tags, splitting the sequence "]]>" so it doesn't occur literally in the document:


    <![CDATA[if( [a multiplyWith:[b value]]]]><![CDATA[>25 )]]>

<http://en.wikipedia.org/wiki/CDATA#Uses_of_CDATA_sections>

--
James Bucanek

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSXML encoding question...
      • From: Martin Linklater <email@hidden>
References: 
 >RE: NSXML encoding question... (From: "John Stiles" <email@hidden>)

  • Prev by Date: Re: How do you found your way around in the ref docs?
  • Next by Date: Re: How do you found your way around in the ref docs?
  • Previous by thread: RE: NSXML encoding question...
  • Next by thread: Re: NSXML encoding question...
  • Index(es):
    • Date
    • Thread