For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Sergiy_126245's avatar
Sergiy_126245
Icon for Nimbostratus rankNimbostratus
Apr 30, 2013

How to extract CDATA with xpath?

I am trying to extract CDATA from my XML with xpath query.

 

My XML looks like this:

 

 

SomeText

 

.

 

I created a xpath:

 

//xml/text()

 

but it doesn't catch my CDATA. Do you have any idea how to make it work? Thanks.

 

4 Replies

  • Are you trying to extract the CDATA using XML_CONTENT_BASED_ROUTING? Can you include a sample of your entire XML message?
  • Yes, I am trying to do XML_CONTENT_BASED_ROUTING

    Here is my XML

    
    
     
    SomeText
    
    
     

    I need to get 'SomeText' to do further proccessing with iRule.