XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Chris WhyteSubject: Programmatic CSV to XML conversion without the use of system files
Author: Chris Whyte
Date: 19 May 2005 12:47 AM
I am involved in developing a business process manager that handles large quantities of documents daily, and am evaluating Stylus Studio as a candidate for converting CSV (amongst other file types) to XML. It is written using J2EE so I was pleased to find that there is a Java API available.

After looking at the Java API and the available sample code, it seems that the method for programmatically converting from CSV to XML relies on the source message and target message to be contained within files in the file system. The messages going through our business process manager are contained in Java objects. Writing the messages from Java objects to system files seems like a bit of an overhead and is not really an option for us.

Am I right in assuming that writing to a file in the file system is the only way to use the Java API or am I missing something? Are there any plans for implementing this type of thing in the near future?

Regards,
Chris.

Posttop
Ivan PedruzziSubject: Programmatic CSV to XML conversion without the use of system files
Author: Ivan Pedruzzi
Date: 20 May 2005 12:06 AM
Hi Chris,

The adapter API accepts any object that implement the InputStream interface, see StylusFileFactory class.

StylusFile StylusFileFactory.createStylusFile(String url, InputStream is)

Hope this helps
Ivan Pedruzzi
Stylus Studio Team

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.