Uploaded image for project: 'Axiom'
  1. Axiom
  2. AXIOM-323

OMElementImpl.getText() returns an empty String for text in CDATA tags

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • any

    Description

      AXIOM supports building OM structures with CDATA elements. For an example something like,

      soapFactory.createOMText(parentNode, "some text",XMLStreamConstants.CDATA);

      is perfectly valid and delivers the expected result. But when traversing such an OM structure calling parentNode.getText() returns an empty String. Instead it would have been better if it returned the String without the CDATA tags. For an example calling getText() on an element like,

      <parentnode><![CDATA[some text]]></parentnode>

      should return the String, "some text".

      Attachments

        1. svndiff.patch
          0.8 kB
          Hiranya Kasub Jayathilaka

        Activity

          People

            gdaniels Glen Daniels
            hiranya Hiranya Kasub Jayathilaka
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: