Ruby 1.8.6 on Windows. The following code runs fine.. But I don't get
the </DataSource> that I expect between </ConnectionString> and
</DataSources>. I can't figure out what I'm doing wrong..
This is because you did not add nested elements to DataSource. My output looks like this
irb(main):013:0* doc.write
<DataSources><DataSource MaxLimit='500' Name='LOCAL' Default='' Type='Cedara DbS P10'/><Schema>DbSP10Schema.xml</Schema><ConnectionString>Provider=ISG OLE DB DbS Provider; Data
Source=localhost:3205</ConnectionString></DataSources>=> [<?xml ... ?>, <DataSources> ... </>]
This is because you probably confused DataSources and DataSource. Your variable named "datasource" holds DataSources and so you add Schema to that instead of to DataSource.
Kind regards
robert
···
On 30.12.2008 02:31, Aldric Giacomoni wrote:
Ruby 1.8.6 on Windows. The following code runs fine.. But I don't get
the </DataSource> that I expect between </ConnectionString> and
</DataSources>. I can't figure out what I'm doing wrong..
Ruby 1.8.6 on Windows. The following code runs fine.. But I don't get
the </DataSource> that I expect between </ConnectionString> and
</DataSources>. I can't figure out what I'm doing wrong..
This is because you did not add nested elements to DataSource. My output looks like this
irb(main):013:0* doc.write
<DataSources><DataSource MaxLimit='500' Name='LOCAL' Default='' Type='Cedara DbS P10'/><Schema>DbSP10Schema.xml</Schema><ConnectionString>Provider=ISG OLE DB DbS Provider; Data
Source=localhost:3205</ConnectionString></DataSources>=> [<?xml ... ?>, <DataSources> ... </>]
This is because you probably confused DataSources and DataSource. Your variable named "datasource" holds DataSources and so you add Schema to that instead of to DataSource.