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

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



It works for me using Augeas 0.10.0:

augtool> print /files/home/rpinson/bas/test.xml/
/files/home/rpinson/bas/test.xml
/files/home/rpinson/bas/test.xml/#declaration
/files/home/rpinson/bas/test.xml/#declaration/#attribute
/files/home/rpinson/bas/test.xml/#declaration/#attribute/version = "1.0"
/files/home/rpinson/bas/test.xml/#declaration/#attribute/encoding = "ISO-8859-1"
/files/home/rpinson/bas/test.xml/!DOCTYPE = "web-app"
/files/home/rpinson/bas/test.xml/!DOCTYPE/PUBLIC
/files/home/rpinson/bas/test.xml/!DOCTYPE/PUBLIC/#literal[1] = "-//Sun
Microsystems, Inc.//DTD Web Application 2.3//EN"
/files/home/rpinson/bas/test.xml/!DOCTYPE/PUBLIC/#literal[2] =
"http://java.sun.com/dtd/web-app_2_3.dtd";
/files/home/rpinson/bas/test.xml/web-app
/files/home/rpinson/bas/test.xml/web-app/#text[1] = "\n "
/files/home/rpinson/bas/test.xml/web-app/display-name
/files/home/rpinson/bas/test.xml/web-app/display-name/#text = "Tomcat
Documentation"
/files/home/rpinson/bas/test.xml/web-app/#text[2] = " "
/files/home/rpinson/bas/test.xml/web-app/description
/files/home/rpinson/bas/test.xml/web-app/description/#text = "\n
Tomcat Documentation.\n "


What version are you using?


Raphaël



On Fri, Feb 17, 2012 at 12:24 PM, Biltong <biltong fastmail fm> 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"?>
>
> <!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 fastmail fm
>
> --
> http://www.fastmail.fm - The professional email service
>
> _______________________________________________
> augeas-devel mailing list
> augeas-devel redhat com
> https://www.redhat.com/mailman/listinfo/augeas-devel



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