11-27-2008 05:36 AM
Hello,
I use the MSXML in labview to read a xml file. My VI works fine. But now I want to read the attribut xsi:noNamespaceSchemaLocation of the root node with the SelectSingleNode [queryString = @xsi:noNamespaceSchemaLocation] property. The result is an error. If I read all attributes of the root node, the VI doesnt show an error. Is it possible that labview or the property can't interpret the ' : ' (colon)? Because it can read every other attribut without a ' : '.
Thanks for answer,
shavo
Solved! Go to Solution.
12-05-2008 08:37 AM
Hi shavo,
Good afternoon and I hope your well. I have noticed you have not currently received any support.
Are you still having trouble with the :?
I do not beleive the : should be an issue. However, if you could please post an example peice of code (and file) which generates this I would take a look at it for you.
General advice, make sure your using LabVIEW XML Schema and just double check the way your code handles the : string.
Thanks,
12-05-2008 09:04 AM
Hi Hillman,
thanks for your help, but I solved the problem on an other way. I used the property "attributes" > "nodeName". So I get an array of all attribute names and I compared it with the schema location attribut. Is there a match, the MSXML get the node value and it's all fine. I will create the next xml VI with the "selectsinglenode-colon-problem" and post it here.
See you soon 🙂
shavo
01-16-2013 06:17 PM
Hi, I have the same problem with the colon. If my xml schema has colons, and then I use the labview parsers to find nodes, I get an error. When I remove the colons it works fine. I see that there does not seem to be a resolution here. Have either of you found anything since you originally posted this? Maybe you need to use some special encoding of the colon when specifying the XPath Expression in the Get All Matched Nodes VI?