Results 1 to 2 of 2
  1. #1
    newbie30 is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Nov 2017
    Posts
    15

    Parsing XML from VBA

    Hello All,

    Hi have this xml response through the SOAP UI
    {"ResultCode":0,"ErrorText":"Registration entry details.","Details":"<Details><RegKey>3216788038</RegKey><ExpiryDate>2018-08-14T00:00:00.0000</ExpiryDate><OnStop>1</OnStop><AutoRenew>0</AutoRenew><Product>Touch 9</Product><SoftwareVersion></SoftwareVersion><EndUserName>Test Licence</EndUserName><LicenceKey>Key not used yet.</LicenceKey><TerminalNo>1</TerminalNo><BranchNo></BranchNo></Details>"}

    How do I parse this to retrieve the individual fields?

    I have tried the LOadxml but that doesnt work.

    If xmlDoc.Load("https://regtest.cessoftware.co.uk/RegistrationsService/ThreeRDatabaseGetReg.asmx") Then
    Dim doc2 As MSXML2.DOMDocument60
    Set doc2 = New MSXML2.DOMDocument60
    If doc2.LoadXML(xmlDoc.DocumentElement.Text) Then
    Dim value
    value = doc2.SelectSingleNode("//Details").Text


    Else
    'handle doc2.parseError here
    End If

    Am using VBA Access 2010.


    Could some one please help.


    Thanks
    Newbie

  2. #2
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,818
    If you have not solved this, see if this helps

    https://www.accessforums.net/showthread.php?t=73932

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Parsing and Replacing
    By sbcict92 in forum Modules
    Replies: 1
    Last Post: 10-14-2016, 07:27 PM
  2. Parsing Minutes
    By twildt in forum Forms
    Replies: 5
    Last Post: 01-24-2014, 03:58 PM
  3. Parsing a customer ID
    By Reaper in forum Programming
    Replies: 1
    Last Post: 03-06-2013, 10:07 AM
  4. parsing for addition
    By imintrouble in forum Reports
    Replies: 6
    Last Post: 10-27-2011, 03:00 PM
  5. XML Parsing Error
    By pb45102 in forum Access
    Replies: 2
    Last Post: 09-11-2011, 10:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums