[MarkLogic Dev General] How can I extract the text within a PCDATA element in an XML document?

Loren Cahlander loren.cahlander at gmail.com
Fri May 17 18:37:26 PDT 2013


You can use the XPath expression:    /data/comment()

On May 17, 2013, at 8:23 PM, "Tim" <tim at aaom.net> wrote:

> Give the following record, how can I extract the text from the comment?
>  
> <data error="1" num-seq="20">
> <!-- Warning: Content model for data does not allow PCDATA in unnamed entity at line ___ char ___ of file:///___.xml-->
> </data>
>  
> Thank you!
>  
> Tim Meagher
>  
> _______________________________________________
> General mailing list
> General at developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20130517/79337757/attachment.html 


More information about the General mailing list