Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

special characters eg" Johnson&Johnson"

 
slagy maggie
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anyone please help me out with this
<manufacturer>johnson&johnson</manufacturer>
how do i get this value with the ampersand in it
if i try<manufacturer>johnson&johnson</manufactgurer>
it does not work
please help
 
Karthik Guru
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
okay after 2/3 days of serious XML cert prep , i can answer this one :-)..just kidding.
use ,
manufacturer>johnson & johnson</manufacturer>
hope it works. & is a predefined xml entity reference.
karthik.
 
slagy maggie
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks...i tried it out but it gives me a SAX parser exception of illegal character....can you suggest anything else
Thanks once again
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

slagy:
just answered it in your other post.
kindly DONOT post the same msg in more than one posts.
regds.
- satya
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Satya has already answered this question with a reference to an excellent URL. Check out the other post.
I am going to close this duplicate thread. Feel free to continue the discussion in the other thread.
Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic