voitangintyyI
New Member
I am trying to fetch all \[code\]<Opening>\[/code\] tag whose \[code\]<PlanarGeometry>\[/code\]'s \[code\]<Polyloop>\[/code\] has number of \[code\]CartesianPoint\[/code\] > 4.Xml tag surface is child of another.\[code\]<Surface id="su-137" surfaceType="InteriorWall" constructionIdRef="ASHIW23" xmlns="http://www.gbxml.org/schema"> <Name>W-106-114-I-W-137</Name> <Opening id="su-137-op-1" openingType="NonSlidingDoor" constructionIdRef="MDOOR"> <Name>W-106-114-I-W-137-D-1</Name> <PlanarGeometry> <PolyLoop> <CartesianPoint><Coordinate>55.570238</Coordinate><Coordinate>92.571596</Coordinate> <Coordinate>0.000000</Coordinate></CartesianPoint><CartesianPoint> <Coordinate>55.570238</Coordinate><Coordinate>92.571596</Coordinate><Coordinate>6.666667</Coordinate> </CartesianPoint> <CartesianPoint> <Coordinate>55.570238</Coordinate><Coordinate>95.571596</Coordinate><Coordinate>6.666667</Coordinate></CartesianPoint> <CartesianPoint> <Coordinate>55.570238</Coordinate><Coordinate>95.571596</Coordinate><Coordinate>0.000000</Coordinate> </CartesianPoint> </PolyLoop> </PlanarGeometry>\[/code\]
I got little reference from this - Xpath to select only nodes where child elements exist? SO thread and got little help from below example.\[code\]book[author/degree]All <book> elements that contain <author> children that in turn contain at least one <degree> child.\[/code\]How can i achieve this using xPath or another way???
I got little reference from this - Xpath to select only nodes where child elements exist? SO thread and got little help from below example.\[code\]book[author/degree]All <book> elements that contain <author> children that in turn contain at least one <degree> child.\[/code\]How can i achieve this using xPath or another way???