Certain Characters Must Be Escaped When Using Transaction Protocol

The information in this article applies to product: e-Work 6.x

Issue

  • Data being sent to the e-Work engine using the Transaction Protocol is not being written to the database and is generating errors in the Windows application event log.

    Errors may be similar to the following:
    "Unable to load xml into DOM. Error(-1072896749) : Whitespace is not allowed at this location."
    or
    "Unable to load xml into DOM. Error(-1072896764) : A name was started with an invalid character."

Resolution

  • In XML, certain characters may need to be escaped before being sent to the e-Work engine (e.g. - data, which a user enters on a form, that is passed to the e-Work engine using the TP). These characters include:

    Character Escape Value
    ampersand (&) \&
    less than (<) \<
    greater than (>) \>
    double quote (") \"
    single quote (&\#39;) \'
Tagged: