Page 1 of 1

XML validation

Posted: 29 Sep 2014 17:04
by jeffry
Hi,
I would like to validate a XML file.
Does someone have examples of validation using the MSXML UseInlineSchema property? (VP CE 7.5 build 7500)
Thanks in advance.

Posted: 2 Oct 2014 6:49
by jeffry
Hi,
when I use the instruction

docComponent:setProperty("UseInlineSchema", comDomains::boolean(true)),

I obtain the following message error.
Could someone help me?
Thanks.

---- error messages -----------------------------------------------------------------------------------
Exception: disp_e_unknownname_exception (exceptionHandling_exception)

Unknown name

Predicate name = getDispId
SourceCursor = pfc\com\comSupport\comDispInterface.pro(103,9)
HRESULT code = 2147614726
HRESULT hex code = 80020006
name = UseInlineSchema

raised 2014-10-01 20:29:54
ThreadId: 19276
Class name: comDispInterface
Predicate name: getDispId

Posted: 2 Oct 2014 10:09
by Thomas Linder Puls
You have to call predicate_setProperty (declared in iXMLDOMDocument2_import).

setProperty (declared in comDispInterface) does something different.

Posted: 2 Oct 2014 15:31
by jeffry
UseInlineSchema property is supported in MSXML 6.0?
How do you replace the DLL?
Thanks.

Posted: 2 Oct 2014 20:13
by Thomas Linder Puls
I think it is practically impossible not to have MSXML 6.0: since XP sp 3 it has been part of Windows.

Anyways, you should check whether you have the files
  • C:\Windows\System32\msxml6.dll
  • C:\Windows\SysWOW64\msxml6.dll
The last one is only relevant if you have a 64bit operating system.

Should you not have it, it seems that you should download and install "Microsoft Core XML Services (MSXML) 6.0".

But you have to use the class dOMDocument60, to create a version 6.0 DOM document.

The "version free" dOMDocument is actually version 3, because version 3 was the last version that supported version free access. I have just decided that we will retire that class.

(Notice that I have no experience with UseInlineSchema).

Posted: 3 Oct 2014 10:43
by jeffry
Once again, thank you very much.
Now it work fine.
The issue is the documentation, some simple examples and a bit of ... experience. :oops:

I understand the problem, see the topic http://discuss.visual-prolog.com/viewto ... hlight=xml.