Binding LLBLGEN With XML file

Posts   
 
    
sameemir
User
Posts: 11
Joined: 22-Feb-2010
# Posted on: 31-May-2010 11:28:03   

hi,

Is it possible to use an XML file instead of Database with LLBLGEN ?

Reply ASAP

thnx Samee Javaid

sameemir
User
Posts: 11
Joined: 22-Feb-2010
# Posted on: 31-May-2010 12:46:09   

Actually I want to bind the LLBLGEN with a Xml File instead of a Database File...

sameemir
User
Posts: 11
Joined: 22-Feb-2010
# Posted on: 31-May-2010 14:00:24   

I have a Database file named as ABc.mdf and i want this database file to read the complete database and then convert this whole DB into a XML file...

Walaa avatar
Walaa
Support Team
Posts: 14983
Joined: 21-Aug-2005
# Posted on: 31-May-2010 16:01:25   

I'm not sure what you mean by xml file.

Do you mean at Design time? i.e. to map the model to an XML structure rather tahn a database schema?

Or you mean at runtime you want to fetch data from the database and output it into some XML file? (XML serialization of data)

sameemir
User
Posts: 11
Joined: 22-Feb-2010
# Posted on: 01-Jun-2010 07:28:45   

i want to map the model to an XML structure rather than a database schema.................

sameemir
User
Posts: 11
Joined: 22-Feb-2010
# Posted on: 01-Jun-2010 08:15:17   

ok...let me re-phrase my scenario..

I want to Connect/Bind the LLBLGEN to a XML file(which will contain all the database Tables, their relations and the data) instead of a Database.

Please Confirm is it possible or not???

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39752
Joined: 17-Aug-2003
# Posted on: 01-Jun-2010 10:24:51   

The xml file contains the entity / table + mappings definitions but not the data? This is different as sometimes people want to use an XML file as their database and if you want to use your xml file as your database, that's not going to work.

It is possible, but not supported out of the box, to have an xml file with definitions of entities, mappings and meta-data and import that to entity definitions, table definitions and mappings between them. You have to write a custom plugin to import your xml file and then add entities, tables etc. in your plugin. This isn't as simple as it sounds and requires some deeper knowledge of the inner workings. We have planned an import framework for v3 but it's not done yet.

So short answer: no today this isn't possible. With a lot of work from your side you can make this work, but IMHO it's easier to reverse engineer the database you have.

Frans Bouma | Lead developer LLBLGen Pro
sameemir
User
Posts: 11
Joined: 22-Feb-2010
# Posted on: 01-Jun-2010 11:48:24   

yes we want to use your xml file as your database.

Can you please confirm that this feature will be available in v3? or when this feature will be available(any rough idea..1 month,2 month)?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39752
Joined: 17-Aug-2003
# Posted on: 01-Jun-2010 11:58:12   

that's a feature that's not supported nor will be supported, sorry. XML files as a db isn't something llblgen pro supports.

Frans Bouma | Lead developer LLBLGen Pro
sameemir
User
Posts: 11
Joined: 22-Feb-2010
# Posted on: 01-Jun-2010 12:24:24   

ohk..thnx for the coperation.....

really so nice of yousimple_smile