[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: removing unecessary attributes

Subject: Re: removing unecessary attributes
From: Michael Ludwig <mlu@xxxxxxxxxxxxx>
Date: Tue, 01 Apr 2008 19:17:39 +0200
Re:  removing unecessary attributes
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.