Yana Kadiyska wrote:
> Hm...could you send a small repro (query, instance and schema) so I can
> take a look?
Thanks Yana,
but I am sorry I do not have the time for the moment ...
BTW a stupid workaround is :
XmlObject o =
documentToSign.getSignedDocument().selectPath("declare namespace
msig='http://www.eurecom.fr/security/msig#';" +
"$this//msig:[EMAIL PROTECTED]'"+signatureTemplateReference+"']")[0];
SignatureTemplateType
c=SignatureTemplateType.Factory.parse(o.toString()); //TODO provide a
bug report asap
System.out.println(c);
> It is odd that you need to use changeType to begin with as
> selectPath should return the original object in your instance which
> should already have the correct type. This issue aside, changeType will
> not work if the type you're changing to is not a document type.
Yes it was a deseperate move ...
> (I have
> a suspicion you're using a well known schema but can't find the
> definition of SignatureTemplate)
>
You see I can find it :) but XMLBeans cannot :(
jc
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]