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

Biltong biltong at fastmail.fm
Fri Feb 17 11:24:27 UTC 2012


I can't see what I am doing wrong. Can anyone help?

$ cat /tmp/web.xml 
<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>
  <display-name>Tomcat Documentation</display-name>
  <description>
     Tomcat Documentation.
  </description>
</web-app>

$ xmlstarlet val /tmp/web.xml 
/tmp/web.xml - valid

$ augtool
augtool> set /augeas/load/xml/lens "Xml.lns"
augtool> set /augeas/load/xml/incl /tmp/web.xml
augtool> load

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"
/augeas/files/tmp/web.xml/error/lens =
"/usr/share/augeas/lenses/dist/xml.aug:133.10-135.60:"
/augeas/files/tmp/web.xml/error/message = "Syntax error"

-- 
  Biltong
  biltong at fastmail.fm

-- 
http://www.fastmail.fm - The professional email service




More information about the augeas-devel mailing list