You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by JD Daniels <jd...@datatrio.com> on 2004/04/02 11:28:38 UTC

Re: {Spam?} Re: [WOODY] - How to bind a repeater from other widget (or add filled in repeaters from another source )

Christopher Oliver wrote:

> JD Daniels wrote:
>
> <snip>
>
>> This is a sample of what is being loaded into document:
>> <InventoryItem>
>>    <id>4</id>
>>    <inventoryId>11033</inventoryId>
>>    <inventoryType>2</inventoryType>
>>   <description>100BBL Skidded pop tank, c/w tone tone paint, 
>> thie</description>
>>   <initialRate/>
>>   <monthRate>300.00</monthRate>
>>   <dayRate>15.00</dayRate>
>> </InventoryItem>
>>
>> document.getFirstChild().getLastChild().nodeValue = ""
>> document.getFirstChild().nodeName = InventoryItem
>> document.getFirstChild().nodeName = InventoryItem
>>
>> JD
>
>
> You could use JXPath to get the value of <description> instead of 
> using DOM directly:
>
> importPackage(org.apache.commons.jxpath);
> var cx = JXPathContext.newContext(document);
> var desc = cx.getValue("/InventoryItem/description");
>
> Chris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>
Yep this works great. Thanks!

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org