Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Converting String to XMLDataType

As title, is there any way I can convert a String to XMLDataType?

I tried to assign it and I tried to type-cast it but it wouldn't let me do either one.

XMLDataType _XML;

String _stringXML = "<?xml version='1.0' ?> <text> Hello </text>";

_XML = _stringXML;


_XML = (XMLDataType) _stringXML;

Thank you.

Former Member
Not what you were looking for? View more on this topic or Ask a question