B
Brad Simon
Ok, I have to admit, I am no Jscript guru. I wanted to do all of this in
VBScript (and got is working in VBScript), and now I get an error that the
namespace is not declared in my document. I know that the XPath is correct,
and this still does not work. Here is my code:
eventObj.XDocument.DOM.selectSingleNode("//dfs:myFields/my:FileInfo/my:FullPath").text = eventObj.FileName
The exact error:
Reference to undeclared namespace prefix: 'dfs'.
I have tried changing the XPath to:
//my:myFields/my:FileInfo/my:FullPath
dfs:myFields/my:FileInfo/my:FullPath
my:myFields/my:FileInfo/my:FullPath
//myFields/my:FileInfo/my:FullPath
Many variations of the above
I still get an undeclared namespace prefix: 'x' on the ones with namespaces
in the name, and I get a null value for the XPaths that do not have any
namespace specified.
I would LOVE to do this in VBScript, but then I would have to recreate the
form from scratch (for the 10 millionth time) in order for it to get rid of
the JScript reference in the form (unless someone knows a way I can get
VBScript without rebuilding the form).
I am still finding it hard to believe that Microsoft put this product out
expecting developers to be able to do complicated tasks with it. This is the
worst version 1 application I have seen them put out in a long time. Doing a
task that would take me about 2 minutes in .NET (C# or VB) has taken me more
than 2 days to get it right here. I may not be the best programmer in the
world, but I am not THAT bad.
VBScript (and got is working in VBScript), and now I get an error that the
namespace is not declared in my document. I know that the XPath is correct,
and this still does not work. Here is my code:
eventObj.XDocument.DOM.selectSingleNode("//dfs:myFields/my:FileInfo/my:FullPath").text = eventObj.FileName
The exact error:
Reference to undeclared namespace prefix: 'dfs'.
I have tried changing the XPath to:
//my:myFields/my:FileInfo/my:FullPath
dfs:myFields/my:FileInfo/my:FullPath
my:myFields/my:FileInfo/my:FullPath
//myFields/my:FileInfo/my:FullPath
Many variations of the above
I still get an undeclared namespace prefix: 'x' on the ones with namespaces
in the name, and I get a null value for the XPaths that do not have any
namespace specified.
I would LOVE to do this in VBScript, but then I would have to recreate the
form from scratch (for the 10 millionth time) in order for it to get rid of
the JScript reference in the form (unless someone knows a way I can get
VBScript without rebuilding the form).
I am still finding it hard to believe that Microsoft put this product out
expecting developers to be able to do complicated tasks with it. This is the
worst version 1 application I have seen them put out in a long time. Doing a
task that would take me about 2 minutes in .NET (C# or VB) has taken me more
than 2 days to get it right here. I may not be the best programmer in the
world, but I am not THAT bad.