Convert String to XML file in Java.

Hello Friends,

In the previous example we have seen how to convert XMl to String. Now this example will do the exact opposite of the previous one i.e. convert from String to XML. We will now try to convert the String stream into an XML file object. Here is the simple code for that.

Here, in the above code there are some commented data, once you uncomment it you can see the changes in the xml file. Hope this will help you.

Regards,

Nikhil Naoghare.

1 Comment

  1. Krishna Chourasiya

    Good One

    Reply

Leave a Comment

Your email address will not be published. Required fields are marked *