code: public InputStream toInputStream() {
          byte[] encoded = toXML().toString().getBytes(Charset.forName("UTF-8"));
          return new ByteArrayInputStream(encoded);
      }
docs: Return a {@link ByteArrayInputStream} that reads the bytes of the XML representation of this element.
  
  @return InputStream over xml.