• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
slagy maggie
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ajith.....i hope you can save my skin!!!
<manufacturer>johnson&johnson</manufacturer>
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
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
A:

regds.
- satya

[This message has been edited by Madhav Lakkapragada (edited June 05, 2001).]
 
slagy maggie
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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">
]>
<rootelem>...</rootelem>
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???
thanks
Rupa
 
slagy maggie
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry i actually ment giving amp; and #38; behaves differently
but the browser has eaten up ...hope this helps
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic