I have a document and I would like to add attributes to one of the elements.
After converting the document to a string (using documentToXMLString) it looks like this:
but I want it to look like this:
<request attribute1=“111” attribute2=“222”>
How would I add attribute1 and attribute2 to the request element?
Any help would be appreciated.