Re: [xml] Is there a solution to have newline delimited output for xmllint ?
- From: Nick Wellnhofer <wellnhofer aevum de>
- To: gilles quenot sputnick fr, xml gnome org
- Subject: Re: [xml] Is there a solution to have newline delimited output for xmllint ?
- Date: Tue, 20 Mar 2018 16:45:42 +0100
On 20/03/2018 14:14, gilles quenot 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]