Creating xml Document?

SRRSRR Member Posts: 9
Hi there,

Am kind of newbie in Navision programming.

Can anyone let me know how to create xml document in Navision? Any code snippets as example will be highly appreciated.

Thanks in advance...

Regards
Srr

Comments

  • krikikriki Member, Moderator Posts: 9,118
    You can start with reading the w1w1adg.pdf -manual on how to create XML-ports.
    You can also Search the forum.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • SRRSRR Member Posts: 9
    Hi kriki,

    Thanks a lot for your suggestion. Appreciated!!!

    Is there any way to create a xml document using a xml dom object? Sorry for not describing my requirements. I assumed that the only way to create a xml doc is by using a DOM object (am a newbie).

    How can we create a xmldocument using a dom object?

    Regards
    Srr
  • krikikriki Member, Moderator Posts: 9,118
    If you use Navision 4.0, you can better do it with an XML-port.

    The other versions have some codeunits that use automations for creating XML-documents. But I never used them.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • SRRSRR Member Posts: 9
    Am using a Navision 370 client. Any way out??
  • ta5ta5 Member Posts: 1,164
    You have to use XMLDOM as automation. There are tons of examples in navision 3.x (biztalk, etc).
  • wonmowonmo Member Posts: 139
    I've used DOM in Nav to create xml docs. An easy way is to load a blank xml file and then just create whatever elements you require.

    The classes I used were:

    DOMDocument
    IXMLDOMNode
    IXMLDOMElement

    Hope this helps.
  • naimish_hitnaimish_hit Member Posts: 111
    Hi,

    I am using Navision 4.0 SP1 with Employee Portal.

    I have same problem and as I am also newbie.

    Is there any specific steps for creating XML document?

    With Best Regards,

    Naimish Dave
    Naimish Dave
    (Software Engineer)
  • DenSterDenSter Member Posts: 8,307
    Open object designer, click on the codeunit button and set a filter on the name field for *XML*. Steal code as needed :). you can use XMLPorts, but still I would put the results into a DOMDocument object.
  • RallnusRallnus Member Posts: 79
    Where can I find w1w1adg.pdf ??
    Rallnus (Yamaha FJ1200 - '89 / 25th anniversary was great!)
  • KowaKowa Member Posts: 925
    Rallnus wrote:
    Where can I find w1w1adg.pdf ??
    On the installation disc in the "Doc"-Folder
    Kai Kowalewski
Sign In or Register to comment.