Re: [xml] getting the output of string() in the xmllint shell

2019-12-23 Thread Gökçe Aydos
On 2019-12-21 22:17, Liam R. E. Quin wrote> ... > It would be worth adding, > --xmlns:a=" [uri here] " > to xmllint. That would be a good solution. Another solution could be to have the *setrootns* from the shell available as an option. > In the meantine you can use, e.g. > //*[local-name()

Re: [xml] getting the output of string() in the xmllint shell

2019-12-21 Thread Gökçe Aydos
On 2019-12-21 09:28, Daniel Veillard wrote: > On Fri, Dec 20, 2019 at 12:46:23PM +0100, Gökçe Aydos wrote: >> I use xmllint in my command-line scripts. The default mode of xmllint >> does not support namespaces, so when I must deal with XML files with >> namespaces I use the --shell mode of xmllint

Re: [xml] getting the output of string() in the xmllint shell

2019-12-21 Thread Daniel Veillard via xml
On Fri, Dec 20, 2019 at 12:46:23PM +0100, Gökçe Aydos wrote: > I use xmllint in my command-line scripts. The default mode of xmllint > does not support namespaces, so when I must deal with XML files with > namespaces I use the --shell mode of xmllint. That sounds ... wrong > I noticed that the

[xml] getting the output of string() in the xmllint shell

2019-12-20 Thread Gökçe Aydos
I use xmllint in my command-line scripts. The default mode of xmllint does not support namespaces, so when I must deal with XML files with namespaces I use the --shell mode of xmllint. I noticed that the xpath command in the shell behaves differently than the *xmllint --xpath* on the command line.