You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Alexey Cheremisin <or...@zelan.ru> on 2003/12/17 13:31:11 UTC

[BETWIXT] text element

Hello,

I have a simple problem with "text" element.
The "text" element not works if it only one element  in betwixt file, 
but it work if I uncomment for example "attribute" element or add any 
other element.
Is it possible to use only <text> attribute?
I try to get  clean xml like
<div>bla bla bla</div>

I using next .betwixt file
<?xml version='1.0' encoding='UTF-8' ?>
<info primitiveTypes='element'>
    <element name='div'>
        <!--attribute name="class" value="div"/-->
        <text property='div'/>
    </element>
</info>
to marshaling next simple class
public class Div {
    private String div;
    public Div() {
    }
    public String getDiv() {
        return div;
    }
    public void setDiv(String string) {
        div = string;
    }
}

Best regards,
Alexey Cheremisin.




---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org