+ Reply to Thread
Results 1 to 2 of 2

Invalid at the top level of the document XML parse in VBA

  1. #1
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Invalid at the top level of the document XML parse in VBA

    Hi Guys,

    I want to get value from MID node:

    "mid":3.6126
    my code is (website is a true adress):

    Please Login or Register  to view this content.
    strXML =
    {"table":"A","currency":"dolar amerykański","code":"USD","rates":[{"no":"220/A/NBP/2017","effectiveDate":"2017-11-14","mid":3.6126}]}
    and error is raised:

    "Invalid at the top level of the document"

    What is wrong within this strXML?

    Please help,
    Jacek Antek

  2. #2
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Invalid at the top level of the document XML parse in VBA

    Ok,

    problem is that Excel is importing from this site instead of XML format - JSON format.
    It is possible to set up Excel headers to read XML directly?

    Please help,
    Jacek

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. VBA: XML 'Data at the root level is invalid. Line 1, position 1 Error
    By Livvi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-20-2017, 01:17 PM
  2. Invalid merge field message although I am using right field names in word document
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-17-2015, 07:59 AM
  3. Posisible to Disable Save As at Program level (not workbook level)??
    By brian6464 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-29-2014, 02:49 PM
  4. Bill of Materials conversion from multi level to single level
    By susmitpatel in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-11-2013, 12:53 AM
  5. How to parse a file path, omiting a document filename
    By Raisedwell in forum Excel General
    Replies: 8
    Last Post: 07-16-2010, 04:20 PM
  6. Replies: 3
    Last Post: 05-13-2009, 11:51 PM
  7. Using macro to convert single level BOM to Multi Level BOM
    By andrew_chong in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-07-2006, 04:57 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1