Comma Separated Values (CSV) Conversion Support
 
The CSV conversion features are provided to support the conversion of CSV data into a XML representation.
 
CSV Conversion Features
 
Developers have access to both a programming API and a visual tool to convert CSV file to XML.
 
Launching the CSV Parser Tool
 
To launch the CSV Parser tool, select the “CSV Parser” menu located in the “Utilities” menu as seen here:
 
 
 
The CSV Parser tool will be displayed as seen here:
 
 
 
CSV Parser Tool Features
 
The CSV Parser tool is used to convert CSV files into XML data. To convert a file, type the path to a CSV file or simply drag and drop one or more CSV files from the file system onto the tool.  For each CSV file, an XML Text Editor will display the converted XML data as seen here:
 
 
 
To better understand the XML data format that the CSV Parser generates, a screen shot of the XML Text Editor with the DOM Viewer is shown above.
 
 
CSV Parser Remote API
    
The CSV Parser component provides an XML-RPC API that may be used by external applications and scripts to convert CSV files. The XML-RPC server is automatically started at launch and runs on port 31000.
 
The webSdk.xml configuration file defines the <sdk-xmlrpc> element which has an auto-start and default port number for the XML-RC server.
 
You can also manually start and stop the XML-RPC server through the XML-RPC menu item found on the menu bar as seen here:
 
 
 
 
 
 
 
 
 
The following method signature list relates to the CSV Parser XML-RPC support:
 
  1. 1.public String convertCSVFileToXML (String csvPathString, String xmlPathString)
 
Visit http://altmobile.com/pdf/Remote%20API.pdf for a complete list of our remote APIs.
 
Client programs using the XML-RPC APIs can be found in the ALTMobile/macos/rpc directory and are implemented using Applescript. A simple .NET client demo is also available in the ALTMobile/dotNet directory.
 
 
CSV Parser Java API
        
The class CSVUtil with the namespace com.altmobile.platform.util.csv implements the following conversion-related method signatures:
 
  1. 1.public static void parseToXML (String csvPath, StringWriter outStringWriter)