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

Tektronix TM504 4 Slot Power Module - Modular Mainframe
$35.0
Tektronix TM504 4 Slot Power Module - Modular Mainframe pictureNATIONAL INSTRUMENTS SCXI 1001 12 SLOT RACK SCXI MAINFRAME USED
$100.0
NATIONAL INSTRUMENTS SCXI 1001 12 SLOT RACK  SCXI MAINFRAME USED pictureHP HEWLETT PACKARD E1401B HIGH POWER MAINFRAME W/ E1406A E1676B &E1668A
$59.54
HP HEWLETT PACKARD E1401B HIGH POWER MAINFRAME W/ E1406A E1676B &E1668A pictureAGILENT HP 66000A (66001A) MAINFRAME, (4) 5060-3386 MODULES & MPS KEYBOARD
$1495.0
AGILENT HP 66000A (66001A) MAINFRAME, (4) 5060-3386 MODULES & MPS KEYBOARD pictureTektronix TLA7016 Main Frame with 6 Modules of (1) TLA7BB4 and (5)TLA7AA4
$4299.99
Tektronix TLA7016 Main Frame with 6 Modules of (1) TLA7BB4 and (5)TLA7AA4 picture






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