Forum Discussion
3 Replies
Sort By
- Raven25New Contributor
Hi richie !
Thanks for your reply! 😀 Good to know that it is linked to virt steps. However, I'm still clueless as to why these empty tags are created.. And more importantly; is there a way to prevent this?
We already started to remove them, but every time the project is saved, 10 more tags are created. It seems a bit of a hassle to remove these empty response contents every time.. Surely there must be an easier way 😅
- richieCommunity HeroHey Raven25,
I had a look at a couple of my projects' xml and it appears that the con:responseContent is generated when you create a virt.
Did you perhaps create some virts and then remove them? If this is the case, then this might leave behind empty responseContent elements like in your screenshot.
You do have to be careful editing a project .xml (very easy to corrupt the file), so if i were you, i'd take a copy (just to be safe) and then remove the EMPTY elements with value of <namespace:responseContent />
Strictly speaking these are empty elements and so shouldn't have any impact on the wellformedness of your project .xml if you remove them.
Once deleted, open your edited project .xml in an app with an xmlparser (IE, Notepad++ (if xmlplugin installed), xmlspy, etc.) If the edited .xml file opens successfully in the app without any errors reported, you'll have maintained the wellformdness and so the file should then open in ReadyAPI but with a slightly smaller file size.
One thing: is this the only content you want to remove? How many empty element rows are there? Depending on the size of your project file compared with the relative total byte size of empty elements, the risk of editing the project .xml file might not be worth the risk/effort/hassle.
Ok, that's all i got!
Cheers,
Rich- richieCommunity HeroOh! One thing. If you still have virts, but without any responseContent defined, then deleting the empty elements is NOT advisable! 😉
Related Content
- 6 years ago
- 4 years ago
- 4 years ago