Hi!

How I can marshal/unmarshal objects from non root elements? It`s possible with Castor? E.g.:

<?xml version="1.0"?>
 <doc>
   <answer>
     <error code="33008">Not found element</error>
   </answer>
 </doc>

mrashal to Java class

public class Error
{
  private int code;

  public int getCode()
  {
      return code;
  }
  public void setCode(int code)
  {
      this.code = code;
  }
}

Thanks.


-------------------------------------------------
If you wish to unsubscribe from this list, please send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------

Reply via email to