Results 1 to 5 of 5
  1. #1
    irade92 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    5

    Reading XML from Internet

    Hi
    I am trying to collect data from a file from internet but not very successfull.


    From my form I am sending this parameter "oz10763" and button "Find" should go to this address https://api.zdravstvo.gov.mk/rest/prescriptions/oz10763 and all I see is a structure of XML file. I need to read the data from this file and put them into my table.
    Please help me.
    Thanks a lot

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Access can import xml file.

    You can save the xml to local file then import with the wizard or by opening the xml as an object in VBA and parsing each line as with a text file.

    You might find this thread of interest https://www.accessforums.net/forms/a...her-34620.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    irade92 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    5
    Thanks June 7. You are really master. The above code really helped me. With a little changing of the code I succeded to read the web page. Now I have to return what I have chosen from the data.
    this code I have to Post

    Post Request Example<?xml version="1.0" encoding="UTF-8"?><prescription><prescription_code>WE45927</prescription_code><exempt_from_participation>true</exempt_from_participation><pharmacist_facsimile>999999</pharmacist_facsimile><drug_fund_code>979376</drug_fund_code><quantity/></prescription>and the address where to post is: https://api.zdravstvo.gov.mk/rest/prescriptions/realize

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Sorry, if it's not in the referenced thread then outside my experience.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870

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

Similar Threads

  1. reading a web page
    By Norman Castle in forum Programming
    Replies: 0
    Last Post: 03-14-2013, 08:51 PM
  2. Reading values from tables
    By tweety in forum Forms
    Replies: 19
    Last Post: 02-17-2013, 08:57 AM
  3. Reading VBA code
    By ksammie01 in forum Access
    Replies: 11
    Last Post: 01-11-2013, 03:40 PM
  4. Reading row length
    By dnlhmpt in forum Import/Export Data
    Replies: 2
    Last Post: 01-31-2012, 07:47 AM
  5. Recommended Reading
    By Paul H in forum Access
    Replies: 1
    Last Post: 10-06-2011, 09:14 AM

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