Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

xml content issues

Maulin Vasavada
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic