06-24-2016 10:25 AM
Hi,
i am using LV13, and have a XML file which i want to validate on load using the XSD1.1 schema.
The Labview inbuilt parse (Load XML File.VI) works fine and validate my xml against XSD1.0 schema specifications.
Is there a way in which i can configure the XML parser in LV , so that is validates XML as per the 1.1 schema specification.
Thanks for your help in advance.
06-27-2016 06:12 PM
It looks like if you dig into the Load XML File.VI, you eventaully reach a locked subVI that you cannot open any further. That VI looks like the one that is doing the parsing. Since the XSD1.0 and XSD1.1 sound like they are pretty different, I think your next best hope is to look for an existing library or you can write the parsing from scratch
06-27-2016 06:18 PM
Yeah, i did the same, after digging the SUBVI are locked.
Also, after a more research i found that validating an XML with 1.1 schema may not be possible because LV uses Xerces2.7 as a native parser. Basically that parser is present behind that locked VI. Additionally, Xerces 2.7 is unstable for XSD1.1 schema specification, that is what I read on developer forum.
The only shot which I have is to create a dll and bring it inside LV environment. The latest Xerces 3.19( written in C++) has the capability to validate against XSD 1.1 and is a stable version.
06-28-2016 01:47 AM
@Ayum wrote:Hi,
i am using LV13, and have a XML file which i want to validate on load using the XSD1.1 schema.
The Labview inbuilt parse (Load XML File.VI) works fine and validate my xml against XSD1.0 schema specifications.
Is there a way in which i can configure the XML parser in LV , so that is validates XML as per the 1.1 schema specification.
Thanks for your help in advance.
You can use MSXML by Invoking the Methods of Microsoft XML