title: How to parse xml using jaxb
body: <p>Hi I am trying to fetch xml data ..
  Structure is like this :
  ....</p>
  
  <pre><code>&lt;transport&gt;
      &lt;Journey&gt;
      &lt;JourneyPatternSection id ="JPS_13"&gt;
         &lt;from&gt; a&lt;/from&gt;
         &lt;to&gt;b&lt;/to&gt; 
      &lt;/JourneypatternSection&gt;
          &lt;/Journey&gt;
          &lt;JourneyPattern id="JP_1_0"&gt;
                                  &lt;JourneyPatternSectionRefs&gt;JPS_13&lt;/JourneyPatternSectionRefs&gt;
                          &lt;/JourneyPattern&gt;
          &lt;VechileJourney&gt;
          &lt;JourneyPatternRef&gt;JP_1_0&lt;/JourneyPatternRef&gt;
                      &lt;DepartureTime&gt;17:10:00&lt;/DepartureTime&gt;
      &lt;/VechileJourney&gt;
  &lt;/transport&gt;
  </code></pre>
  
  <p>I have extracted JourneypatternId using jaxb but I am not able to get the departure time and to and from information as  journey pattern id has refrence in vechilejourney tag . </p>