Skip to Content
avatar image
Former Member

Passing of XML or XML type characters to Visual Composer Application

Hi All,

It seems that passing XML or even just "<" or ">" into VC as part of a parameter value does not work.

i.e. Using

&_paramsXmlStr_=<Params><Row myData="test"></Params>

passes "test" into "myData" fine, but using

&_paramsXmlStr_=<Params><Row myData="<test"></Params>

&_paramsXmlStr_=<Params><Row myData="<test"></Params> or

&_paramsXmlStr_=<Params><Row myData="%3Ctest"></Params>

doesn't.

Anyone know how to get around this issue or whether this is supported at all (no notes exist on this issue)?

Thanks in advance,

Matt

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 21, 2007 at 09:04 AM

    Hi Matt,

    seems to be the same problem with ampersand and other special character.

    As a solution you must use a workaround, use as formula:

    CHR(60) for <

    CHR(62) for >

    This should work for <Params>:

    CHR(60) & "Params" & CHR(62)

    Best Regards,

    Marcel

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks Marcel but this really is not a work-around that I can implement in a easy-maintenance manner. For now; I'm using BSP instead and will recommend this be implemented using Web Dynpro in the end.

      Possibly Visual Composer supports a HTTP post for this XML which could get around this. (Actually - I may just test this scenario).

  • Sep 04, 2007 at 02:49 PM

    Hi Matt,

    Have you tried to URL encode this xml? This should work.

    Regards,

    Natty

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Netanel Slomianski

      Thanks for the investigation and clarification. This would be a great feature to have as the design of letting external app's call Visual Composer with an XML string and having the back-end process this is a very cool concept.

      That said, if we can build an XML parser operating that can convert XML input into a structure automatically; that would really be a good VC feature for interoperability.

      Regards,

      Matt