How XML is related with Object-relational form.how can you define object views corresponding to the various XML document structure and define instead-of triggers to perform the appropriate transformation and update the base data and store it in a database.
SCJP 1.5, SCEA, ICED (287,484,486)
posted 15 years ago
XML by itself has no in-built features to support object relations. XML simply allows you to effectively represent a hierarchical data format. Since the rules are flexible, it is not difficult to comeup with a format that can be used to represent object relations too. For example, you could represent relationships in terms of ID attributes. ie., the ID value for one entire nodeset can be used as a foreign key in another nodeset of a different XML document thereby tying together two( or more ) entities. Employee.xml
You can then write code to form a "complete 4GL object" by dereferencing the ids and doing a cross-XML lookup. Several relational and object relational database vendors are gradually moving towards XML support. Since XML is very new, you will have to wait for some more time to really see mature XML integration paths. Oracle 8i now has the 'best' XML support that is available out there. You can manipulate a result-set in the XML form, which means you can select,update or create table rows using an XML query. Hope that helps,
------------------ Ajith Kallambella M. Sun Certified Programmer for the Java2 Platform. [This message has been edited by Ajith Kallambella (edited January 23, 2001).]
Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).