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 xml content issues 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 "xml content issues" Watch "xml content issues" New topic

xml content issues

Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1871
hi all,
i have primarily two problems.
1. i am getting newlines from the database in a filed value but how to put that in the xml?
when i view the file using vi editor it shows the newline (enter) where i have newline in the code but when i try to view the xml file using IE browser it doesn't show me the newline. all is in one line.
2. also, how to ignore the '&' symbol if that is there in my content for the xml file? we can't leave it as it is in the xml file as otherwise it is trying to look for entity and messes up. how to escape '&' character?
In general what are the special characters/symbols in the xml content that might cause problems. i don't have very complex data and i don't expect many weired characters from the input but i want to know the possibilities so that i can overcome the problem before it shows up

can anybody help me?
thank you.
Consider Paul's rocket mass heater.
subject: xml content issues
Similar Threads
backslash n is being escaped against my will
HTTP Headers
Making a JTextArea look good
XMLForest and special characters
Problems with newlines in text files