Re: Passing xml documents between Java and a C library

  • From: "John J. Boyer" <john.boyer@xxxxxxxxxxxxxxxxx>
  • To: programmingblind@xxxxxxxxxxxxx
  • Date: Sat, 7 Aug 2010 20:26:06 -0500

Thanks. This sounds helpful. We are still working out the architecture 
of BrailleBlaster and figuring out what Java libraries or packages we 
will need. We are definitely using Java 6.

John

On Sat, Aug 07, 2010 at 07:06:53PM -0500, Jay Macarty wrote:
> If you are using java 6 as your platform, there is an XmL binding API 
> called JAX-B which you might find helpful for this. JAX-B allows you to 
> convert a java object into an XML string or to map an XML string to a java 
> object. We use this at work a lot because we are receiving text based 
> messages from queues and the message body is XML.
> 
> In JAX-B you add java annotations to a java bean style data object to tell 
> it what the XML element and/or attribute names should be when the object is 
> converted to XML.
> 
> ----- Original Message ----- 
> From: "John J. Boyer" <john.boyer@xxxxxxxxxxxxxxxxx>
> To: <programmingblind@xxxxxxxxxxxxx>
> Sent: Saturday, August 07, 2010 6:52 PM
> Subject: Passing xml documents between Java and a C library
> 
> 
> >For the BrailleBlaster project, the editor and user interface are
> >written in Java. The braille knowledge needed for translating annd
> >formatting is in the C library liblouisutdml. The two communicate by
> >method calls and xml documents. We would like to pass the documennts
> >back and forth inn a memory buffer, if possible. However, some
> >doccuments can be quite large, up to 6 megabytes. After UTDML (Unified
> >Tactile Document Markup Language) has been added to them they can be 20
> >MB or more. Such large buffers seem impractical, so we will probably
> >have to pass documents of that size as files. However, we would like to
> >be able to pass smaller documents, say up to 100k, in memory. How can
> >this best be done on the Java end? liblouisutdml expects xml documents
> >in UTF-8 in an array of 8-bit charactors.
> >
> >Thanks,
> >John
> >
> >-- 
> >John J. Boyer; President, Chief Software Developer
> >Abilitiessoft, Inc.
> >http://www.abilitiessoft.com
> >Madison, Wisconsin USA
> >Developing software for people with disabilities
> >
> >__________
> >View the list's information and change your settings at
> >//www.freelists.org/list/programmingblind
> >
> 
> __________
> View the list's information and change your settings at 
> //www.freelists.org/list/programmingblind

-- 
John J. Boyer; President, Chief Software Developer
Abilitiessoft, Inc.
http://www.abilitiessoft.com
Madison, Wisconsin USA
Developing software for people with disabilities

__________
View the list's information and change your settings at 
//www.freelists.org/list/programmingblind

Other related posts: