You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xmlbeans-user@xml.apache.org by Jonathan Iantosca <jo...@yahoo.com> on 2004/04/03 19:51:18 UTC
binding to an xml fragment
Hi,
I'm trying to bind to a fragment of an xml document. Given the document
below.
<element-a>
<element-b>
<element-c/>
</element-b>
</element-a>
I'd like to do something like.
ElementB elementB = ElementB.Factory.parse( new StringReader(
"<element-b><element-c/></element-b>" ) );
Have I overlooked something here? Whenever I call getters on elementB I
get null.
Regards,
-Jon