AddSchema command in an XMLReader in Genexus

1

I am developing an application in Genexus Evolution 2 U7, for java and I have a problem with the AddSchema command of the XMLReader data type.

I have a procedure that has an XML validation against an XSD, which falls on the following line:

&XMLReader.AddSchema(&Xsd.Trim(), Obt_ScHEMA_NAME())

where &Xsd is a variable of type varchar(256) of the location of the xsd file on the disk and the procedure ObtObt_ScHEMA_NAME() returns a string with the namespace.

Capturing the exception with java, the only thing it returns is the following:

http://apache.org/xml/properties/schema/external-schemaLocation/

I've already done the rebuild of everything, and tried a thousand things. The people of Artech do not answer me and I do not know what else to try.

Does anyone have any idea what else I can try?

Thank you.

    
asked by jam1981 04.02.2016 в 19:39
source

1 answer

1

In order for XML validation support against Schema to be available in your Java application you have to use the latest Xerces implementation.

ARTech's SAC # 17868 indicates how to proceed to have this implementation available .-

Please note what is mentioned there regarding:

  • use Sun's VM
  • add in the classpath the xercesImpl.jar
  • put the gxclassr in the common \ lib directory
  • put the xerces in the common \ endorsed directory
answered by 10.11.2016 / 14:12
source