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

The Archive Base Latest Questions

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

Running into trailing semicolon issues while using a Double Eval XPath expression in conjunction

  • 0

Running into trailing semicolon issues while using a “Double Eval” XPath expression in conjunction with MS InfoPath to capture the contents of repeating structures. I need to eliminate the trailing semicolon from the result. Here is the expression:

eval(eval(Repeater, 'concat(my:Node1DropDown, ";")'), "..")

The results of the above expression can be seen in “Node1Eval” in the below XML. The expression would be great except for the trailing semicolon in the result.

<?xml version="1.0" encoding="UTF-8"?><?mso-infoPathSolution solutionVersion="1.0.0.4" productVersion="14.0.0" PIVersion="1.0.0.0" href="file:///C:\Documents%20and%20Settings\Chris\Local%20Settings\Application%20Data\Microsoft\InfoPath\Designer3\e2c7e5c6af2049e9\manifest.xsf" ?><?mso-application progid="InfoPath.Document" versionProgid="InfoPath.Document.2"?>
<my:myFields xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2012-08-28T16:45:10" xmlns:xd="http://schemas.microsoft.com/office/infopath/2003" xml:lang="en-us">
<my:Master_Section>
    <my:group2>
        <my:Repeater>
            <my:Node1DropDown>Lasers</my:Node1DropDown>
            <my:Node2DropDown>Lemon</my:Node2DropDown>
        </my:Repeater>
        <my:Repeater>
            <my:Node1DropDown>Sharks</my:Node1DropDown>
            <my:Node2DropDown>Apple</my:Node2DropDown>
        </my:Repeater><my:Repeater>
            <my:Node1DropDown>Monkeys</my:Node1DropDown>
            <my:Node2DropDown>Lemon</my:Node2DropDown>
        </my:Repeater>
    </my:group2>
    <my:Node1Eval>Lasers;Sharks;Monkeys;</my:Node1Eval>
    <my:Node2Eval>Lemon;Apple;Lemon;</my:Node2Eval>
</my:Master_Section>
</my:myFields>

I would guess that the addition of some logic relating to the position of the returned item could help eliminate the trailing semicolon.

The real crux of the issue is that the semi-colon is always there; I need the Node1Eval field to be empty until it actually has a value to display. If not then it will mess with a [text()] XPath expression test I am trying to run.

  • 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-11T09:14:18+00:00Added an answer on June 11, 2026 at 9:14 am

    Denoting your

    eval(eval(Repeater, ‘concat(my:Node1DropDown, “;”)’), “..”)

    by X, it would be

    substring(X, 1, string-length(X) – 1)

    giving eventually

    substring(eval(eval(Repeater, ‘concat(my:Node1DropDown, “;”)’), “..”);
    1, string-length(eval(eval(Repeater, ‘concat(my:Node1DropDown, “;”)’),
    “..”)) – 1)

    Update:
    If you search by “substring(eval(eval(“, you can confirm that it is quite frequently used for repeating controls in Infopath, for ex., this discussion

    I need the Node1Eval field to be empty until it actually has a value
    to display

    In Infopath Designer, on your rule action (or default value), wherever you insert and edit your Xpath expression, press fx > double-click on Repeater > press Filter data… button and insert whtever condition you wish.
    For the case, of Node1DropDown being non-blank, it will probably result in

    eval(eval(Repeater[Node1DropDown != ""], 'concat(my:Node1DropDown, ";")'), "..") 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am running into a parse error while using xlwt. Simple formula's like SUM()
Keep running into When using the multi-mapping APIs ensure you set the splitOn param
I'm running into issues when I try to instantiate a new DefaultMembershipProvider (system.web.providers). DefaultMembershipProvider
Been running into a problem ever since I started using rvm to manage my
After running into some un-handled exceptions when using Response.Redirect() , I read it up,
After running into this question today: Grails query not using GORM I wonder if
Running into some weird issues with didReceiveAuthenticationChallenge. If I do something like: NSMutableURLRequest *request
Running into the strangest problem on iPhone using jQuery with my WebViewController. I have
I am running into issues trying to use large objects in R. For example:
I am running into the following error using Pear Mail: Notice: Error in sending

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.