Re: [U2] [UV] XDOMOpen returning -1

2013-03-21 Thread Symeon Breen
Is this the latest version of UV - also is this on linux or Windows ?

One thing to check is character encoding - if your lang settings are not
utf-8 but the xml contains utf-8 you can get memory errors.



-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Jacques G.
Sent: 20 March 2013 17:12
To: U2 Users List
Subject: Re: [U2] [UV] XDOMOpen returning -1

Hello,

On a new installation of UV I'm the following command returns a -1:

XDOMOpen( xmlData, XML.FROM.STRING, hDOM )

Any idea what causes this ?  I encountered the same error 5-6 years ago but
forgot how it was originally solved.  Can it be due to insufficient memory ?

Jacques G.
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] [UV] XDOMOpen returning -1

2013-03-20 Thread Jacques G.
Hello,

On a new installation of UV I'm the following command returns a -1:

XDOMOpen( xmlData, XML.FROM.STRING, hDOM )

Any idea what causes this ?  I encountered the same error 5-6 years ago but 
forgot how it was originally solved.  Can it be due to insufficient memory ?

Jacques G.
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] [UV] XDOMOpen returning -1

2013-03-20 Thread Gregor Scott
The first step is to understand what the exact issue is.
There is a function that can return a description of the error you have 
encountered.
Typically the code looks like this:

xstat = XDOMOpen( xmlData, XML.FROM.STRING, hDOM)
if xstat # XML.SUCCESS then
   call XMLGetError( xErrCode, xErrMessage)
   crt xErrCode: - :xErrMessage
end


Regards,

Gregor

This email and any attachments to it are confidential.
You must not use, disclose or act on the email if you are not the intended
recipient.  Liability limited by a scheme approved under Professional
Standards Legislation.
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users