The general way to recursively transform one node tree to another in XQuery is 
via recursive descent 
<https://gist.github.com/jmakeig/7273340b3065f442030451d04587c466#file-identity-transform-xqy>.
 

I can't quite tell from your description what your transformation needs to do, 
though. "Strip out everything in between" what? Can you give a more fleshed out 
example of the input and your expected output?

Justin



> On Mar 17, 2017, at 1:28 PM, Kari Cowan <[email protected]> wrote:
> 
> Inside my return for a query, I have an HTML node that I don’t need that 
> includes a bunch of child elements  -- I want to strip out everything in 
> between; alternately I could be happy to remove the node entirely from the 
> returned data.  Is there a function for that I don’t know about or is th is 
> better done with a regex?  Anyone have a tip they can share?
>  
> <HTML xmlns:occurrenceattr="http://luxid.temis.com/occurrence/attribute"; 
> xmlns:entityattr="http://luxid.temis.com/entity/attribute"; 
> xmlns:entity="http://luxid.temis.com/entity"; 
> xmlns:category="http://luxid.temis.com/category"; xmlns="incisive-repository" 
> xmlns:i="incisive-repository">  (bunches of child elements here )  </HTML>
> _______________________________________________
> General mailing list
> [email protected]
> Manage your subscription at: 
> http://developer.marklogic.com/mailman/listinfo/general



_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to