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
Linas M.Subject: EDI to XML: Invalid URI error
Author: Linas M.
Date: 27 Mar 2008 10:51 AM
Originally Posted: 27 Mar 2008 10:50 AM
Hello,

I evaluate .NET XMLConverters, mainly for un/edifact -> XML conversion with C#. Unfortunately I get an exception:

DDTek.XmlConverter.ConverterException: Error during conversion: Invalid URI: The format of the URI could not be determined.

Here is my code (pretty much the same as in examples):

ConverterFactory factory = new ConverterFactory();
Converter toXML = factory.CreateConvertToXml("converter:EDI");

Source ediFile = new UriSource("ediSample.edi");
Result xmlFailas = new UriResult("sample.xml");
toXML.Convert(ediFailas, xmlFailas); <-- throws an exception

I have a feeling this is pretty simple error, but I haven't managed to find any helpful info yet. Thank you in advance for your help ;)

Postnext
Ivan PedruzziSubject: EDI to XML: Invalid URI error
Author: Ivan Pedruzzi
Date: 27 Mar 2008 11:28 AM
Hi Linas,

Please use try full path to reference the EDI file

Source ediFile = new UriSource("c:\\myfolder\\ediSample.edi");

Ivan

Posttop
Linas M.Subject: EDI to XML: Invalid URI error
Author: Linas M.
Date: 27 Mar 2008 11:37 AM
Yeah it was simple :/ Thanks a lot! :)

 
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.