[augeas-devel] augtool is choking on xml - help!

Dominic Cleal dcleal at redhat.com
Fri Feb 17 11:35:51 UTC 2012


On 17/02/12 11:24, Biltong wrote:
> I can't see what I am doing wrong. Can anyone help?
>
> $ cat /tmp/web.xml
> <?xml version="1.0" encoding="ISO-8859-1"?>
[snip]
> augtool> print /augeas/files/tmp/web.xml/error
> /augeas/files/tmp/web.xml/error = "parse_failed"
> /augeas/files/tmp/web.xml/error/pos = "43"
> /augeas/files/tmp/web.xml/error/line = "1"
> /augeas/files/tmp/web.xml/error/char = "43"

Does the file have Windows/DOS style line endings?  Try dos2unix?

-- 
Dominic Cleal
Red Hat Consulting
m: +44 (0)7817 878113




More information about the augeas-devel mailing list