Is it possible to use DataSource definitions on the server side? For example, I want to create a DMI DataSource that reads from some other DataSources.
I've looked through the manual and examples, javadoc, but I'm not finding how to do it. I know there is a DataSource.fromXML() method, but it threw this exception when I tried to fetch()
I've looked through the manual and examples, javadoc, but I'm not finding how to do it. I know there is a DataSource.fromXML() method, but it threw this exception when I tried to fetch()
Code:
=== 2011-01-14 11:47:14,632 [10-2] DEBUG DataSourceDMI - Invocation threw exception com.isomorphic.xml.XMLParsingException: [ "XML parser fatal error: file '(in memory stream)' line 1: org.xml.sax.SAXParseException: Content is not allowed in prolog." ] at com.isomorphic.xml.XML.parseXML(XML.java:205) at com.isomorphic.xml.XML.parseXML(XML.java:124) at com.isomorphic.xml.XML.toDSRecords(XML.java:289) at com.isomorphic.xml.XML.toDSRecords(XML.java:285) at com.isomorphic.xml.XML.toDSRecords(XML.java:277) at com.isomorphic.datasource.DataSource.fromXML(DataSource.java:467) at com.isomorphic.datasource.DataSource.fromXML(DataSource.java:436) at com.project.MyDMI.fetch(MyDMI.java:43)
Comment