Hi,

Thanks for your reply.

CDATA sounds good for my case. How I can configure the plugin to read the
XML configuration as CDATA ?

Thanks in advance,

Regards,

Clement

2008/12/11 Brett Porter <br...@apache.org>

> You could use DOM and convert it to a string in the plugin, but that means
> that you have to use a DOM object :)
>
> Other than that, I think you need to wrap it in a CDATA.
>
> Plexus has no internal converter for turning a DOM into a string at the
> moment.
>
> - Brett
>
>
> On 11/12/2008, at 9:17 PM, clement escoffier wrote:
>
>  Hello,
>>
>> I'm developing a maven plugin with a configuration containing an XML
>> String.
>> However, I would like to get it as a regular String. In my context it is
>> not
>> possible to use DOM objects as the content undetermined.
>>
>> Here is an example of such configuration:
>>
>> <configuration>
>>       <meta>
>>           <component
>> classname="org.apache.felix.ipojo.arch.ArchCommandImpl"
>>                    public="false">
>>           <Provides />
>>           <requires field="m_archs" optional="true" />
>>           <requires field="m_handlers" optional="true"/>
>>       </component>
>>   </meta>
>> </configuration>
>>
>> Is it possible to get the "meta" parameter as a regular String ?
>>
>> Best regards,
>>
>> Clement
>>
>
> --
> Brett Porter
> br...@apache.org
> http://blogs.exist.com/bporter/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

Reply via email to