XMLDoc load using TempBlob

navinbnavinb Member Posts: 51
Hi,

I am trying to load an xmldocument from instream using TempBlob.NAV is properly updating tempblob and exporting as text.But when i try to load the same with xmldoc ,the system is creating a blank xml file .please suggest

CREATE(XMLDocOut,FALSE,ISSERVICETIER);
TempBlob.INIT;
TempBlob.Blob.CREATEOUTSTREAM(OutStr);
OutStr.WRITETEXT('<a>test');
OutStr.WRITETEXT('<b>test');
OutStr.WRITETEXT('<c>test</c></b></a>');
TempBlob.CALCFIELDS(TempBlob.Blob);
IF TempBlob.Blob.HASVALUE THEN BEGIN
//TempBlob.Blob.EXPORT('C:\test\test.txt');
TempBlob.Blob.CREATEINSTREAM(InStr);
XMLDocOut.load(InStr);
XMLDocOut.save('C:\test\Test11042011.xml');
END;

Thanks !!

Comments

  • navinbnavinb Member Posts: 51
    Sorry the xml was missing closing tag for root element </XXX>,it is now fixed.
Sign In or Register to comment.