Generate XML from XPages content in Lotus Domino

Please, tell me - how i can create XML from content of the fields on XPage, on button click (in Lotus Domino 9)? Thanks in advance for the information.

Now i'm trying to create an agent that will do this, but i still don't understand - how to assign the execution of this agent to a button

Upvotes: 0

Views: 70

Answers (1)

stwissel
stwissel

Reputation: 20384

what you are looking for is an XAgent, a piece of code you can trigger with a link or wire it to an XPages button. To simplify your XML creation, you can use the SimpleXMLDoc class that ensures you create valid XML (Don't try to use String operations, they are a pain for XML).

Upvotes: 1

Related Questions