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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:05:10+00:00 2026-05-31T23:05:10+00:00

I have an extensive menu in which I would like to search for and

  • 0

I have an extensive menu in which I would like to search for and manipulate menu items quickly. Is it possible to search for a list of ids, lets say something along the lines of

list contains ("0,57,19,22,30,31,32,33,34,36,45,53,63,58,59,23,24,25,26,27,28,29,37,38,39,40,41,42,43,44,46,47,48,50,51,52,54,55,16", "45")

example node:

<li class="standby" id="id61">

as of right now I am using a loop in cfscript

        if(listLen(IdsToRemove.List,",") GT 1){
            for(i=1;i lte listLen(IdsToRemove.List);i=i+1) {
                valueToFind="li[@id='" & listGetAt(IdsToRemove.List,i) & "']";
                findNode=XmlSearch(MyNavigation.myMenu,"//" & valueToFind);
                Instance.UDFLibrary.XmlDeleteNodes(XmlDocument=MyNavigation.myMenu,Nodes=findNode);
            }
        }

I am really hoping to search for a list and delete all the nodes at once. thoughts?

  • 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-05-31T23:05:11+00:00Added an answer on May 31, 2026 at 11:05 pm

    You can use contains() in xpath expressions to search through a string. If you treat that string as a list you can skip the outer loop.

    var ids = ListChangeDelims(IdsToRemove.List, ',', ' '); // commas to spaces
    var nodes = XmlSearch(MyNavigation.myMenu,"//li[contains(' " & ids & " ', concat(' ', substring(@id,3), ' '))]");
    

    ids would be something like ” 0 57 19 ” and concat(' ', substring(@id,3), ' ') would be something like ” 0 ” so the expression above is essentially a long-winded version of ListFind() using all but the first 2 characters of the nodes id.

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

Sidebar

Related Questions

After an extensive search I have been unable to find any information on this
I have a resource dictionary inside which I have a context menu: <ResourceDictionary x:Class=MyApp.Components.MyContextMenu
I have a JLabel inside which I have saved my ImageIcon like this: ImageIcon
I have a menu which is stylized through jquery and CSS so the structure
I'd like to create an addon for Firefox that would enable me to search
I have found several extensions for MediaWiki which allow you put a Google search
I have developed an extension for Safari which uses a context menu. In the
I'm technically savvy but don't have extensive experience with servers/daemons (I'm a Windows guy,
I have a webforms page that makes quite extensive use of AJAX. There are
I have a simple unit test case (extensive question here ) on a configuration

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.