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 ;)