hi all,
i'm sorry to cone back to this topic in a separate thread, i had
problems with my mailaccount so i haven't recevied the original mail
from the mailing list nor the feedback guido thankfully posted, which
makes it impossible to reply on this topic.
i still cannot retrieve the content of an element including all its
xml substructure, like in the example in my first post (see a few
lines below).
so far we made a workaround where the unmarshaller stores the absolute
position (calculated from the line and column info the context
provides) of the beginning and the end of the whole string that's
between the start and the end tag, and later, after unmarshalling, we
cut that string out and copy it into a variable. this wokrs, but hmmm,
not very nice, is it?
so if anyone has another idea how to retrieve the full string content
between the start and the end tag (including tags from the same and/or
different namespaces, etc) this would help a lot!
thanks, br,
günther
Hello,
did you try the parseContentText() or parseEelementText() methods? If
these methods don't work then you could do this manually by using the
parse... methods and the getElementName() and getElementNamespace()
from the UnmarshallingContext.
http://jibx.sourceforge.net/api/org/jibx/runtime/impl/UnmarshallingContext.html
Good luck,
Guido
On 10/10/07, Günther Wieser <[EMAIL PROTECTED]> wrote:
> hi,
>
> think about the following xml structure:
>
> <req:ServiceRequest>
> <GetLoanStatus>
> <Client>
> <lastName>Wieser</lastName>
> <firstName>Guenther</firstName>
> </Client>
> </GetLoanStatus>
> </req:ServiceRequest>
>
> what i wan to have at the end is the textual content between the
start tag
> of ServiceRequest and its end tag. i wrote my own unmarshaller,
but i
> haven't found any way to retrieve the content INCLUDING everything
from
> <GetLoanStatus> and its end tag. it seems to be a problem of the
different
> namespaces that ServiceRequest and its content use. i thought
uctx.getText()
> gives me the content as a string, but i get a string with
whitespaces back,
> but no <GetLoanStatus>.....
>
> any ideas how i can get the content of ServiceRequest as a string
in an
> unmarshaller? thanks in advance!
>
> br,
> günther
>
> --
--
Günther Wieser
creative-it
Guglgasse 6/1/11/1
A-1110 Wien
[EMAIL PROTECTED]
http://www.creative-it.com
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users