cancel
Showing results for 
Search instead for 
Did you mean: 

java code to convert XML file to ISO XML format

Former Member
0 Kudos

Hi Experts,

I need to convert an XML file to ISO Xml format using Java code.I dont have any idea about the ISO XML format.I searched but what i am getting is ISO is an encoding in XML.

It will be very helpful if any one can give me a sample ISO XML file, and any way around to carry out the required conversion.

Thanks .

Anika

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

For ISO encoding you need the XML file to be converted with below providing the encoding paramter as ISO. for e.g.

<?xml version="1.0" encoding="ISO-8859-1"?>

instead of

<?xml version="1.0" encoding="UTF-8"?>

this can be possible with using XML encoders.

Refer XML encoding--> http://www.w3schools.com/XML/xml_encoding.asp

Refer Java Code with uasage of XMLEncoder

http://java.sun.com/j2se/1.4.2/docs/api/java/beans/XMLEncoder.html

Thanks

Swarup

VijayKonam
Active Contributor
0 Kudos

You can use XML anaymizer bean or the message transform bean in the adapter module. Search in help.sap.com. All that you need is to proved a key value saying ISO-8559-1!!

VJ

Answers (0)