I am trying to develop a script which can parse all nodes/elements and its attributes of an XML.
I am able to read all nodes/elements but not attributes of it like
Can you please help me to going in parse all elements/attributes of XML given below
2011Nature Publishing Group, a division of Macmillan Publishers Limited. All Rights Reserved.
Biology Algal synchronized swimming
Suspensions of swimming algal cells form intricate mottled patterns that are governed by a complex interplay between light, gravity and fluid dynamics. The patterns (pictured) change with shifting lighting conditions, which could one day be exploited to improve the yields of bioreactors that use algae to produce biofuel.
Rosie Williams and Martin Alan Bees of the University of Glasgow, UK, studied the patterns formed by suspensions of Chlamydomonas augustae cells in response to changes in the orientation and intensity of the light source. As overhead white light grew brighter, dense groups of cells first moved apart, then drew closer together. When the algae were lit from below, brighter light resulted in a shortening and then a levelling off of distances between dense cell groups.
Such pattern changes could be exploited to increase the penetration of light and nutrients to cell suspensions, and to concentrate cells for harvesting.
J. Exp. Biol. 24, 2398–2408 (2011) 10.1242/jeb.051094
M. A. BEES
My VB script Code:
Set goFS = CreateObject( "Scripting.FileSystemObject" )
sDir = "C:work"
Set oXDoc = CreateObject( "Msxml2.DOMDocument" )
oXDoc.async = False
For Each oFile In goFS.GetFolder( sDir ).Files
WScript.Echo "looking at", oFile.Name
WScript.Echo "will load", oFile.Path
If oXDoc.load( oFile.Path ) Then
WScript.Echo "successfully loaded", oFile.Name
Set ndlEventId = oXDoc.documentElement.selectNodes("//*")
for i = 0 to ndlEventId.length-1
WScript.Echo ndlEventId(i).nodeName & " :: " &ndlEventId(i).text
If ndlEventId(i).text="" Then
Thanks in advance