from my research I have been able to build a function in VBA for parsing XML and exposing values as I need to. However, there is one value that is eluding me.
<osgb:topographicMember>
<osgb:TopographicArea fid='osgb1000000347753568'>
<osgb:featureCode>10053</osgb:featureCode>
<osgb:version>4</osgb:version>
<osgb:versionDate>2006-03-15</osgb:versionDate>
<osgb:theme>Land</osgb:theme>
<osgb:calculatedAreaValue>46.099150</osgb:calculatedAreaValue>
<osgb:changeHistory>
<osgb:changeDate>2001-03-09</osgb:changeDate>
<osgb:reasonForChange>New</osgb:reasonForChange>
</osgb:changeHistory>
<osgb:descriptiveGroup>General Surface</osgb:descriptiveGroup>
<osgb:descriptiveTerm>Multi Surface</osgb:descriptiveTerm>
<osgb:make>Multiple</osgb:make>
<osgb:physicalLevel>50</osgb:physicalLevel>
<osgb:polygon><gml:Polygon srsName='osgb:BNG'>
<gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>290996.130,92420.290 290998.010,92415.010 291000.000,92415.720 291005.770,92417.770 291003.890,92423.040 291000.000,92421.660 290996.130,92420.290 </gml:coordinates>
</gml:LinearRing>
</gml:outerBoundaryIs>
</gml:Polygon>
</osgb:polygon></osgb:TopographicArea>
</osgb:topographicMember>
The value that I am trying to obtain is fid = ‘osgb10000000347753568’
I can get and return TopographicArea (using xChild.baseName) , but not the fid.
Any ideas welcome!
If I understand the input correctly, you need to open
TopographicAreanode and get itsFidattribute.textor.NodeValueproperties (whichever suits best depending on the node data type) instead of node.baseName, i.e. you should use something like this:Perhaps I’m wrong with the notation, but the key point here you should use
.textor.NodeValueproperties. VBA Watch Window for XMLDOC added will be very helpful. Good luck!