title: how do I wrap bytes into XML for to feed the XML to webservice
body: <p>We need to implement the following solution (hope, the diagram gives a grasp of the whole picture):
  <img src="https://i.stack.imgur.com/VrKkW.jpg" alt="enter image description here">
  there will be <strong>Hardware Readers</strong> (vendor-proprietary) <strong>reading</strong> some <strong>stuff</strong> and <strong>sending</strong> it <strong>to ReaderAdapter</strong> (ReaderAdapters will be installed 1 per computer). As there can be many HardwareReaders sending info to ReaderAdapters, we assume <strong>ReaderAdapter</strong> should be implemented as <strong>thin client</strong>, i.e. contain no business logic - just <strong>wrap the stream of bytes</strong> received from HardwareReader-s <strong>into XML and feed to WebService</strong>. The WebService will contain all the processing business logic.</p>
  
  <p><strong>So my question is</strong>: how do I wrap bytes into XML? what do you think concerning the solution in whole, perhaps someone has alternative/better suggestions?</p>
  
  <p><strong>Thanks in advance</strong>, any help/hints upon the point would be highly appreciated.</p>