|
From: Favaro A. <and...@in...> - 2015-04-13 06:56:30
|
I think that it will be more clear with an example: This is my starting XML: <root> <tag1></tag1> <tag2></tag2> <tag3></tag3> <tag4></tag4> <tag5></tag5> </root> After removing some tags: <root> <tag1></tag1> <tag4></tag4> <tag5></tag5> </root> I need to remove these empty rows between <tag1> and <tag4>. Thanks, Andrea ----- Messaggio originale ----- Da: jz...@xi... A: "Favaro Andrea" <and...@in...>, vtd...@li... Inviato: Sabato, 11 aprile 2015 1:36:13 Oggetto: Re: [Vtd-xml-users] Xpath expression does not work as intended by empty row are you referring to empty elements with white space text elements? ----- Original Message ----- From: Favaro Andrea <and...@in...> To: <vtd...@li...> Cc: Sent: Fri, 10 Apr 2015 14:28:50 +0200 (CEST) Subject: [Vtd-xml-users] Xpath expression does not work as intended Hi guys, I've a problem using VTD-XML with this XPath expression: //text()[normalize-space(.)=''] If I try to select and evaluate this expression on a document with several empty rows between tags the AutoPilot returns no result. If I try the expression with a XML tool like Oxygen on the same document I have the correct answer. The general problem is that I need to delete the empty rows left after removing some tags. Any idea? Thanks, Andrea |