You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Swindells, Thomas" <TS...@ndsuk.com> on 2008/07/24 12:53:17 UTC

Plugin XML configuration

Hi,
 
I'm developing a plugin and need to allow a configuration option to be
provided which will contain an arbitary blob of xml. I can't however
work out what variable type I need for the paramater in order to do
this.
eg allowing configuration of the following:
<configuration>
    <var>text<xml attr="foo">any xmlTag</xml></var>
</configuration>
 
What type should my variable var be in order to get at the xml? (it can
be a string, list, DOM or anything else which will allow me to get at
the data!
 
Thank you,
 
Thomas
*********************************************************************************************************
This e-mail is confidential, the property of NDS Ltd and intended for the addressee only.  Any dissemination, copying or distribution of this message or any attachments by anyone other than the intended recipient is strictly prohibited.  If you have received this message in error, please immediately notify the postmaster@nds.com and destroy the original message.  Messages sent to and from NDS may be monitored.  NDS cannot guarantee any message delivery method is secure or error-free.  Information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.  We do not accept responsibility for any errors or omissions in this message and/or attachment that arise as a result of transmission.  You should carry out your own virus checks before opening any attachment.  Any views or opinions presented are solely those of the author and do not necessarily represent those of NDS.

To protect the environment please do not print this e-mail unless necessary.

NDS Limited Registered office: One Heathrow Boulevard, 286 Bath Road, West Drayton, Middlesex, UB7 0DQ, United Kingdom. A company registered in England and Wales  Registered no. 3080780   VAT no. GB 603 8808 40-00
**********************************************************************************************************


Re: Plugin XML configuration

Posted by Benjamin Bentmann <be...@udo.edu>.
Swindells, Thomas wrote:

> What type should my variable var be in order to get at the xml?

A CDATA section [0] should allow you to pass the data through into an 
ordinary string parameter:

<configuration>
     <var><![CDATA[text<xml attr="foo">any xmlTag</xml>]]></var>
</configuration>


Benjamin


[0] http://en.wikipedia.org/wiki/CDATA

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org