Formatting Xml In Script Agent

You can easily create and use XML from within a form or page, you just click
the Form/Page Option, "Treat contents as HTML", so that Domino won't create the
HTML Header tags automatically.

But, creating a LotusScript agent that Prints XML to the browser, by default,
will have the <HTML> and <HEADER> tags. Then, your browser won't interpret
your Print statements as XML.

To prevent Domino from creating those HTML tags, use this line as your first
Print output to the browser: Print "Content-type: text/xml"
Print "Content-type: text/xml"
This was first published in November 2000
This Content Component encountered an error



Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:




  • iSeries tutorials's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...