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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T09:13:38+00:00 2026-06-04T09:13:38+00:00

This is the information that the XML string has. <?xml version=1.0 encoding=UTF-8?> <string xmlns=http://tempuri.org/>

  • 0

This is the information that the XML string has.

<?xml version="1.0" encoding="UTF-8"?>
<string xmlns="http://tempuri.org/">
<statusInfo><vendorClaimID>BRADY12478018AETNA</vendorClaimID>
<statusID>0</statusID><statusDescription>Unvalidated</statusDescription>
</statusInfo></string>

But this is how it comes in.. You will have to scroll to the right to see all of it.

'<?xml version="1.0" encoding="utf-8"?>'#$D#$A'<string xmlns="http://tempuri.org/">&lt;statusInfo&gt;&lt;vendorClaimID&gt;BRADY12478018AETNA&lt;/vendorClaimID&gt;&lt;statusID&gt;0&lt;/statusID&gt;&lt;statusDescription&gt;Unvalidated&lt;/statusDescription&gt;&lt;/statusInfo&gt;</string>'

I have loaded the string into a XMLDoc, but don’t know how to access the values easily from here..

var
doc: IXMLDocument;


doc := LoadXMLData(xmlString);

Thanks!

  • 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-04T09:13:39+00:00Added an answer on June 4, 2026 at 9:13 am

    You can use XPath to extract the values of the nodes

    Check this sample

    {$APPTYPE CONSOLE}
    
    {$R *.res}
    
    uses
      MSXML,
      SysUtils,
      ActiveX,
      ComObj;
    
    
    Const
    
    XMLStr=
    '<?xml version="1.0" encoding="UTF-8"?> '+
    '<string xmlns="http://tempuri.org/">'+
    ' <statusInfo>'+
    '  <vendorClaimID>BRADY12478018AETNA</vendorClaimID> '+
    '  <statusID>0</statusID><statusDescription>Unvalidated</statusDescription> '+
    ' </statusInfo>'+
    '</string> ';
    
    procedure Test;
    Var
      XMLDOMDocument  : IXMLDOMDocument;
      XMLDOMNode      : IXMLDOMNode;
    begin
      XMLDOMDocument:=CoDOMDocument.Create;
      XMLDOMDocument.loadXML(XmlStr);
      XMLDOMNode := XMLDOMDocument.selectSingleNode('//string/statusInfo/vendorClaimID');
      if XMLDOMNode<>nil then
        Writeln(Format('vendorClaimID %s',[String(XMLDOMNode.Text)]));
    
      XMLDOMNode := XMLDOMDocument.selectSingleNode('//string/statusInfo/statusID');
      if XMLDOMNode<>nil then
        Writeln(Format('statusID %s',[String(XMLDOMNode.Text)]));
    
      XMLDOMNode := XMLDOMDocument.selectSingleNode('//string/statusInfo/statusDescription');
      if XMLDOMNode<>nil then
        Writeln(Format('statusDescription %s',[String(XMLDOMNode.Text)]));
    end;
    
    
    begin
     try
        CoInitialize(nil);
        try
          Test;
        finally
          CoUninitialize;
        end;
     except
        on E:EOleException do
            Writeln(Format('EOleException %s %x', [E.Message,E.ErrorCode]));
        on E:Exception do
            Writeln(E.Classname, ':', E.Message);
     end;
     Writeln('Press Enter to exit');
     Readln;
    end.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Obviously it's early days, I do not know whether this is information that is
I want to get the information that is returned by this query from SolrNet:
I have this java servlet that grabs information from a form, I need to
I have this small class called City that simply holds some information about a
This is what I have at the moment. <h2>Information</h2>\n +<p>(.*)<br />|</p> ^ that is
I'm creating an XML schema that stores information about houses. I want to store
I need to create a PHP script that receives XML input via an HTTP
We have a certain database that has some employee information, and I just wrote
I have a column of type 'nvarchar(max)' that should now hold XML information instead
I'm sure this information is available in the C# spec, but I thought I'd

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.