M
mikeb
I'm trying to use XML to send data to / from a scanner (ppc). Our current
vb netcf app connects directly with the sqlserver - however some scanners
have no network access and the SQLserver is in another location - the host
application developers are asking us to give the scanners options to
import/export data via xml files - the xml files will be sent via archaic
means. They are letting us spec the xml files.
For XML being THE thing, it sure is proving to be a pain getting this all
working. Basically, I our netcf app is working under this scenario:
To receive data from sql server into ppc
(SQLserver data)->SQLStoredProcedure -->PPCdataset->SQLceDB
To send updated data from ppc into sql server
SQLceDB--> SQLStoredProcedure->(SQLserver data)
Similarly I need to remove the stored procedure call and replace it with XML
import/exports.
Receive data from xml into ppc
XMLfile -->PPCdataset->SQLceDB
Send updated data from ppc into xml
SQLceDB--> XMLfile
I have been able to do a test by reading the sql server data into a dataset
via the stored procedure (using a data adapter) - and then writing that out
to XML [ ds.WriteXml("test.xml") ]
Ok, that gave me a test XML file to play with - but I can't even read that
XML file in to a dataset now. Trying to use:
Dim XMLreader as New XmlTextReader(New StreamReader("test.xml")
dsXML.ReadXmlSchema(XMLreader)
dsXML.ReadXml(XMLreader)
Are there any sample programs out there that contain a sample XML file that
gets read into a dataset, and then maybe even exports an xml file containing
modified data?
I'm trying to do my homework - but dang. It just seems that if XML is the
thing these days, it would be easier than this. Flat ascii files are sure
easier and even make more sense to the naked eye. ??
Thanks for any guidance.
vb netcf app connects directly with the sqlserver - however some scanners
have no network access and the SQLserver is in another location - the host
application developers are asking us to give the scanners options to
import/export data via xml files - the xml files will be sent via archaic
means. They are letting us spec the xml files.
For XML being THE thing, it sure is proving to be a pain getting this all
working. Basically, I our netcf app is working under this scenario:
To receive data from sql server into ppc
(SQLserver data)->SQLStoredProcedure -->PPCdataset->SQLceDB
To send updated data from ppc into sql server
SQLceDB--> SQLStoredProcedure->(SQLserver data)
Similarly I need to remove the stored procedure call and replace it with XML
import/exports.
Receive data from xml into ppc
XMLfile -->PPCdataset->SQLceDB
Send updated data from ppc into xml
SQLceDB--> XMLfile
I have been able to do a test by reading the sql server data into a dataset
via the stored procedure (using a data adapter) - and then writing that out
to XML [ ds.WriteXml("test.xml") ]
Ok, that gave me a test XML file to play with - but I can't even read that
XML file in to a dataset now. Trying to use:
Dim XMLreader as New XmlTextReader(New StreamReader("test.xml")
dsXML.ReadXmlSchema(XMLreader)
dsXML.ReadXml(XMLreader)
Are there any sample programs out there that contain a sample XML file that
gets read into a dataset, and then maybe even exports an xml file containing
modified data?
I'm trying to do my homework - but dang. It just seems that if XML is the
thing these days, it would be easier than this. Flat ascii files are sure
easier and even make more sense to the naked eye. ??
Thanks for any guidance.