From: Noam P. <npo...@us...> - 2012-01-12 03:49:26
|
"chen ming" <cim...@ya...> writes: > I used "xml ed -d /descendant::node()/rec/child::node()[1] test.xml Okay, I see what's happening. The behaviour depends on whether libxml's keepBlanks option is set. xml ed has it off by default, but xml sel and xmllint have it on. You can get the other behaviour by passing the appropriate options: xml ed --pf (or -P) ... xml sel --noblanks (or -B) ... xmllint --noblanks ... Noam |