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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:42:48+00:00 2026-05-25T06:42:48+00:00

Variable resp has following value. System.Xml.Linq.XElement resp – How do I get value of

  • 0

Variable resp has following value.
System.Xml.Linq.XElement resp – How do I get value of Statuscode in C# ?

Thanks!

**Value of resp is ( Did not include whole xml it’s pretty long):

<?xml version="1.0" encoding="utf-8" ?>
<fiAPI xmlns="http://integration.fiapi.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xsi:schemalocation="http://integration.fiapi.com fiDocumentInquiry.xsd">
  <fiHeader Version="2.0">
    <Service Version="1.0" Name="FiservArchiveAccessAPI">
      <DateTime>2011-08-29T02:27:21-0-4:00</DateTime>
      <UUID>12345678-1234-1234-1234-123456789012</UUID>
    </Service>
    <Security>
      <AuthenticationMaterial>
        <PrincipalPWD></PrincipalPWD>
      </AuthenticationMaterial>
      <PrincipalID></PrincipalID>
    </Security>
    <Client Version="1.3">
      <VendorID>Vendor Name</VendorID>
      <AppID>CWS</AppID>
      <OrgID>44444451</OrgID>
      <SessionID>88888888-4444-4444-4444-123456789012</SessionID>
    </Client>
    <DataSource>
      <URI />
    </DataSource>
  </fiHeader>
  <Response TypeOfResponse="DocumentInquiryRs" TotalRows="2">
    <Status>
      <StatusCode>0</StatusCode>
      <Severity />
    </Status>
    <RequestEcho TypeOfRequest="DocumentInquiryRq" RequestID="123" Echo="True">
  • 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-25T06:42:48+00:00Added an answer on May 25, 2026 at 6:42 am

    You could use the Descendants method. Because your XML has a namespace make sure to include it when querying:

    class Program
    {
        static void Main()
        {
            var resp = XElement.Load("test.xml");
            var statusCode = resp
                .Descendants("{http://integration.fiapi.com}StatusCode")
                .FirstOrDefault();
            if (statusCode != null)
            {
                Console.WriteLine(statusCode.Value);
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The variable strCSSClass often has a value but sometimes is empty. I do not
Variable : Stack<Entity> entityStack = new Stack<Entity>(); It has following values : sub_sub_sub1 sub_sub1
The variable checkedones is not passing to the AJAX.Updater. The item.value is reporting a
The variable filepath which is a string contains the value Música . I have
I have a perl variable $results that gets returned from a service. The value
How can I unset variable? For example, PHP has an unset($var) function.
VARIABLE: ... UNARYOP: 'not' Expression; // unary operation BINARYOP: 'or' VARIABLE; Expression : (NIL
$alltext variable contents this code inside: <li>sometext</li><li>sometext</li> <li>sometext</li><li>sometext</li> How do I get each <li>...</li>
records variable contains following data [(38177492.733055562, 38177482.886388876), (39370533.190833323, 40563588.018611118), (34598340.198888883, 33405299.966944441), (40563586.926666655, 35791393.990277782), (35791394.635833345,
Variable scope in JS is confusing the hell out of me. In the following

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.