Editing and Compiling the .xsd File

The following procedure shows how to edit and compile the .xsd file for extending survey field mapping.

To edit and compile the .xsd file

  1. Add the new column value (for example, Income) to websurveys\WEB_INF\classes\ schemaorg_apache_xmlbeans\src\surveyResponse.xsd under surveyResponse. For example, add this entry for the new column value:

    <xsd:element name="Income" type="xsdLocal2:string30" minOccurs="0" />
    
  2. Recompile the modified surveyResponse.xsd using the command:

    $XMLBEANS_HOME\bin\scomp -src src -d bin -out surveyResponse.jar -compiler 
    C:\Sun\SDK\jdk\bin\javac surveyResponse.xsd
    
    Note: The JDK directory must be included in the path.
    Caution: To avoid runtime errors, use compatible versions of the JDK and XMLBeans.

    For information on supported versions of software, see the Certifications tab on My Oracle Support.

  3. Copy the newly created surveyResponse.jar file into the websurveys\WEB_INF\lib directory.

  4. Take a survey from the newly created landing site and confirm that the responses are being imported to the Siebel Web server.