about

xmlrem is a web application for the intelligent fast removal of tags and attributes from xml code (so html as well).
Removal can be done in two ways: by listing tags/attributes you want to delete or by listing tags/attributes you want to keep.

help

The xmlrem application is designed to remove tags and attributes from xml (html) code in a fast and intelligent way. It can help to clean code when common find/replace is insufficient. The application finds and removes tags containing any attributes and attributes containing any values. Output can be made fancier by indentation.

Syntactically correct code should be provided in order to get a proper result. An important step is to have all tags closed by the > mark. On the other hand, quotes in attributes' values aren't necessary. The application is case-sensitive (at least in this version).


example of pros

original code find/replace xmlrem
<body>
  <div>
    <div id="main">
      <a href="index.html">
        link
      </a>
    </div>
    <div style="float:right;">
      right
    </div>
  </div>
  <div>
  </div>
</body>
<body>

    <div id="main">
      <a href="index.html">
        link
      </a>
    </div>
    <div style="float:right;">
      right
    </div>
  </div>
  
  </div>
</body>
<body>
  <a href="index.html">
    link
  </a>
  right
</body>

what, how, ..

Quick tips are displayed in the left panel, when moving the mouse over items in the application.

It is possible to leave some fields empty in order to affect all tags or attributes. It can be used for getting rid of all tags, removing all attributes from a tag, or removing an attribute from all tags.

It is possible to use more than one function simultaneously (though concurrent usage of remove and keep makes no sense). Functions are evaluated from left to right as displayed on the page and then from top to bottom.


usage

  • putting a large amount of data from MS Excel on the web; Excel generates html but with a lot of "mess"; xmlrem can clean the code so only table tags are left
  • using someone else's code; say, when you need to keep paragraphs, lists and tables, but you want to get rid of image and style attributes
  • cleaning code when using different WYSIWYG editors like TinyMCE, Google Docs, etc.