1

Topic: And about XPath questions in what forum to set?

Hello! A subject, actually. XPath 1.0 Is XPath expression: "/Project/Targets/Target/Groups/Group [string (GroupName) = $name]/preceding-sibling:: text ()". It does not work, and throws out an error, a pier I can not fulfill Other expression: "/Project/Targets/Target/Groups/Group [string (GroupName) = $name]" - fulfills norms, finds all tag Group at which is  GroupName with contents $name the First XPath-expression which does not work, should find a simple text node at the same level, as  tag Group which I precede tag Group in XPath-expression compilation directly I will tell, it is not strong, could and . The question in that is it XPath expression , or bugs in XML/XPath an engine?

2

Re: And about XPath questions in what forum to set?

3

Re: And about XPath questions in what forum to set?

4

Re: And about XPath questions in what forum to set?

Hello, Marty, you wrote: M> the Initial subtree: M> M>... M> <Group> M> <GroupName>github_misc_stm32_meekdai_stm32_grbl</GroupName> M> <Files> M>... M> </Files> M> </Group> M>... M> I Offer instead of "/Project/Targets/Target/Groups/Group [string (GroupName) = $name]/preceding-sibling:: text ()" to make somehow so "/Project/Targets/Target/Groups [Group/string (GroupName) = $name]/Files:: text ()" I.e. explicitly to select Grops/Files, but in such Groups at which is child Group with the necessary condition. It is not assured for the decision, at all I do not know XPath.

5

Re: And about XPath questions in what forum to set?

Hello, samius, you wrote: S> I Offer instead of S> "/Project/Targets/Target/Groups/Group [string (GroupName) = $name]/preceding-sibling:: text ()" S> to make somehow so S> "/Project/Targets/Target/Groups [Group/string (GroupName) = $name]/Files:: text ()" S> I.e. explicitly to select Grops/Files, but in such Groups at which is child Group with the necessary condition. It is not assured for the decision, at all I do not know XPath. Group with a condition to select - not a problem. It is possible to select also separate files in Files. The problem to find  type text directly ahead of necessary Group

6

Re: And about XPath questions in what forum to set?

Hello, Marty, you wrote: M> a problem to find  type text directly ahead of necessary Group Means, incorrectly understood the task.

7

Re: And about XPath questions in what forum to set?

Hello, Marty, you wrote: M> the Subject, actually. Found  online tester XPath of expressions - http://www.utilities-online.info/xpath/ My sample-/Project/Targets/Target/Groups/Group [string (GroupName) = ' github_misc_stm32_meekdai_stm32_grbl ']/preceding-sibling:: node () - I work norms blunted, function text () - like as returns purely the node text as a line, and it was necessary for me node (). At usage text () all tried online  or swore, or emptiness returned. With node () my parcer fulfilled and earlier, only returned previous that a tag, ignoring nodes of attributes, text nodes and . It was necessary a little , old behavior left as there is the option working with the installed flag (the blessing anywhere in such type did not use like), and a new behavior which all nodes , made on a default. Like works, all thanks

8

Re: And about XPath questions in what forum to set?

9

Re: And about XPath questions in what forum to set?