You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by binu <x_...@ugs.com> on 2006/06/21 15:20:04 UTC

xml-fragment issue

I have generated jr file using XML beans.
But I have a field like this in my XML

<Language Name="English(United States)">EN_US</Language>

Using XML beans I am able to get the attribute "Name" 
using object.getLanguage().getName().

But how to get the content of Language tag.

object.getLanguage() gives me value like 
"<xml-fragment Name="English(United States)" xmlns="">EN_US</xml-fragment>"

I need to get the EN_US  value.
please suggest some way

Thanks in advance

Binu
--
View this message in context: http://www.nabble.com/xml-fragment-issue-t1823864.html#a4974143
Sent from the Xml Beans - User forum at Nabble.com.


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


Re: xml-fragment issue

Posted by Ivan Minevskiy <mi...@gmail.com>.
Maybe this will work:
String s = object.getLanguage().newCursor().getTextValue();

Ivan 

> 
> No it is not returning string
> 
> object.getLanguage() this does not have .getValue() method....
> 
> object.getLanguage() returns launguage object.


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


RE: xml-fragment issue

Posted by binu <x_...@ugs.com>.
No it is not returning string

object.getLanguage() this does not have .getValue() method....

 object.getLanguage() returns launguage object.



--
View this message in context: http://www.nabble.com/xml-fragment-issue-t1823864.html#a4987231
Sent from the Xml Beans - User forum at Nabble.com.


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