apply XQ_getXPath to specific content id part

Posted by gionnyDeep75 on 21-Sep-2010 15:43

hi all

i  d like to fetch an xml node with javascript XQ_getXPath

Actually the function  XQ_getXPath needs java.lang.String

xpathExpression, int msgPartIndex,

java.lang.String namespaceString,

but i don't know  msgPartIndex but the conteId and of course i have no namenspace.

Any idea?

All Replies

Posted by Bill Wood on 21-Sep-2010 16:35

You need to walk the parts to get the index of the one that matches your ContentID. 

NOTE: The namespace parameter is necessary if you have namespaces in your XPath.  For example:

  //ns:customer/ns:address

where

  ns=urn:/progress.com/common/model

This thread is closed