Based on your other message, did you do this in an EXE?
IAC, please take the code *out* of your custom class, it is just test code so we could get at the XML, not meant to be run in an application of *any* kind.
Ensure that _reportoutput has an appropriate value (which, right now, it probably would not in an EXE). By default, that would be HOME() + "reportoutput.app".
The file referred to in _reportoutput must exist and, to run the test code I wrote for you, it has to be the app delivered with the product (using the _oReportOutput collection is leveraging something specific to that app).
Assuming the above conditions are true, in a simple test program, the below program should work.
I am asking you to try it out with the report that didn't provide any HTML contents, so we can see exactly why that is:
DO (_REPORTOUTPUT) WITH 4
WITH _oReportOutput["4"]
.includeBandsWithNoObjects = .T.
.includeFormattingInLayoutObjects = .T.
.TargetFileName = "c:\temp\x.xml"
ENDWITH
REPORT FORM ? OBJECT TYPE 4
MODI FILE c:\temp\x.xml
TIA,
>L<