S
Shem
Hi Folks,
I have amanged to extract the data from a dataconnection into an xml format
but I cannot seem to parse it.
Code:
Dim myDataAdapter
Dim dcEmployees
Dim iNodes
'Departments is the name of SHarepoint dataconnection
Set myDataAdapter = XDocument.DataAdapters("Departments")
myDataAdapter.Query
Set dcEmployees = XDocument.GetDOM("Departments")
'here i can get the dcEmployees.xml
'now get a list of nodes within xml
Set iNodes = dcEmployees.SelectNodes("//dsf
epartments")
At this point nothing happens, I cannot get a list of nodes, but if I run
this in VB (where I load the xml string from data connection) this works OK
when I do a selectnodes. I had an issue the other day with regards to the
namespace but this seems to have corrected itself, I think. But I think I
should still be able to parse this data
I have no idea why this is not working and would really love to find out how
I can get round this.
Thanks
Allan
I have amanged to extract the data from a dataconnection into an xml format
but I cannot seem to parse it.
Code:
Dim myDataAdapter
Dim dcEmployees
Dim iNodes
'Departments is the name of SHarepoint dataconnection
Set myDataAdapter = XDocument.DataAdapters("Departments")
myDataAdapter.Query
Set dcEmployees = XDocument.GetDOM("Departments")
'here i can get the dcEmployees.xml
'now get a list of nodes within xml
Set iNodes = dcEmployees.SelectNodes("//dsf
At this point nothing happens, I cannot get a list of nodes, but if I run
this in VB (where I load the xml string from data connection) this works OK
when I do a selectnodes. I had an issue the other day with regards to the
namespace but this seems to have corrected itself, I think. But I think I
should still be able to parse this data
I have no idea why this is not working and would really love to find out how
I can get round this.
Thanks
Allan