|
|
|||
xml processing
Hi
I have .net app which scans data from barcode and send it to java web app in the form of xml. Now the problem is we can not standardize xml document as there is some difference in data being sent from client to client. So problem we are facing is we have to write custom code in java for every customer who buy our software. We want to generalize the xml processing code so that it can be used for all client. Please give me your out put. There is handheld device which just scan barcode and send that data in the form of xml and it is a .net application. 4 Replies
It's a little weird to see that you have a .NET app but "dont have any access to .net code." You've actually got a huge array of Java and XML options. Wander around XML Apache and you'll stumble over several.
But the real question is this: it sounds less like you need data binding and more like you just need to set an XML DTD or Schema or Relax NG Schema to constrain your data. Writing custom code for every client doesn't make sense; at worst, you should have one set of code to handle a particular XML format. Once you've got that format set, then, yes, you can use data binding or a similar data binding API to pull your data into Java without lots of custom code. Does that make sense? -Brett
---
Brett McLaughlin O'Reilly Media, Inc. "I teach" email: brett@oreilly.com phone: 214.771.8758 twitter: @oreillybrett |
|||
|