cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Newland" <>
Subject C2: Adding XML in String into document
Date Mon, 03 Sep 2001 16:50:11 GMT
Hi All,

I've written a method that fetches the possible values of an enum column in
a MySQL database and creates an XML string that represents a form's <select>
element complete with an <option> element for each enum value.

In Cocoon 1 I could have just appended this text as a node in the DOM tree
but now I'm using Cocoon 2 and can't work out how to get the XML from this
String into the output document:


	String select_node = MyUtil.getEnumSelectBlock( .... );

	<form method="POST" action="foo">

		<!-- want select node to be inserted here -->

		<input type="submit" value="choose"/>



Is this a sensible thing to try and do? (Sorry if this is a really obvious



Chris Newland
Software Research Engineer

Emorphia Ltd
Registered in England.  4133002
Mill House, Station Approach, Harlow Mill, Harlow, Essex, CM20 2EL, UK

Tel: +44 (0)1279 450100
Fax: +44 (0)1279 450102

Check out FIPA-OS at

This message may contain information proprietary to Emorphia so any
unauthorised disclosure, copying or distribution of its contents is strictly

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message