This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

escapre character for xml

 
fang eve
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am generating a XML file, using java function. I have encounter some problem. When i insert "(" ,")" these 2 character, my XML format will be wrong. How can i escape this character? thanks
 
shan sundaram
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, Where the problem(XML or java program)?
If the problem in handling this string in java use,
String str = "\"(\" ,\")\"";
 
fang eve
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i guess is java. my code is


My guess is because of the () for the content.add.. Am i correct?
 
shan sundaram
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes
 
Paul Clapham
Sheriff
Pie
Posts: 20958
31
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. Parentheses are not special characters in any way in XML. So you should investigate your problem again to find out what it really is.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic