title: PMML parsing with java + swing
body: <p>I want to parse a pmml document with java but the problem is pmml file needs variables and i couldnt find any solution how to handle it and Can i create a desktop application with jframe that is chosing pmml document with file chooser and using this ppml document and parsing it? Here is a sample like my document:</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;PMML xmlns="http://www.dmg.org/PMML-3_1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="3.1"&gt;
    &lt;Header copyright="Copyright (c) Integral Solutions Ltd., 1994 - 2007. All rights reserved."&gt;
      &lt;Application name="Clementine" version="12.0"/&gt;
      &lt;Annotation&gt;
        &lt;Extension extender="spss" name="Annotation" value="Exported with PMML extensions for use with SPSS SmartScore"/&gt;
  &lt;/Annotation&gt;
  &lt;/Header&gt;
    &lt;DataDictionary numberOfFields="4"&gt;
      &lt;DataField dataType="integer" name="AGE" optype="continuous"&gt;
        &lt;Extension extender="spss" name="storageType" value="numeric"/&gt;
  &lt;/DataField&gt;
      &lt;DataField dataType="integer" name="ASG" optype="continuous"&gt;
        &lt;Extension extender="spss" name="storageType" value="numeric"/&gt;
  &lt;/DataField&gt;
      &lt;DataField dataType="integer" name="LOS" optype="continuous"&gt;
        &lt;Extension extender="spss" name="storageType" value="numeric"/&gt;
  &lt;/DataField&gt;
      &lt;DataField dataType="double" name="CLAIM" optype="continuous"&gt;
        &lt;Extension extender="spss" name="storageType" value="numeric"/&gt;
  &lt;/DataField&gt;
  &lt;/DataDictionary&gt;
    &lt;GeneralRegressionModel functionName="regression" modelName="CLAIM" modelType="regression" targetVariableName="CLAIM"&gt;
      &lt;MiningSchema&gt;
        &lt;MiningField importance="3.141905e-002" name="AGE" usageType="active"/&gt;
        &lt;MiningField importance="1.106089e-001" name="ASG" usageType="active"/&gt;
        &lt;MiningField importance="8.579721e-001" name="LOS" usageType="active"/&gt;
        &lt;MiningField name="CLAIM" usageType="predicted"/&gt;
  &lt;/MiningSchema&gt;
      &lt;ParameterList&gt;
        &lt;Parameter label="(Constant)" name="(Constant)"/&gt;
        &lt;Parameter label="AGE" name="AGE"/&gt;
        &lt;Parameter label="ASG" name="ASG"/&gt;
        &lt;Parameter label="LOS" name="LOS"/&gt;
  &lt;/ParameterList&gt;
      &lt;FactorList/&gt;
      &lt;CovariateList&gt;
        &lt;Predictor name="AGE"/&gt;
        &lt;Predictor name="ASG"/&gt;
        &lt;Predictor name="LOS"/&gt;
  &lt;/CovariateList&gt;
      &lt;PPMatrix&gt;
        &lt;PPCell parameterName="AGE" predictorName="AGE" value="1"/&gt;
        &lt;PPCell parameterName="ASG" predictorName="ASG" value="1"/&gt;
        &lt;PPCell parameterName="LOS" predictorName="LOS" value="1"/&gt;
  &lt;/PPMatrix&gt;
      &lt;ParamMatrix&gt;
        &lt;PCell beta="3026.75352256067" df="1" parameterName="(Constant)" targetCategory=""/&gt;
        &lt;PCell beta="-33.4055068465629" parameterName="AGE" targetCategory=""/&gt;
        &lt;PCell beta="417.193612740793" parameterName="ASG" targetCategory=""/&gt;
        &lt;PCell beta="1105.64587462782" parameterName="LOS" targetCategory=""/&gt;
  &lt;/ParamMatrix&gt;
  &lt;/GeneralRegressionModel&gt;
  &lt;/PMML&gt;
  </code></pre>