Index: TECH/XmlObjectUtils.cls.xml =================================================================== diff -u -r3019 -r3264 --- TECH/XmlObjectUtils.cls.xml (.../XmlObjectUtils.cls.xml) (revision 3019) +++ TECH/XmlObjectUtils.cls.xml (.../XmlObjectUtils.cls.xml) (revision 3264) @@ -22,16 +22,52 @@ #define NoXMLDeclaration 0 #define IndentTags 1 - If ('Dto.%Extends("%XML.Adaptor")) { - Do ##class(TECH.ExceptionHandler).Throw(##class(TECH.Exceptions.InvalidInputException).%New("XmlObject is niet ondersteund ("_Dto_").")) + Do:$$$Not(Dto.%Extends("%XML.Adaptor")) ##class(TECH.ExceptionHandler).Throw(##class(TECH.Exceptions.InvalidInputException).%New("XmlObject is niet ondersteund ("_Dto_").")) + + Try { + Do ..ProxyToXMLStream(Dto, XMLStream, .TopTag, $$$IndentTags, $$$AllowEmptyProxy, $$$NoXMLDeclaration) + } Catch { + #dim Exception As TECH.Exceptions.StatusException = ##class(TECH.ExceptionHandler).Catch("TECH.Exceptions.StatusException") + Do ##class(TECH.ExceptionHandler).Throw(##class(TECH.Exceptions.StatusException).%New(##class(TECH.enu.ExceptionCode).GeneralError(),"ProxyToXMLStream Failed",Exception.GeefStatus())) } +]]> + + + +1 +pxObj:%XML.Adaptor,DataStream:%Stream.Object,TopTag:%String,blnIndentTags:%Boolean=0,AllowEmptyProxy:%Boolean=0,NoXMLDeclaration:%Boolean +1 +