Hi folks,
I want to use marshal-n-unmarshal two classes
public class Foo {     
    private Bar bar;
    public Foo();
    public getBar() {
        return bar;
    }
    public void setBar(Bar bar) {
        this.bar = bar;
    }
}
public class Bar{
        String name;
        String value;
}

The xml format I want is like this:
<Foo>
        <name name=""/>
        <val value=""/>
</Foo>
Instead of:
<Foo>
        <Bar>
                <name name=""/>
                <val value=""/>
        </Bar>
</Foo>

How can I write the mapping file? 

Thanks for your help:)

ZS 

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

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

Reply via email to