How to easily edit XML file content in Groovy/Grails?

Hi, How can I edit the content of an XML file using Groovy/Grails? I need to be able to edit/add/delete some lines in an XML file that a method generates. The method is made by someone at my work and produces a specific kind of XML file with prefilled content. However, I needed to change certain parts of it to fit my needs, and I was suggested to manually edit it in this case. How can I edit the XML file? We are using Groovy/Grails at work, so it has to be with that. Also, it would be nice if the edited XML file could be easily passed along in the code, to do other things with that instead of the original XML file. If it's any further help, then I am doing some End-to-end testing on it using Cucumber/Selenium, but probably not relevant.
1 Reply
JavaBot
JavaBot7mo ago
This post has been reserved for your question.
Hey @Steadhaven! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here. 💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.

Did you find this page helpful?