File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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).
I agree. Here's the link:
subject: special characters eg" Johnson&Johnson"
It's not a secret anymore!