Jump to content

how to develop interface between xml and mdb files


PriteshP23

Recommended Posts

I have 50 Mb MDB file and 20 Mb XML file. I just need to know functional flow and tools/technical issues.

 

I hope i am clear to you.

From XML to Access:

1. Read xml with simplexml and store in vars

2. Connect to mdb with odbc functions or PDO odbc

3. Insert records using vars

 

From Access to XML:

1. Connect to mdb with odbc functions or PDO odbc

2. Run query and get records and store in vars

3. Write out XML with simplexml using vars

I think to read XML file only. Which one i should choose ?

 

You need to evaluate the complexity of your XML and project in general.  SimpleXML is "simple" and somewhat limited.  DOM implements the W3C DOM API, differentiates between element and attribute nodes and allows you to use PHP functions in XPath queries.

 

So DOM might be a good choice.  Start with that as it will give you more control.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.