|
From: <jz...@xi...> - 2015-04-14 08:08:37
|
It is a limitation but could be fixed some what easily.... ----- Original Message ----- From: Favaro Andrea To: Cc: Sent:Mon, 13 Apr 2015 08:56:21 +0200 (CEST) Subject:Re: [Vtd-xml-users] Xpath expression does not work as intended I think that it will be more clear with an example: This is my starting XML: After removing some tags: I need to remove these empty rows between and . Thanks,Andrea ------------------------- DA: jz...@xi... [1] A: "Favaro Andrea" , vtd...@li... [3] 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 To: 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 Links: ------ [1] mailto:jz...@xi... [2] mailto:and...@in... [3] mailto:vtd...@li... [4] mailto:and...@in... [5] mailto:vtd...@li... |