• 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: Sending boolean value via XML-RPC using WebServicesCore.framework
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sending boolean value via XML-RPC using WebServicesCore.framework


  • Subject: Re: Sending boolean value via XML-RPC using WebServicesCore.framework
  • From: Matt Gemmell <email@hidden>
  • Date: Sat, 28 Sep 2002 23:54:06 +0100

On Saturday, September 28, 2002, at 10:57 pm, Matt Gemmell wrote:

The "expected Element" error seems to arise when one of the values in the parameter list is malformed in some way. Seems to happen when I pass a string containing HTML tags, for example, which makes some kind of sense since all this is converted to XML before being sent. Still need to play with that a bit.

For what it's worth, my solution was just to entity-encode the "<" characters as "&lt;", using NSString's -replaceOccurrencesOfString:... method.

Note that this definitely doesn't work for all entities (&trade; for example), but it seems happy enough with basic stuff.

Cheers,
-Matt

--
Matt Gemmell
Scotland Software
http://www.scotlandsoftware.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Sending boolean value via XML-RPC using WebServicesCore.framework (From: Matt Gemmell <email@hidden>)

  • Prev by Date: Displaying Current Time using Cocoa
  • Next by Date: Re: Bundle compile problems
  • Previous by thread: Re: Sending boolean value via XML-RPC using WebServicesCore.framework
  • Next by thread: Displaying Current Time using Cocoa
  • Index(es):
    • Date
    • Thread