Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 10-06-2008, 06:10 AM   #1 (permalink)
New Member
 
Join Date: Jul 2008
Posts: 4
Unhappy XML Special Characters Problem

I Have This Tag In My XML File:

<name>conceição</name>

i don't know why, but for some reason he gets the name until the " i " character, after that, he puts another line and at the end he gets escaping sequences like this:

\n\t\t

what i want:

- know a way how to put together these parts "concei" & "ção" and remove the escape sequences "\n\t\t"

can somebody help me please
Agustinz is offline   Reply With Quote
Old 05-11-2009, 03:36 AM   #2 (permalink)
iPhone Developer
 
Narender Mudgal's Avatar
 
Join Date: Dec 2008
Location: India
Age: 28
Posts: 155
Send a message via MSN to Narender Mudgal Send a message via Skype™ to Narender Mudgal
Default

Quote:
Originally Posted by Agustinz View Post
I Have This Tag In My XML File:

<name>conceição</name>

i don't know why, but for some reason he gets the name until the " i " character, after that, he puts another line and at the end he gets escaping sequences like this:

\n\t\t

what i want:

- know a way how to put together these parts "concei" & "ção" and remove the escape sequences "\n\t\t"

can somebody help me please
Hi
if you have got the solution of this
please help me also
I am facing this problem
and did not get any answer.
I dont have any hands in the XML,
I am getting it through client side so I cant change special charctes
how can i get them and show them.
please please please
reply ..
Narender Mudgal is offline   Reply With Quote
Old 06-02-2009, 01:25 PM   #3 (permalink)
New Member
 
Join Date: Jun 2009
Posts: 2
Default Same Problem

someone found the solution for this parsing?
Please HELP....
ivanhc7 is offline   Reply With Quote
Old 06-02-2009, 01:34 PM   #4 (permalink)
New Member
 
Join Date: Apr 2009
Posts: 5
Default

Quote:
Originally Posted by Agustinz View Post
I Have This Tag In My XML File:

<name>conceição</name>

i don't know why, but for some reason he gets the name until the " i " character, after that, he puts another line and at the end he gets escaping sequences like this:

\n\t\t

what i want:

- know a way how to put together these parts "concei" & "ção" and remove the escape sequences "\n\t\t"

can somebody help me please
Put the data in a <![CDATA[ ]]> section and you should get what you want.
<name><![CDATA[conceição]]></name>
--FreeRide
FreeRideSoftware is offline   Reply With Quote
Old 06-02-2009, 01:50 PM   #5 (permalink)
New Member
 
Join Date: Jun 2009
Posts: 2
Default

What about if i'm getting the xml from a webService? it's in the common format :S
ivanhc7 is offline   Reply With Quote
Old 06-02-2009, 02:05 PM   #6 (permalink)
New Member
 
Join Date: Apr 2009
Posts: 5
Default

Quote:
Originally Posted by ivanhc7 View Post
What about if i'm getting the xml from a webService? it's in the common format :S
If you wrote the web service, change it to be correct; otherwise you're screwed. I guess you could write your own preparser for the xml to validate it, but that's a pain.
--FreeRide
FreeRideSoftware is offline   Reply With Quote
Reply

Bookmarks

Tags
escaping, sequence, string, xml

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 328
22 members and 306 guests
@sandris, ADY, BrianSlick, dacapo, Dani77, Dattee, dre, HDshot, HemiMG, JasonR, MarkC, mer10, nibeck, prchn4christ, ryandb2, spiderguy84, themathminister, timle8n1, tomtom100, viniciusdamone, vogueestylee, vvenkatachallam
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,883
Threads: 89,229
Posts: 380,763
Top Poster: BrianSlick (7,129)
Welcome to our newest member, vvenkatachallam
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:11 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0