title: Reference/link to object in javascript using xml
body: <p>Take an xml like this:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;events&gt;
      &lt;event&gt;
          &lt;start&gt;&lt;/start&gt;
          &lt;duration&gt;&lt;/duration&gt;
          &lt;begin&gt;{somecallback}&lt;/begin&gt;
          &lt;complete&gt;{someclass.someproperty = somevalue;}&lt;/complete&gt;
      &lt;/event&gt;
  &lt;/events&gt;
  </code></pre>
  
  <ul>
  <li>I need to be able to parse the xml and execute the string versions of javascript code. I know javascript has an eval function, but I need to know if eval can act on the above <code>begin</code> and <code>complete</code> or if there is an easier way to do this.</li>
  </ul>
  
  <p>Both <code>begin</code> and <code>complete</code> need to either directly access a callback (without parameters), or directly set a value to a property belonging to a class. I'm sure I can <code>eval()</code> a callback, but I am unsure how to proceed with directly setting property values in this manner.</p>