Discuss this help topic in SecureBlackbox Forum

TElXMLSOAPClient.OnFormatText

TElXMLSOAPClient     See also     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


This event is fired during processing of the message text.

Declaration

[C#]
    event TSBXMLFormatTextEvent OnFormatText;
    delegate void TSBXMLFormatTextEvent(Object Sender, ref string Text, TElXMLTextType TextType, int Level, string Path);

[VB.NET]
    Event OnFormatText As TSBXMLFormatTextEvent
    Delegate Sub TSBXMLFormatTextEvent(ByVal Sender As Object, ByRef Text As String, ByVal TextType As TElXMLTextType, ByVal Level As Integer, ByVal Path As String)

[Pascal]
    property OnFormatText : TSBXMLFormatTextEvent;
    TSBXMLFormatTextEvent = procedure(Sender : TObject; var Text : XMLString; TextType : TElXMLTextType; Level : Integer; const Path : XMLString) of object;

[C++]
    void get_OnFormatText(TSBXMLFormatTextEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnFormatText(TSBXMLFormatTextEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBXMLFormatTextEvent)(void * _ObjectData, TObjectHandle Sender, sb_char16_t * pcText, int32_t &szText, TElXMLTextTypeRaw TextType, int32_t Level, const sb_char16_t * pcPath, int32_t szPath);

[PHP]
    TSBXMLFormatTextEvent|callable|NULL get_OnFormatText()
    void set_OnFormatText(TSBXMLFormatTextEvent|callable|NULL $Value)
    callable TSBXMLFormatTextEvent(TObject $Sender, string &$Text, integer $TextType, integer $Level, string $Path)

[Java]
    TSBXMLFormatTextEvent getOnFormatText();
    void setOnFormatText(TSBXMLFormatTextEvent Value);
    TSBXMLFormatTextEvent.Callback OnFormatText = new TSBXMLFormatTextEvent.Callback() {
        public String TSBXMLFormatTextEventCallback(TObject Sender, String Text, short TextType, int Level, String Path) {
            //...
        }
    }

Parameters

  • Level - nesting level of the current XML node.
  • Text - XML text being formatted.
  • Path - path to the element being formatted.
  • TextType - the type of the text being formatted.
  • pcText - XML text being formatted.
  • szText - the length of pcText.
  • pcPath - path to the element being formatted
  • szPath - the length of pcPath.

TElXMLTextType values

Description

This event is fired when a message is being saved. The event handler could be used to format the output and shows the text which is currently being processed.

See also:     OnFormatElement    

Discuss this help topic in SecureBlackbox Forum