This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes XML and Related Technologies and the fly likes special characters eg Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "special characters eg" Johnson&Johnson"" Watch "special characters eg" Johnson&Johnson"" New topic

special characters eg" Johnson&Johnson"

slagy maggie
Ranch Hand

Joined: Feb 20, 2001
Posts: 35
can anyone please help me out with this
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

Joined: Mar 06, 2001
Posts: 1209
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.
slagy maggie
Ranch Hand

Joined: Feb 20, 2001
Posts: 35
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

Joined: Jun 03, 2000
Posts: 5040

just answered it in your other post.
kindly DONOT post the same msg in more than one posts.
- satya

Take a Minute, Donate an Hour, Change a Life
Ajith Kallambella

Joined: Mar 17, 2000
Posts: 5782
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.

Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
jQuery in Action, 2nd edition
subject: special characters eg" Johnson&Johnson"