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

  • Home
  • SEARCH
  • 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 5971673
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:32:56+00:00 2026-05-22T20:32:56+00:00

Can someone please provide me the xml query for retrieving the value of sessionId

  • 0

Can someone please provide me the xml query for retrieving the value of sessionId from the below response:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:createUserResponse xmlns:ns2="http://www.musicthp.com"     
                    isNewUser="false"
                    profileId="32109" 
                    sessionId="ryIlb+E5yj7FReA2w96uag=="
                    success="true">
<duration>316</duration>
</ns2:createUserResponse>

I tried using /ns2:createUserResponse/@sessionId and seems its not returning anything.
I want to use this query in the XPATH extractor of jmeter.
My requirement: I need to retrieve sessionId value using xpath extractor and use that value in the successive requests.

Thanks for your help in advance

  • 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-22T20:32:58+00:00Added an answer on May 22, 2026 at 8:32 pm

    Have you set JMeter to use namespaces?

    JMeter has been reported to have problems with namespaces. If fiddling with settings won’t help, here is a workaround for the root element

    /*/@sessionId
    

    Workaround for any element in a namespace is to use *[local-name() = 'element'] instead of prefix:element

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

Sidebar

Related Questions

Can someone please provide an example of using set_bound() method from Test::MockObject module? Can
Can someone please provide an example of creating a Java ArrayList and HashMap on
Can someone please provide a simple example of how to consume a REST service
Can someone please derive a concrete example from the following: http://www.urdalen.com/blog/?p=210 ..that shows how
Can someone please provide a description of TCB algorithm?
Can someone please provide links to any paper/reference that talks about disconnected components in
Can someone please provide some insight into the the following verbosegc lines on a
Can someone please provide code (any language will do, but I write the .Net
Can someone please provide an example on how to use plural forms in a
I wonder whether someone can help me please. I have the following xml file

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.