public class XPathFunction extends Object implements org.mule.runtime.api.lifecycle.Initialisable, org.mule.runtime.api.lifecycle.Startable, org.mule.runtime.api.lifecycle.Stoppable
| Constructor and Description |
|---|
XPathFunction() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialise() |
void |
start() |
void |
stop() |
List<String> |
xpath(String xpath,
InputStream content,
Map<String,Object> contextProperties,
NamespaceMapping... ns)
Evaluates the
xpath expression over the given XML content using the contextProperties. |
public void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic void start()
throws org.mule.runtime.api.exception.MuleException
start in interface org.mule.runtime.api.lifecycle.Startableorg.mule.runtime.api.exception.MuleExceptionpublic void stop()
throws org.mule.runtime.api.exception.MuleException
stop in interface org.mule.runtime.api.lifecycle.Stoppableorg.mule.runtime.api.exception.MuleExceptionpublic List<String> xpath(String xpath, InputStream content, Map<String,Object> contextProperties, @Optional NamespaceMapping... ns)
xpath expression over the given XML content using the contextProperties.xpath - the XPath scriptcontent - the XML content on which the XPath is evaluatedcontextProperties - Properties that will be made available to the transform context.ns - NamespaceMapping Maps a prefix to a namespace URICopyright © 2026 MuleSoft, Inc.. All rights reserved.