Re: XPipeline.setOption and value type

Florent,

RuntimeValue is needed here for a very good reason : if the String you are
providing is in fact a QName, you also need to provide the namespaces
binding to allow it's handling

If you don't need special handling, then just provide a dummy node, and it
should work

Hope this helps

Xmlizer

2012/4/26 Florent Georges <fgeorges@fgeorges.org>

>  Hi,
>
>  I have to set an option on a pipeline before executing it from
> Java.  So on my XPipeline object, I want to call setOption.  But this
> method takes a RuntimeValue, and we need a node to construct a new
> runtime value (this is not clear what's its role, though).
>
>  What's this node required by the runtime value ctors?  As option
> values are strings, woudln't it be a good idea to have an overload of
> this method taking a string as the option value?
>
>  Regards,
>
> --
> Florent Georges
> http://fgeorges.org/
> http://h2oconsulting.be/
>
>

Received on Sunday, 20 May 2012 10:58:25 UTC