This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes ajith!!!!!!!!!!!pleaseeee help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "ajith!!!!!!!!!!!pleaseeee help" Watch "ajith!!!!!!!!!!!pleaseeee help" New topic

ajith!!!!!!!!!!!pleaseeee help

slagy maggie
Ranch Hand

Joined: Feb 20, 2001
Posts: 35
ajith.....i hope you can save my skin!!!
how do i get this value with the ampersand in it
if i try<manufacturer>johnson&johnson</manufactgurer>
it gives a sax parser exception of an illegal character
please help!!!
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
Exactly what you are looking for....I haven't read thru
everything, but help yourself.

Q: I have content like <company>Harris & George</company> in my XML document -- will the "&"
be seen as a special character?

- satya

[This message has been edited by Madhav Lakkapragada (edited June 05, 2001).]

Take a Minute, Donate an Hour, Change a Life
slagy maggie
Ranch Hand

Joined: Feb 20, 2001
Posts: 35
Thankyou all.....
This is what i found out
if i give <Manufacturernamed>johnson&johnson<MnaufacturerName>
It extracts the value as johnson
but if i give <ManufacturerName>johnson&johnson<Manufacturername>
it extracts johnson&johnson
why is this hapenning...and also if we dont want our users who are support staff to enter something as complicated as johnson&johnson.....what is it we can do to substitute this value when ever we see a "&"....can we do this in the DTD....
<!DOCTYPE rootelem [
<!ENTITY name "value">
i CAM ACROSS this....but this is for a specific tag
if i wanted to generalize this thro the whole doc what can i do???
slagy maggie
Ranch Hand

Joined: Feb 20, 2001
Posts: 35
sorry i actually ment giving amp; and #38; behaves differently
but the browser has eaten up ...hope this helps
I agree. Here's the link:
subject: ajith!!!!!!!!!!!pleaseeee help
It's not a secret anymore!