Question

I have a message (MsgPortConfig):

<NewTable>
  <InternalID>1</InternalID> 
  <InterfaceId>INT079</InterfaceId> 
  <PortName>PortArchiveNewStartersDestination</PortName> 
  <Type>FILE</Type> 
  <Address>file://c:\test\out\archive\destination\NewStarters%MessageID%.txt</Address> 
</NewTable>

When I try to access a value via xpath using the following it always returns null.

VarXPath = "/*[local-name()='NewTable']/*[local-name()='Address']/text()";
VarDynamicPortFilePath = xpath(MsgPortConfig, VarXPath);

I don't know how else I can do this, checking the syntax with an application like XPathBuilder works fine but not in BizTalk. what am I missing? thanks.

Was it helpful?

Solution

Use:

VarXPath = "string(/*[local-name()='NewTable' and namespace-uri()='']/*[local-name()='Address' and namespace-uri()=''])";
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top