1 Attachment(s)
mport Pubmed Xml (only Selected Child Nodes) To Access
Dear friends,
I have cross posted m question at different forums, links of which are posted above. Below is my problem in detail.
I have an XML file which is downloaded from ncbi.nlm.nih.gov/pubmed
I am trying to import this XML file to Access by using VBA. I know Excel VBA but I have never worked with Access VBA, so I am finding it difficult to get the solution. There are few problems which I have facing while I am trying to do it manually.
- When I am trying to Import it, Access pops up a message saying DTD is prohibited. This error can be following these steps. Open XML file in notepad -> delete 2nd line from the XML file -> save it
- Then if the previous error is eliminated by deleting the 2nd line from XML file, then once the import starts, it pops up a message saying “Not all of your data has been successfully imported”. I don’t have any idea about this.
- Now once the data is imported with the error message, on left hand side many tables are being created (where as if I try to open this file in Excel it creates only one file), Don’t have any idea about this. Also no 2 tables have common column.
What I am trying to do.
a) Import XML file downloaded from Pubmed site to Access, in a single table.
b) There are more than 100 child nodes in the XML file (which varies from file to file); I don’t need to import all the fields to Access.
c) Only few files are required to be imported such as (Abstract, Article day, Article Month, Article year, Affiliation, Journal title, PMID)
Hope I have not confused with my words, please reply if you need any clarifications.
XML file to be imported Attachment 11568
Thanks & Regard,
Manish