11-26-2008 01:29 AM - edited 11-26-2008 01:35 AM
Hello,
I want to validate my XML file with the LabXML toolkit. I tried to use the MSXML.llb\MSXML open XML-file.vi. My questions is: What is to enter on the Schema-Cluster?
schemaLocation = Path to XML file
namespaceURI = ?
Prefix = ?
(By the way: Is there no possibility to validate the xml file via xsi:noNamespaceSchemaLocation="*.xsd" element? To use the validateOnParse property doesnt work. It always gives a true.)
LabVIEW version is 7.1
Thanks for answer,
shavo
11-26-2008 09:32 AM
The schemaLocation and namespaceURI are provided to the Add method for the IXMLDOMSchemaCollection class. As far as I can tell Prefix is not used, and it looks like a leftover.
The validateOnParse does work. Reading this property isn't much use. The value is set to control whether the file will be validated when read. To check for any validation errors you need to look at the parserError property. Something like this: