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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:35:11+00:00 2026-06-18T12:35:11+00:00

I am needing a little help with filtering my xml based on a property

  • 0

I am needing a little help with filtering my xml based on a property

I have the XML in the following format:

<?xml version="1.0" encoding="utf-8" ?>
<root id="-1">
    <LandingPage id="1067" parentID="1050" level="2" 
        writerID="0" creatorID="0" nodeType="1066" template="1073" 
        sortOrder="0" createDate="2013-02-04T14:29:39" 
        updateDate="2013-02-07T11:08:27" nodeName="About" 
        urlName="about" writerName="Pete" creatorName="Pete" 
        path="-1,1050,1067" isDoc="">
      <hideInNavigation>0</hideInNavigation>
    </LandingPage>
</root>

What I need to do is filter these elements where hideInNavigation = 0

I have tried the following:

[@isDoc and @hideInNavigation ='0']

(I need the @isDoc attribute too) but realised this would only work if hideInNavigation was an attribute of the LandingPage tag so I tried

value['hideInNavigation'='0']

but this didn’t seem to do anything either. After much searching for the answer, I haven’t come up with anything so was wondering if it is possible

  • 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-18T12:35:13+00:00Added an answer on June 18, 2026 at 12:35 pm

    Supposing the current context was the <root> element, you could select the LandingPages with hideInNavigation = 0 with:

    LandingPage[hideInNavigation = '0']
    

    If you would share your XSLT, I van give you more specific guidance on how to amend it for this particular case.

    And was the @isDoc test in your first example something you wanted? Do you want to filter LandingPages that have an isDoc attribute and a hideInNavigation value of 0?

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

Sidebar

Related Questions

I am needing some help with SQL syntax. Say I have a members table,
I'm needing help with a little instatiating problem... This is the code i'm using
Just needing a little help here. To start off, here's what my HTML looks
I have a little problem about needing Activity/Application everywhere... More precisely I have classes
With the exception of needing an XML file, is there a benefit to using
I have a little game written in C#. It uses a database as back-end.
I am using Python 2.7.3 btw Hi all, I have a little problem. The
I have done a little research here on SO and haven't found exactly what
I find myself needing to learn a little bit of JSP for my Software
I have an application that has so far been in English only. Content encoding

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.