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 8541251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T11:47:23+00:00 2026-06-11T11:47:23+00:00

I am trying to get only first record from loop, Or how can I

  • 0

I am trying to get only first record from loop, Or how can I stop this loop after first record?

<x:parse var="taggedData" xml="${taggedLoad}"/>
<x:forEach var="item" select="$taggedData//item" varStatus="status">
    <h4>
        <a href="/go/video/index.jsp?videoId=<str:substring start="5"><x:out select="$item/guid"/></str:substring>" onclick="javascript:loadBCvideo(<str:substring start="5"><x:out select="$item/guid"/></str:substring>); return false;"><x:out select="$item/title" /></a>
    </h4>
    <p>
         <x:out select="$item/description" escapeXml="false" />
    </p>

  • 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-11T11:47:24+00:00Added an answer on June 11, 2026 at 11:47 am

    You could use:

    <xsl:for-each select="(//*[local-name()='item'])[position() &lt;= 1]">
    

    or:

    def result = records.children().find {
        domain -> domain.@domain_name == targetDomain
    }
    
    result.children().each {
        // do stuff
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to get the sum(comprate) for only max(effdt) having max(id) from the
I am trying to get excel to follow patterns grabbing information from cells only,
I am trying to get row count from the following query. I get only
I am encountering a problem with string formatting while trying to get only the
I am trying the following query and get only zero results (I am supposed
I'm trying to figure out how to get only the last two files within
I'm trying to compare two arrays and get only the values that exist on
I'm stuck trying to get a WinInet HTTP POST via SSL using ONLY C.
I'm trying to get my team to think about only asking the database to
I am trying to get columns inside row. But I only want to get

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.