Link to home
Start Free TrialLog in
Avatar of bl00tered
bl00tered

asked on

Powerbuilder 10.5 - Validate XML Format

Hi,

I am using the ImportFile function to imprt data satored in an XML file,
as below.
li_error = dw_1.ImportFile(XML!,"C:\test\Temp.xml")

Are there any functions I can use to ensure that the structure
of the xml file I am importing matches that of the xml tempate
I have set up in the  data import setting of the dataobject.

Thanks

DL


Avatar of bl00tered
bl00tered

ASKER

Hi,

I am using the ImportFile function to imprt data stored in an XML file,
as below.
li_error = dw_1.ImportFile(XML!,"C:\test\Temp.xml")

Are there any functions I can use to ensure that the structure
of the xml file I am importing matches that of the xml template
I have set up in the  data import setting of the dataobject.

Thanks

DL

ASKER CERTIFIED SOLUTION
Avatar of sandeep_patel
sandeep_patel
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks Sandeep.
I thought that might be the case. I am trying to capture the error before the default Powerbuilder error message displays

li_error = dw_1.ImportFile(XML!,"C:\test\Temp.xml")

I can see the error value in li_error, but the PB error message fires before I can supply a more user friendly error message. Is there anyway that I can prevent PB displaying the error.

DL