Click here to Skip to main content
15,949,741 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

My doubt is, can we use '/' inside the text part of an XML node like "2/23/1988". I need to send an XML to the server. That XML contains a "DOB" node and text part of the node is date string like "2/23/1988". Can we use the above format. Is there any problem....?
<DOB>2-23-1988</DOB>
Posted

Yes, you can use pretty much everything as inner text of the xml tag. unless you you are not having something "</" in your text. you need not escape '/' it in your xml code. For confirmation you may try that out in any xml editor which follows W3C specifications
 
Share this answer
 
Comments
Silju MC 29-Aug-11 4:24am    
Thank you for your information. 5+
yes, you can use '/' as inner text, in XML file.
 
Share this answer
 
v2
Comments
Silju MC 29-Aug-11 4:24am    
Thank you for your information. my 5+

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900