vb.net - How can I use a Resource as a string parameter? -


i want use xml-file dataset save changes.

datatable.readxml("c:\test.xml")  

works fine. want use xml resource file. tried

dim xmldoc string xmldoc = myapplication.my.resources.xmltestfile datatable.readxml(xmldoc) 

gives me error illigal sign in path , debugging shows me xmldoc empty.

could me working?

readxml requires filename not content

use

dim ds new dataset() using stringreader new stringreader(.......resource.here.......) ds = new dataset() ds.readxml(stringreader) end using dim dt datatable = ds.tables(0) 

Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -