• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

special characters  RSS feed

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when i try to get the value
<manufacturername>johnson&johnson<manufacturername>
&:this i have included to represent johnson&johnson
and when i try extracting the value
i get only johnson
why does this happen
 
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by slagy maggie:
when i try to get the value
<manufacturername>johnson&johnson<manufacturername>
&:this i have included to represent johnson&johnson
and when i try extracting the value
i get only johnson
why does this happen


hi,
I don't beleive this, i clearly remeber having written:
<manufacturername>johnson & johonson<manufacturername>
:-)
sorry for the blunder.
karthik.
 
slagy maggie
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
karthik i know what is going on....what ever we are typing is getting converted by the browser.....okay you meant
johnson "&" johnson ....disregard the quotes.... or johnson
"&" johnson when i try giving "&" it does not work
but if i give "&" it works...and moreover is there any parser which will understand all this without us going thru the trouble of writing hash blah blah...is there anyway in the <DOCTYPE Entity.....> where you can specify all this
 
slagy maggie
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i dont believe this....once again.....it did it
okay why is it that it works for "ampersand hash 38 ; "
and not for "ampersand amp ;"
 
Would you like to try a free sample? Today we are featuring tiny ads:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!