xmlxsltxml-formatting

Looking To Return Just The Skeleton of my XML


Is there a quick way to generate just the 'skeleton' of an xml document? I'm not sure how else to say it, but here is an example of what I need...

Say I had this (probably badly formed) XML document...

<ImATag> 
     <SoAmI>
          *some random data...*
          <OneMore>
               *some more random data...*
          </OneMore>
     </SoAmI>
</ImATag>

And I wanted to return this...

<ImATag> 
     <SoAmI>
          <OneMore>
          </OneMore>
     </SoAmI>
</ImATag>

Is there a fast way of doing it? Program, website, etc? My document is a couple thousand pages, so I can't just go through it manually. I guess I really just want to remove all data within the tags and return just the outline of the document.


Solution

  • I ended up just using Oxygen. Does this function for me.