Forums / Developer / Insert/update objects from an XML file

Insert/update objects from an XML file

Author Message

Jason Filby

Friday 12 September 2003 1:46:01 pm

Hi, I need some help with insert/update of objects from an XML file.

Basically, the XML file will contain the objects to be inserted/updated, such as this:

<component name="kernel32.dll">
<function name="abc" implemented=true></function>
<function name="def" implemented=true></function>
</component>

The first time the XML file is parsed, it should create all the objects. "Component" and "function" specify the class in this example, with the rest of the attributes being data attributes for the class.

Subsequent runs would update objects that already existing in the ez db, or insert new ones if not found.

I have two questions conerning this:
· how much of the required functionality already exists, and where?
· any advice!

Thanks
Jason