aspose file tools*
The moose likes XML and Related Technologies and the fly likes special characters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "special characters " Watch "special characters " New topic
Author

special characters

slagy maggie
Ranch Hand

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

Joined: Mar 06, 2001
Posts: 1209
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

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

Joined: Feb 20, 2001
Posts: 35
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 ;"
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: special characters