Hi Pascal,

Your problem has less to do with validation, and more to do with
well-formedness. '&' has special meaning in XML (start of entity
reference) and no XML parser in the world will accept what you have,
regardless of any validation setting.

Try using & instead of & - it will be translated to '&' at runtime.

kind regards,
Dawid Loubser


On 03/06/2014 21:07, Pascal Klink wrote:
> Hi everyone,
>
> I'm currently facing an issue, with the XML processing of the Maven Bundle 
> Plugin. I'm writing an OSGI application based on Apache Camel. I'm 
> configuring Camel using blueprint XML. The problem is, that when using for 
> example the following XML-Tag:
>
> <to 
> uri="bean:userService?method=getPeopleAtClub(${in.header.id})&cache=true"/>
>
> The creation of the bundle fails, with the error:
>
> Unexpected exception in processing spring 
> resources(OSGI-INF/blueprint/webService-routes.xml): 
> javax.xml.transform.TransformerException: 
> javax.xml.transform.TransformerException: 
> com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Reference to 
> entity "cache" has to end with ";".
>
> Obviously the bundle plugin processes the XML in some way and the problem is 
> the validation of the XML, since it is not standard conform. So can I disable 
> this feature of the bundle plugin, so that I don't have to deal with the ugly 
> encodings of all these symbols?
>
> Greetings,
> Pascal 
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

Reply via email to