Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9162311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:10:47+00:00 2026-06-17T14:10:47+00:00

I am trying to fetch all <Opening> tag whose <PlanarGeometry> ‘s <Polyloop> has number

  • 0

I am trying to fetch all <Opening> tag whose <PlanarGeometry>‘s <Polyloop> has number of CartesianPoint > 4.

Xml tag surface is child of another.

<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>
 </Opening>              
</Surface>

I got little reference from this – Xpath to select only nodes where child elements exist? SO thread and got little help from below example.

book[author/degree]
All <book> elements that contain <author> children that in turn contain at least one <degree> child.

How can i achieve this using xPath or another way???

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T14:10:49+00:00Added an answer on June 17, 2026 at 2:10 pm

    I am trying to fetch all <Opening> tag whose <PlanarGeometry>‘s <Polyloop> has number of CartesianPoint > 4.

    Assuming the Surface element is your current context node then:

    gb:Opening[gb:PlanarGeometry/gb:Polyloop[count(gb:CartesianPoint) > 4]]
    

    The gb prefix needs to be mapped to the http://www.gbxml.org/schema namespace URI. This will select all Opening elements that contain at least one Polyloop with more than 4 CartesianPoint children.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to fetch all activity that has been performed on a branch
I am trying to fetch all jobs registered with the Quartz scheduler for a
I'm trying to query a table, fetch all records, and save the result as
I'm trying to fetch the most popular tags from all videos in my database
I'm getting Permission Denied all the time when I'm trying to fetch my location
I'm trying to fetch all mail headers from an inbox using imap_headers($imap_resource) which returns
From past few days I'm trying to develop a regex that fetch all the
I am trying to write a SQL query to fetch rows whose fields contain
I'm trying to fetch all expired objects for a model in my Django application.
I'm trying to fetch all records from my table on my site, I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.