How to generate an XML below using JSP? and the client will get the XML when they open it using browser?
It might be too simple, but occasionally the companyName contain single apostrophe character that must be
changed into ' or contain any other special character that must be converted into Hexa, if not the XML will get error. Are there any function that will automatic convert the special character?
<Order orderid='AP001' date='25-02-02' CompanyName='Bon app''>
<Detail ProductCode='BL001" Quantity='12'/>
<Detail ProductCode='BL002" Quantity='9'/>