Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to remove empty tags from XML

853752Apr 7 2011 — edited Aug 10 2011
Hello,

I have a XML file which contains some empty tags and some values with "?". I need to remove all empty tags and tags which have a value "?".

Sample Data:

<a>
<b></b>
<c> Hello </c>
<d>world ?</d>
<e>oracle</e>
</a>

Expected result:

<a>
<c> Hello </c>
<e>oracle</e>
</a>

Thank you for your time.

Thanks,

Edited by: 850749 on Apr 7, 2011 6:25 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 7 2011
Added on Apr 7 2011
7 comments
5,402 views