Discussions related to Visual Prolog
jeffry
Posts: 4
Joined: 28 Aug 2014 10:55

XML validation

Unread post 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.
jeffry
Posts: 4
Joined: 28 Aug 2014 10:55

Unread post 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
User avatar
Thomas Linder Puls
VIP Member
Posts: 1399
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls »

You have to call predicate_setProperty (declared in iXMLDOMDocument2_import).

setProperty (declared in comDispInterface) does something different.
Regards Thomas Linder Puls
PDC
jeffry
Posts: 4
Joined: 28 Aug 2014 10:55

Unread post by jeffry »

UseInlineSchema property is supported in MSXML 6.0?
How do you replace the DLL?
Thanks.
User avatar
Thomas Linder Puls
VIP Member
Posts: 1399
Joined: 28 Feb 2000 0:01

Unread post 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).
Regards Thomas Linder Puls
PDC
jeffry
Posts: 4
Joined: 28 Aug 2014 10:55

Unread post 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.
Post Reply