Jump to content

xml processing

pat1975's Photo
Posted Nov 05 2009 06:23 AM
4948 Views

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.

Tags:
1 Subscribe


4 Replies

 : Feb 05 2010 06:22 AM
Thanks for the external links about XML. I have been looking to increase my knowledge and they proved very helpful. Thanks.
+ 1
  bmclaugh's Photo
Posted Nov 16 2009 05:07 PM

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
 : Nov 05 2009 05:53 PM
Thanks for your help, but we dont have any access to .net code and whatever option we had is on java code. Is there any option on java side. I havent dont much of a xml processing so I might be missing something. But all your feedback will be appreciated.

Thanks
+ 1
  Innovimax-MoZ's Photo
Posted Nov 05 2009 08:57 AM

It looks like the perfect use case for Data Binding http://msdn.microsof...28VS.80%29.aspx