Oxygen XML Editor
 
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] removing unecessary attributes


Subject: Re: [xsl] removing unecessary attributes
From: Michael Ludwig <mlu@xxxxxxxxxxxxx>
Date: Tue, 01 Apr 2008 19:17:39 +0200

Andreas Peter schrieb:
Hello list-users,

I have the following file. The problems are the missing quotes for the
attributes values and I need to remove all of the attributes.

$ whatis tidy tidy (1) - Utility to clean up and pretty print HTML/XHTML/XML

tidy -utf8 -numeric -asxml your.html > your.xml

In addition to the the tidy(1) utility already mentioned by Mukul, you
might want to try xmllint(1), which sometimes works better.

    $ whatis xmllint
    xmllint (1) - command line XML tool

xmllint --html --xmlout your.html > your.xml

Both are available for Windows, too.

Michael Ludwig


Current Thread
 
© 2002-2008 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy
This website was created & generated with <oXygen/> XML Editor
Keywords
xml