Form Error: The value of attribute "value" associated with an element type "input" must not contain the '<' character.

pinaydiver's Avatar

pinaydiver

17 Apr, 2012 07:37 PM

Hello,

I've encountered an error: Error on line 78: The value of attribute "value" associated with an element type "input" must not contain the '<' character.

  1. Support Staff 2 Posted by Charlie Holder on 17 Apr, 2012 11:16 PM

    Charlie Holder's Avatar

    I think your issue might stem from these initial lines:

    #set($myDataBlocks = $_XPathTool.selectNodes($contentRoot, "//calling-page/system-page/system-data-structure"))
    
    ## Lets get the objects I need
    #set($myFormConfig = $_XPathTool.selectNodes($contentRoot, "//calling-page/system-page/system-data-structure/form_config"))
    

    The .selectNodes method returns a list.

    Later you reference the $myFormConfig variable as if it is an XML Element reference. The items IN the list may be XML Element references, but the variable itself it not. So a reference to that variable, even if it contains only 1 element, will be a list.

    This is probably what is causing the error. It seems like it's trying to insert an XML node into the output rather that actually grabbing the value of it for your $mySuccessPage and $myErrorPage variables.

    Are there multiple //calling-page/system-page/system-data-structure/form_config nodes?
    Are there multiple //calling-page/system-page/system-data-structure nodes?

    I'm seeing the .selectNodes method in both lines near the very top.

    Hopefully this helps.

  2. 3 Posted by pinaydiver on 01 May, 2012 01:20 PM

    pinaydiver's Avatar

    Thanks Charlie! You may close this discussion now. Last one, could you please delete the file attachment ?

  3. Charlie Holder closed this discussion on 01 May, 2012 04:50 PM.

Comments are currently closed for this discussion. You can start a new one.