How to put a stream into a HS.SDA3.Container?
Please help,
I'm using a SearchAndFetchRequest to retrieve a full SDA3 Container from the ACCESS gateway. The response is presented in the pResponse.SearchAndFetchGeneralResult.XMLData property. This property is of type string. I want to put the data from this property in a HS.SDA3.Container and then use this container is a dtl for translation purposes. My current data in the XMLData property is too large to fit in a string. Therefore I'm searching for a way to convert te data to a stream and that import the stream into my Container...
When i read the documentation of the HS.SDA3.Container the only method to do such a thing is XMLImportSDAString. This doesn't work for a stream i think...
Can somebody help?
Comments
Normally we don't put the full SDA into a Container object because it can be quite large. Instead, you are supposed to loop through the streamlets and put each into an object (there are methods for doing this). Do you really need the full SDA as an object?
Maybe you can use the ##class(%XML.Reader).Correlate method.