Posted: Tue Sep 20, 2011 10:48 pm Post subject: Namespace not applicable when promote properties
Novice
Joined: 11 Jul 2011 Posts: 12
Hy
I recognized a problem recently when I built a subflow containing a fileread node. To keep it dynamic I promoted the property 'Result' OutputDataLocation.
As there is a XMLNSC structure, I need namespaces to address the right field. But I can't insert namespaces - well I can but nothing happens.
so $OutputRoot/XMLNSC/x:data does not work. 'The x:data element in XPath $OutputRoot/XMLNSC/x:data was not found in the XML Schema.'
When I don't promote properties, it works and there is the correct namespace in the namespace list.
Other possibilities to solve the problem. Below my other tries...
$OutputRoot/XMLNSC/{'http://www.test.com'}:data
$OutputRoot/XMLNSC/['http://www.test.com']:data
"$OutputRoot/XMLNSC/x:data" does not work because "x" is not a namespace.
It is a namespace prefix.
Or at least, I'm guessing that you are using the string 'x' literally here, and not using it to mean something like "$OutputRoot/XMLNSC/http://www.test.com':data".
Using the explicit namespace value should work. Try "$OutputRoot/XMLNSC/"http://www.test.com":data" - or just using single-quotes instead of the inner double-quotes.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum