How do DataDirect XML Converters work?
DataDirect XML Converters work in two ways: • In Java or Microsoft .NET, files and resources are referred to using URI’s. The basic URI resolvers that are included with Java or .NET are capable of resolving file:, http:, ftp:, and a few other protocols. DataDirect XML Converters extend the ability of the default URI resolvers to understand a new file scheme, converter:, that can be used to convert non-XML files into XML on the fly and vice-versa. XSLT and XQuery provide standard-based ways to access XML files using the document() or doc() functions, but by default they can only resolve the files and URL’s supported by the standard URI resolvers. Now, using DataDirect XML Converters, you can write the following: • In XSLT: xsl:value-of select=”document(‘converter:EDI?mymessage.edi’)” • In XQuery: doc(“converter:EDI?mymessage.edi”) DataDirect XML Converters seamlessly resolves the URI and stream the data as XML to your XSLT or XQuery processor thus enabling access to non-XML files. So fo