/ Forums / Advansys Formativ / Creating Solutions with Formativ / Learning Formativ and using Forms and Fields / Reply To: Learning Formativ and using Forms and Fields

#7219
Support 1a
Participant

We don’t have a specific example, but you would use the XML DOM to access the elements in the XML. Formativ exposes the native Microsoft XML DOM, which means you can access all the members of the IXMLDOMDocument2 interface. See the following URL for more details:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/2dfe145d-c9a5-47d9-8ae3-7722befedd90.asp

In a nutshell, you would call Utilities.XMLDom in your applet to create an instance of the XML DOM wrapper. You would then load the XML from the body string of the message with a call like this:

set oDOM = Utilities.XMLDom

oDOM.LoadFromString(iMsg.BodyText.PlainText)

You would then be able to access the XML via the standard XML DOM interface. You should be able to find examples of this on the microsoft Web site mentioned above. You can also use XPath to locate specific nodes. Again, this is documented at the site mentioned above.

Regards,

Advansys Support