I am using a %GlobalStream to create as % stream.Object and writing that to a file but for some reason when I run that on the terminal I get <PARAMETER>zWrite^%Library.GlobalCharacterStream.1 and no file is created
I have tried the following here is my code and still get the same result any help appreciated
ClassMethod WriteNodes(myfile As %String){
set status=##class(%XML.TextReader).ParseFile(myfile,.textreader)
set ptemp=##class(%GlobalCharacterStream).%New()
//check status
if $$$ISERR(status) {do $System.Status.DisplayError(status) quit}
//iterate through document, node


I unable to change response Class.
