문제

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.

도움이 되었습니까?

해결책

Use:

VarXPath = "string(/*[local-name()='NewTable' and namespace-uri()='']/*[local-name()='Address' and namespace-uri()=''])";
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top