• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

xml content issues

 
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
maulin.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic