tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Hinchey <michael.hinc...@inference.com>
Subject RE: XML syntax for parameter values that are XML
Date Wed, 03 May 2000 22:01:34 GMT
I know of three options.
1. <param-value><![CDATA[<bar/>]]></param-value>
2. <param-value>%lt;bar/%gt;</param-value>
3. <param-value>%#60;bar/%#62;</param-value>


-----Original Message-----
From: Christopher Stacy [mailto:cstacy@crystaliz.com]
Sent: Wednesday, May 03, 2000 2:49 PM
To: tomcat-user@jakarta.apache.org
Subject: XML syntax for parameter values that are XML


>>>>> Christopher Stacy ("CS") writes:
 CS> I have an application parameter value that consists of some XML.
 CS> I want to write something like:
 CS>       <context-param>
 CS>          <param-name>foo</param-name>
 CS>          <param-value>
 CS>             <bar/>
 CS>          </param-value>
 CS>       </context-param>
 CS> What is the XML syntax that I need to use for this kind of thing?


>>>>> On Wed, 3 May 2000 15:44:04 -0400 , kc baltz ("kc") writes:
 kc> Not sure, but my guess is you need to put backslashes in front of the <
> 's
 kc> and remove the "'s unless you want them to be part of the string
returned by
 kc> getInitParameter().

Well, I tried  <param-value> "<bar/>"  </param-value>
and also       <param-value> \<bar/\>  </param-value>
but those didn't work, either.


--------------------------------------------------------------------------
To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
For additional commmands, email: tomcat-user-help@jakarta.apache.org

Mime
View raw message