[xml] xmllint --format and output encoding



Hi,

in the combination of the --format option and the --encode option
(for iso-8859-1) the --format option doesn't seem to have any effect
any more:

(morus morus:2377 ~) cat test.xml
<?xml version="1.0" encoding="iso-8859-1"?> 
<bla><blub>abc</blub></bla>
(morus morus:2378 ~) xmllint --format test.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<bla>
  <blub>abc</blub>
</bla>
(morus morus:2380 ~) xmllint --format --encode iso-8859-1 test.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<bla><blub>abc</blub></bla>

The attached patch should fix that.

greetings
        Morus

-- 
Th. Morus WALTER · Manager Content & Data Development
xipolis.net GmbH & Co. KG
Schellingstraße 35 · 80799 München
www.xipolis-base.de · www.mr-check.de · www.xipolis.net

Attachment: patch
Description: Binary data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]