• 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic