xml - Xpath in mule anypoint studio -


I need to use an option router in the root message based on a specific field value in the input XML. Also using the latest version of the studio I am not able to compare XPath and compare prices in a specific area and then converting the route accordingly. How did someone compare me to the capture field in XPSath to UPS? Here is the sample XML file:

   

I need to retrieve the Career field from the XML given above. I am # [xpath ('/ deliver-order / tracking-data / carrier' == 'UPS'] Like I'm using xpath expressiosn in the router

me gt; ; got the value of it and was printed from the logger to the console ... also the message was rooted according to the field value .. Here I did what I did: - I xml File and my Valid: "Context":

  & lt; file: connector name = "File_Global" AutoDelete = "true" Streaming = "true" Connection = "true" Doctor: name = "file" / 
File: Inbound-Endpoint ResponseTimeout = "10000" Connector-Riff = "File_Global" Doctor: Name = "Flood Name" = "AAflow 1" Document: Name = "AAflow 1" File "path =" e: \ backup \ test "& gt; & lt; file: filename-regex-filter pattern =" input.xml "case sensitive =" false "/> & Lt; / File: inbound-endpoint & gt; & Lt; Logger message = "Trying to process: # [xpath: // [xpath: local-name () = 'deliver-order'] / * [xpath: local name () = 'tracking-data'] / * [Xpath: local-nam e () = 'carrier']] "level =" notice "doctor: name =" logger "/> & Lt ;! - Print carrier value - & gt; & Lt; Choice Doctor: name = "Choice" & gt; & Lt; When expression = "# [xpath: //]. [Xpath: local-name () = 'deliver-order'] / * [xpath: local-name () = 'tracking-data'] / * [xpath: local -name () = 'carrier'] = 'UPS'] "& gt; & Lt; Processor-series doctor: name = "processor chain" & gt; & Lt; Logger message = "match" level = "INFO" doc: name = "logger" /> & Lt; / Processor Series & gt; & Lt; / When & gt; & Lt; Otherwise & gt; & Lt; Processor-series doctor: name = "processor chain" & gt; & Lt; Logger message = "no match" level = "INFO" doctor: name = "logger" /> & Lt; / Processor Series & gt; & Lt; / Otherwise & gt; & Lt; / Options & gt; & Lt; / Flow & gt;

Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -