• Post Reply Bookmark Topic Watch Topic
  • New Topic

Is there a way to do inheritance/include in XML?

 
LGu Gu
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Samples or links will be greatly appreciated
 
Vidya Ravi
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In XML Schema, new simple types can be created by deriving from built-in or derived types via the inheritance, but in a strict sense, approaches to inheritance are not applicable to XML because XML, unlike Object Orient languages, models only data and not behavior (no methods). That is say there is a difference between inheritance (i.e. of behavior) and subtyping (e.g. of interfaces): Subtyping is a relation between object interfaces, while subclassing (inheritance) is a relation between object implementation.
Please refer this site : http://www.eecs.wsu.edu/~cdyreson/teaching/advancedDatabase/011/discussions/fourreport.htm

not applicable to XML
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!