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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:13:31+00:00 2026-06-14T00:13:31+00:00

The XPath builder is available from the Sitecore ‘developer center’. Start > Developer Center

  • 0

The XPath builder is available from the Sitecore ‘developer center’. Start > Developer Center > Tools > XPath Builder. I’m using sitecore query notation.

I would like to search for media items over a certain filesize –

/sitecore/media library//*[@size > 99999]

This does a string compare on the size, so the ‘greater than’ doesn’t work as expected.

/sitecore/media library//*[Number(@size) > 99999]

This works as expected, but trips up when it encounters an item with no filesize – for example folders. I’ve tried a few permutations to filter out these items without success. How can I fix this?

  • 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-14T00:13:32+00:00Added an answer on June 14, 2026 at 12:13 am

    There may be something cleaner, but this works:

    /sitecore/media library//*[@size!='']/.[Number(@size) > 99999]
    

    Note that the line below does not work, since and in XPATH does not have the “short-circuit” functionality that && has in C#.

    /sitecore/media library//*[@size!='' and Number(@size) > 99999]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The following Sitecore query works for me in the XPath Builder: /sitecore/content/Home/CareAndTreatment//*[@Title='Birth Marks and
I am using http://xpath.online-toolz.com/tools/xpath-editor.php as an online XPath evaluator. I tried a few others
I'm using XPATH to select certain nodes from an XML document. The user is
Which XPath 2.0 libraries (apart from saxon ) are available, preferably for .Net?
In the starter kit using xpath builder, how do I get all the items
I am using the following code to query some XML with XPath I get
using xpath, how do you select the n-th option ? <select> <option></option> <option></option> </select>
I use the following XPATH Query to list the object under a site. ListObject[@Title='SomeValue']
I'm trying to parse an xml file using XPath DocumentBuilderFactory domFactory = DocumentBuilderFactory.newInstance(); domFactory.setNamespaceAware(true);
I am trying to run a distinct-values XPath using Saxon. Here is my code:

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.