Empact / roxml

ROXML is a module for binding Ruby classes to XML. It supports custom mapping and bidirectional marshalling between Ruby and XML using annotation-style class methods, via Nokogiri or LibXML.
http://roxml.rubyforge.org/
MIT License
223 stars 176 forks source link

Ability to traverse to the parent object #36

Open srbartlett opened 13 years ago

srbartlett commented 13 years ago

Just a quick question regarding the traversal of the object graph, I would like to traverse up to the parent from a leaf object. For example

Blog has-many Posts

<blog>
   <post>...</post>
   <post>...</post>
</blog>

Can an instance of Post traverse to it's parent Blog?

Any help would be much appreciated

cheers