This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "ajith!!!!!!!!!!!pleaseeee help" Watch "ajith!!!!!!!!!!!pleaseeee help" New topic
Author

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

slagy maggie
Ranch Hand

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

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?
A:

regds.
- satya

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


Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
slagy maggie
Ranch Hand

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

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
 
 
subject: ajith!!!!!!!!!!!pleaseeee help
 
Similar Threads
Xpath Requirement help!!
special characters eg" Johnson&Johnson"
Help With HQL Query
special characters
Displaying first n rows of XML data