Re: [xml] Is there a solution to have newline delimited output for xmllint ?

2018-03-20 Thread Nick Wellnhofer

On 20/03/2018 14:14, gilles.que...@sputnick.fr wrote:
I post many snippets with xmllint on stackoverflow and unix.stackexchange.com, 
but many times I'm stuck with this nice tool when it comes to retrieve N > 1 
text node, because the output is not newline delimited (unlike xmlstarlet).


It's not clear what exactly you're talking about, but I guess this is about 
the `--xpath` option and the bug you already posted:


https://bugzilla.gnome.org/show_bug.cgi?id=740827

I agree that printing text nodes without a separator is rather useless and I 
always found it annoying that the output isn't terminated with a newline at 
all. In this case, I'm not too concerned about backward compatibility and I'd 
simply change the `--xpath` output to always print a newline after each node, 
text or not. But maybe other people want to weigh in.


Nick
___
xml mailing list, project page  http://xmlsoft.org/
xml@gnome.org
https://mail.gnome.org/mailman/listinfo/xml


[xml] Is there a solution to have newline delimited output for xmllint ?

2018-03-20 Thread gilles . quenot

Hi,

I post many snippets with xmllint on stackoverflow and 
unix.stackexchange.com, but many times I'm stuck with this nice tool 
when it comes to retrieve N > 1 text node, because the output is not 
newline delimited (unlike xmlstarlet).


Is there any workaround to have such delimiter in the output ?

Can it be a feature request ? It would be a killer feature !

Best regards, Gilles Quenot (France)
___
xml mailing list, project page  http://xmlsoft.org/
xml@gnome.org
https://mail.gnome.org/mailman/listinfo/xml