We have a set of very old programs written in MS VC/C++. This reads a message from an MQ Series queue (now called WebSphere MQ) that contains an XML header of instructions followed by a document (all in the same message). The document can be binary (PCL, PDF, etc.) or just plain text. This is also written in C because it needed to be a Windows NT service (we're now on Windows 2000), etc.
At this time, our programs parses through this looking for the final end tag of the XML. It then knows where the XML ends and the document content begins.
We'd like to replace this with VB.Net. We know we can create the service part easily and parse the XML easily, but we still need to find the end of the XML and the start of the Document and store/read that into an XML structure and the remainder into a binary memory structure.
Can anyone describe how to do this in VB.Net and better yet, provide a sample of something made-up and small that might do this? We haven't seen this kind of binary data parsing/handling in VB.Net ever.
At this time, our programs parses through this looking for the final end tag of the XML. It then knows where the XML ends and the document content begins.
We'd like to replace this with VB.Net. We know we can create the service part easily and parse the XML easily, but we still need to find the end of the XML and the start of the Document and store/read that into an XML structure and the remainder into a binary memory structure.
Can anyone describe how to do this in VB.Net and better yet, provide a sample of something made-up and small that might do this? We haven't seen this kind of binary data parsing/handling in VB.Net ever.