BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 09-27-2010, 09:25 AM   #1 (permalink)
New Member
 
Join Date: Aug 2010
Model: 9000
PIN: N/A
Carrier: orange
Posts: 11
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default XML parser doesnt fundtion properly with & sign

Please Login to Remove!

hi all

im using parser on xml file but for some reason im not getting the correct answer meaning :

><entry><entryName>Om&amp;om</entryName><phoneNumber>5555555</phoneNumber></entry>

this is what i get from the server but when i present the name im geeting it cut in the middle. "om" instead of "Om&om".

so the problem is in my parsing and not in the way im getting it from the server.

does anyone know why it can be?...
Offline  
Old 09-27-2010, 11:20 AM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

You should be able to provide an EntityResolver for your Handler to resolve these HTML entities into the appropriate text character.
Offline  
Old 09-27-2010, 11:30 AM   #3 (permalink)
New Member
 
Join Date: Aug 2010
Model: 9000
PIN: N/A
Carrier: orange
Posts: 11
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Dougsg38p View Post
You should be able to provide an EntityResolver for your Handler to resolve these HTML entities into the appropriate text character.
hi can you please explain/example?
Offline  
Old 09-27-2010, 12:55 PM   #4 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

Actually, my memory is faulty. EntityResolver does not do this for you.

Take a look at this post here:

http://www.oxygenxml.com/archives/xm.../msg00842.html

Last edited by Dougsg38p : 09-27-2010 at 12:59 PM.
Offline  
Closed Thread


Thread Tools

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

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

National Semiconductor MM5290J-20 16Kx1 Vintage Dynamic RAM 16384 Memory Ceramic
$1.99
National Semiconductor MM5290J-20 16Kx1 Vintage Dynamic RAM 16384 Memory Ceramic picture21) Asst Integrated Circuit IC's- CPU's, RAM, PLCC, Volt Reg, A/D Converter, +++
$3.0
21) Asst Integrated Circuit IC's- CPU's, RAM, PLCC, Volt Reg, A/D Converter, +++ pictureGE Fanuc IC610CPU105B CPU W/1K Ram Module
$125.0
GE Fanuc IC610CPU105B CPU W/1K Ram Module picture3 pcs CY7C1019CV 33-12VC CYPRESS 128K x 8 Static RAM
$8.9
3 pcs CY7C1019CV 33-12VC CYPRESS 128K x 8 Static RAM pictureDell Vostro 200 PC Desktop Intel Pentium Dual 2.0 GHz 4GB RAM 500GB HDD WIN 7PRE
$13.99
Dell Vostro 200 PC Desktop Intel Pentium Dual 2.0 GHz 4GB RAM 500GB HDD WIN 7PRE picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.