XmlDec_<Type>_PDU methods can be used to replace asn1XD_<Type> methods.
Unlike the asn1XD_<Type> methods, the XmlDec_<Type> methods do not match an outer start tag but begin by decoding the content of the type. You must use rtXmlpMatchStartTag to match the outer start tag yourself.
Calls to rtInitContext should be replaced by calls to rtXmlInitContext
If you are not using one of the XmlDec_<Type> methods, you must use rtxCtxtSetFlag to set the OSASN1XER flag. This signals the generated and runtime code that XER, and not OSys-XER, rules apply.
xerSetDecBufPtr is replaced by using one of the rtxStream methods. For example,
if the buffer was read from a file, you can use stat = rtxStreamFileOpen
(pctxt, filename, OSRTSTRMF_INPUT);
Use rtxCtxtSetFlag to set the OSXMLC14N flag if you want to encode using canonical-XER (the OSASN1XER flag must still also be set).
ASN1XERDecodeBuffer is replaced with OSXMLDecodeBuffer. Note that OSXMLDecodeBuffer can be created on streams (there is no OSXMLDecodeStream corresponding to ASN1XERDecodeStream).
OSXMLDecodeBuffer does not have a >> operator. Replace buffer >>
myObject
with myObject.DecodeFrom(buffer)