I have a sorce doc as the xmlstring below and i am trying to assign varables to the values in the xmlstring.
problem is that the varables are returning as nothing.
i.e: the expression 'var_for_DocNo = currAttr.Text' should be "123" but its comming up as nothing
any ideas on how i can bind these variables?
or do u need more info?
below is the xmlstring:
<Parameter><DocNo>VALUE="123"</DocNo><Type>VALUE="A"</Type><Day>VALUE="Mon"</Day></Parameter>
<Parameter><DocNo>VALUE="111"</DocNo><Type>VALUE="C"</Type><Day>VALUE="Tue"</Day></Parameter>
<Parameter><DocNo>VALUE="333"</DocNo><Type>VALUE="D"</Type><Day>VALUE="Wed"</Day></Parameter>
************************************************************
This is how im trying to assign the values after creating a list of parameter nodes:-
Set nodList = anXMLDoc.selectNodes("*//Parameter"
For Each Nod In nodList
Set Nod = anXMLDoc.selectSingleNode("//Doc_No"
Set Attr = Nod.Attributes.getNamedItem("VALUE"
var_for_DocNo = currAttr.Text
Set Nod = anXMLDoc.selectSingleNode("//Type"
Set Attr = Nod.Attributes.getNamedItem("VALUE"
var_for_Type = currAttr.Text
.....
problem is that the varables are returning as nothing.
i.e: the expression 'var_for_DocNo = currAttr.Text' should be "123" but its comming up as nothing
any ideas on how i can bind these variables?
or do u need more info?
below is the xmlstring:
<Parameter><DocNo>VALUE="123"</DocNo><Type>VALUE="A"</Type><Day>VALUE="Mon"</Day></Parameter>
<Parameter><DocNo>VALUE="111"</DocNo><Type>VALUE="C"</Type><Day>VALUE="Tue"</Day></Parameter>
<Parameter><DocNo>VALUE="333"</DocNo><Type>VALUE="D"</Type><Day>VALUE="Wed"</Day></Parameter>
************************************************************
This is how im trying to assign the values after creating a list of parameter nodes:-
Set nodList = anXMLDoc.selectNodes("*//Parameter"
For Each Nod In nodList
Set Nod = anXMLDoc.selectSingleNode("//Doc_No"
Set Attr = Nod.Attributes.getNamedItem("VALUE"
var_for_DocNo = currAttr.Text
Set Nod = anXMLDoc.selectSingleNode("//Type"
Set Attr = Nod.Attributes.getNamedItem("VALUE"
var_for_Type = currAttr.Text
.....