Hello,
Thank you for the reply. I think I upgrade 10.0.2 from 10.0.0. directly. Unfortunately I do not have a machine which runs version 10.0.0., so attached is 9.0 version.
This is older version:
Search
$Version
"9.0 for Mac OS X x86 (64-bit) (December 12, 2012)"
pubMedHit[str_] := Module[{},
str3 = StringReplace[str, " " -> "+"];
str2 = "http://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=pubmed&\
term=%22" <> str3 <> "%22";
imp = Import[str2, "XML"];
count = Cases[imp, XMLElement["Count", _, _], 3];
count[[All, -1]][[1, 1]] // ToExpression
]
pubMedHit["Sternum"]
10735
This is newer version:
$Version
"10.0 for Mac OS X x86 (64-bit) (December 4, 2014)"
pubMedHit[str_] := Module[{},
str3 = StringReplace[str, " " -> "+"];
str2 = "http://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=pubmed&\
term=%22" <> str3 <> "%22";
imp = Import[str2, "XML"];
count = Cases[imp, XMLElement["Count", _, _], 3];
count[[All, -1]][[1, 1]] // ToExpression
]
pubMedHit["Sternum"]
$Failed