I have a string which has an xml inside. I want to write this to a Document in java so i can later retrieve the attributes within it and store them in other strings. Could someone provide me with an example of this please?
I have a string which has an xml inside. I want to write this
Share
Some more details are necessary for a proper answer but you can start with the DocumentBuilder like this:
You now have a Document from which you can access your XML attributes etc.