besapi.xsd could not be validated

Hello,
I am attempting to work with the BigFix API and was looking to use the XSDs. I have been able use xsd.exe to generate a DLL for classes from BES.xsd. However, when I attempt to do the same for BESAPI.xsd I get several errors. It seems that the file was not generated properly. I attempted to edit it without luck, has anyone else run into this?

Errors:
Copyright © Microsoft Corporation. All rights reserved.
Schema validation warning: The ‘http://www.w3.org/2001/XMLSchema:complexType’ element is not supported in this context. Line 54, position 9.
Schema validation warning: The ‘http://www.w3.org/2001/XMLSchema:choice’ element is not supported in this context. Line 240, position 10.
Schema validation warning: The ‘http://www.w3.org/2001/XMLSchema:attribute’ element is not supported in this context. Line 252, position 10.
Schema validation warning: The ‘http://www.w3.org/2001/XMLSchema:attribute’ element is not supported in this context. Line 482, position 10.
Error: Schema c:\hg\win-main-dev\modules\jsbigfix\classes\besapi.xsd could not be validated.

@pnorman Development has been alerted and they are assessing.

1 Like

Dev is reviewing the issue. Reproduced. working on solution.
Could you also test other xsd validators outside of xsd.exe from Microsoft?

Thank you, yes I opened a case and was told the issue was reproducible and I actually got a tweaked xsd which I was able to use correctly. I am in a very locked down environment, unfortunately getting access to another tool would take some time, but it is not needed from my end at this point.

1 Like

HI pnorman,
Can you please share the BESAPI.xsd you got?

Thank you!

Hi @EyalAlfassi, I would not want to trigger DLP/IP things by doing this. However, I suspect @BennBlackburn or @GwyndafDavies can help here as they sent the original to us, it is unfortunate this has not been fixed in an upgrade yet.

In would be very surprised if sending the file will trigger a security alert as it does not contain any sensitive data.
You can always share the text itself if its more convenient.

I also think that Gwyndaf does not work at HCL anymore.

In any case, i have a support case opened so if they’ll supply a fixed file i will share it.