title: Simple XSLT transformation into ABAP Object
body: <p>I'm again stuck with a transformation from XML into ABAP. This time, I want to put the XML data directly into an ABAP Object. <br>
  My XML looks like this:<br></p>
  
  <pre><code>&lt;qualityStatus&gt;
      &lt;address&gt;0&lt;/address&gt;
      &lt;bounceRisk&gt;0&lt;/bounceRisk&gt;
      &lt;checked&gt;1&lt;/checked&gt;
      &lt;domain&gt;1&lt;/domain&gt;
      &lt;domainScores&gt;
          &lt;domainScore&gt;
              &lt;domain&gt;gmx.de&lt;/domain&gt;
              &lt;score&gt;0.8333333134651184&lt;/score&gt;
          &lt;/domainScore&gt;
          &lt;domainScore&gt;
              &lt;domain&gt;ggs.de&lt;/domain&gt;
              &lt;score&gt;0.6666666269302368&lt;/score&gt;
          &lt;/domainScore&gt;
          &lt;domainScore&gt;
              &lt;domain&gt;xyz.de&lt;/domain&gt;
              &lt;score&gt;0.6666666269302368&lt;/score&gt;
          &lt;/domainScore&gt;
      &lt;/domainScores&gt;
      &lt;extSyntax&gt;1&lt;/extSyntax&gt;
      &lt;mailserver&gt;1&lt;/mailserver&gt;
      &lt;mailserverDiagnosis&gt;1&lt;/mailserverDiagnosis&gt;
      &lt;probability&gt;1&lt;/probability&gt;
      &lt;syntax&gt;1&lt;/syntax&gt;
  &lt;/qualityStatus&gt;
  </code></pre>
  
  <p><em>Edit: I changed back to a XSLT transformation, shortened to one attribute it looks like this:</em></p>
  
  <pre><code>&lt;xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sap="http://www.sap.com/sapxsl" version="1.0"&gt;
  &lt;xsl:output encoding="iso-8859-1" indent="yes" method="xml" version="1.0"/&gt;
  &lt;xsl:strip-space elements="*"/&gt;
  &lt;xsl:template match="/qualityStatus"&gt;
      &lt;asx:abap version="1.0" xmlns:asx="http://www.sap.com/abapxml"&gt;
          &lt;asx:values&gt;
              &lt;ROOT href="#o26"/&gt;
          &lt;/asx:values&gt;
          &lt;asx:heap xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                    xmlns:abap="http://www.sap.com/abapxml/types/built-in"
                    xmlns:cls="http://www.sap.com/abapxml/classes/global"
                    xmlns:dic="http://www.sap.com/abapxml/types/dictionary"&gt;
              &lt;cls:ZCL_ADDRESS_QUALITY id="o26" &gt;
                  &lt;local.ZCL_ADDRESS_QUALITY&gt;
                      &lt;W_ADDRESS&gt;
                          &lt;xsl:value-of select="address"/&gt;
                      &lt;/W_ADDRESS&gt;
                      &lt;!--More attributes here--&gt;
                  &lt;/local.ZCL_ADDRESS_QUALITY&gt;
              &lt;/cls:ZCL_ADDRESS_QUALITY&gt;
          &lt;/asx:heap&gt;
      &lt;/asx:abap&gt;
  &lt;/xsl:template&gt;
  </code></pre>
  
  <p></p>
  
  <p>My object attributes are all public right now, because I thought this could be the problem. However, setter and getter do exist. Yes, my class does implement the interface if_serializable_object.</p>
  
  <pre><code> DATA:
    w_address             TYPE char1,
    w_bouncerisk          TYPE char1,
    w_checked             TYPE char1,
    w_decoded             TYPE stringval,
    w_domain              TYPE char1,
    w_domainscores        TYPE z_domainscore_t, "Table type for name + score
    w_extsyntax           TYPE char1,
    w_mailserver          TYPE char1,
    w_mailserverdiagnosis TYPE char1,
    w_probability         TYPE char1,
    w_syntax              TYPE char1,
    w_syntaxwarnings      TYPE z_syntaxwarnings_t. "Table of syntaxwarnings
  </code></pre>
  
  <p>Finally, I call my transformation with an instance of my class:</p>
  
  <pre><code>CALL TRANSFORMATION zst_addressquality
        SOURCE XML lw_xml
        RESULT result = lo_addressquality.
  </code></pre>
  
  <p>Now, when debugging through the transformation code, it successfully notices all fields of the given lw_xml and appears to write them into the object lo_addressquality. But the object attributes stay empty afterwards. <br>
  When testing the serialization, I can access result which contains my object, but result-w_address (and all others) are empty. <br>
  While testing, I created a structure with completely identical names and types. With it, it worked as intended. <br>
  <br>
  What am I missing? Is there anything else I have to watch out for when working with transformation into ABAP Objects?
  _Edit: After changing to the XSLT, I can get until W_ADDRESS before my code throws an CX_XSLT_ABAP_CALL_ERROR. So, I'm still not able to access the object'S attributes properly. :|_</p>