XML Streams and biztalk

trifftriff Member Posts: 23
edited 2001-03-29 in Navision Financials
Has any body been able to get steams and xml to work from navision solutions beta 3.0. Iseam to be able to create and write to the streams but always fail to save the xml file.
I think I am missing something and will have to play with VB to work out how to use XMLDomDoc over the weekend. But if any one has got it to work can they tell us how.
And now that XML is going to take over the world??? how do we use Biztalk and navision together.

pAUL bAXTER

Comments

  • trifftriff Member Posts: 23
    ok I now know I am missing a dtd file or document type definition file. It does help to read a bit about xml first. So can anybody help in geting the code examples for steams in the help file working. I think all I am missing is the dtd file??
    The code is as follows:-

    // Firstly, we define the record number we want to use.
    recEmployee."No." := '5555';
    // We now load the XML DOM, which will pass the OutStream to the external object.
    XMLDom.load('SomeData.xml');
    recEmployee.Picture.CREATEOUTSTREAM(StreamOutObj);
    StreamOutObj.WRITE('Ver. 1.00');
    // Write version.
    StreamOutObj.WRITE('Company Ltd.');
    // Write (c).
    StreamOutObj.WRITE(TODAY);
    // Write a DATE (today).
    // The following information will be written as plain text.
    StreamOutObj.WRITETEXT('Dear Customer,');
    StreamOutObj.WRITETEXT();
    // This inserts a carriage return and a new line.
    StreamOutObj.WRITETEXT('We would like to thank you for your help.');
    StreamOutObj.WRITETEXT();
    StreamOutObj.WRITETEXT('We hope to see you soon!');
    StreamOutObj.WRITETEXT();
    XMLDom.save(StreamOutObj);
    recEmployee.MODIFY();
Sign In or Register to comment.