EDN Admin
Well-known member
I am trying to return XML, not a XMLDocument, for the purpose of initializing a SQL column with and XML data type. I am definitely a newbie to XML but have googlecarpotunnel and need some help.
I get the error Value of string cannot be converted to system.web.ui.webControls.xml on the GetSearchXML=thisXML.OuterXML I have tried InnerXML.
Probably a better way to do this so open to any suggestions.
Function GetSearchXML() As Xml<br/>
Dim thisXML As New XmlDocument<br/>
thisXML.InnerXml = "<SearchCondition>" _<br/>
& "<SearchWOGETAStart></SearchWOGETAStart>" _<br/>
& "<SearchWOGETAEnd></SearchWOGETAEnd>" _<br/>
& "<SearchSiteNumber></SearchSiteNumber> " _<br/>
& "<SearchJobID></SearchJobID> " _<br/>
& "<SearchWOID></SearchWOID> " _<br/>
& "<SearchJobContact></SearchJobContact> " _<br/>
& "<SearchWOType></SearchWOType> " _<br/>
& "<SearchWorkTitle></SearchWorkTitle> " _<br/>
& "<SearchSiteSt></SearchSiteSt>" _<br/>
& "<SearchSiteCity></SearchSiteCity> " _<br/>
& "<CountryList></CountryList> " _<br/>
& "<ShowTop></ShowTop>" _<br/>
& "<DropDownListProjects></DropDownListProjects>" _<br/>
& "</SearchCondition>"<br/>
<br/>
GetSearchXML = thisXML.OuterXml<br/>
End Function <hr class="sig Jay
View the full article
I get the error Value of string cannot be converted to system.web.ui.webControls.xml on the GetSearchXML=thisXML.OuterXML I have tried InnerXML.
Probably a better way to do this so open to any suggestions.
Function GetSearchXML() As Xml<br/>
Dim thisXML As New XmlDocument<br/>
thisXML.InnerXml = "<SearchCondition>" _<br/>
& "<SearchWOGETAStart></SearchWOGETAStart>" _<br/>
& "<SearchWOGETAEnd></SearchWOGETAEnd>" _<br/>
& "<SearchSiteNumber></SearchSiteNumber> " _<br/>
& "<SearchJobID></SearchJobID> " _<br/>
& "<SearchWOID></SearchWOID> " _<br/>
& "<SearchJobContact></SearchJobContact> " _<br/>
& "<SearchWOType></SearchWOType> " _<br/>
& "<SearchWorkTitle></SearchWorkTitle> " _<br/>
& "<SearchSiteSt></SearchSiteSt>" _<br/>
& "<SearchSiteCity></SearchSiteCity> " _<br/>
& "<CountryList></CountryList> " _<br/>
& "<ShowTop></ShowTop>" _<br/>
& "<DropDownListProjects></DropDownListProjects>" _<br/>
& "</SearchCondition>"<br/>
<br/>
GetSearchXML = thisXML.OuterXml<br/>
End Function <hr class="sig Jay
View the full article