File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

special characters eg" Johnson&Johnson"

slagy maggie
Ranch Hand

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

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.
karthik.
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

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

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
Ajith Kallambella
Sheriff

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.
Thanks!


Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: special characters eg" Johnson&Johnson"