Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Relation of XML with Object-relational form

 
Anil Vupputuri
Ranch Hand
Posts: 527
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Anil
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

Departments.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).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic