Hello All,
I have the following requirement .................... I have created a set of pipelines (resources) that execute a set of logic and spit out XMLs (results) Now What I want is that somehow get hold of that XML as a String and do further manipulations like sending the result to another pipeline for instance. To be more illustrative: The resources are 1. Validate Item <map:match pattern = "validateItem > ..... </map> 2. Is present in Inventory <map:match pattern = "InventoryCheck" > .... </map> 3. GetPrice <map:match pattern = "priceValidate" > .... </map> In a XSP or an action , I would like to do the following Parameters.setParameter("itemId",itemId); DocumentFragment item = resource.getXMLData("validateItem",parameters); String itemXML = getXMLStringFromDocumentFragment(item); If(validate(itemXML) { DocumentFragment inventoryItem = resource.getXMLData("InventoryCheck ",parameters); } else reportItemInvalid( and so on ........... Also I could use the above resources in pipelines using map:call to generate html o/p I am not talking in the blind here, The sunshine developers use this mechanism in authenticating a user, creating a new user and so on.. But their code is centric on using sunshine Component. I was wondering, is there a standard way of doing this and is it documented some place. Thanks in advance, Chiths --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>