Data Definition

Jason Aller's Avatar

Jason Aller

15 Apr, 2011 06:08 PM

6.8 Production, data definitions give error message "Parsing error - document has more than one root element" for any poorly formed XML, not just multiple root elements.

Data definitions that worked in prior versions like drop down lists that included ampersands or double quote characters seem to cause this behavior.

Was tracking this down because it appeared to be related to problems with being able to render the edit pane for metadata for the pages that use one of our data definitions. The first error that tipped us off is that the browser was having trouble with one of the regex expressions that was in the data definition.

  1. 1 Posted by Jason Aller on 15 Apr, 2011 06:10 PM

    Jason Aller's Avatar

    Just tried creating a new data definition and putting the options

    "Harry"

    and

    Harry & June

    in the drop down caused this error.

  2. 2 Posted by Bradley Wagner on 15 Apr, 2011 06:57 PM

    Bradley Wagner's Avatar

    Jason, can you please attach a screenshot of the error message you're receiving. I'm seeing different behavior related to the unencoded ampersand?

  3. 3 Posted by Jason Aller on 15 Apr, 2011 07:08 PM

    Jason Aller's Avatar
    <system-data-structure>
      <text identifier="text1" label="text1"/>
      <text type="dropdown" identifier="text2">
        <dropdown-item value=""Harry""/>
      </text>
    </system-data-structure>
    

    Note the two double quotes around Harry

    upon submit yields the attached error message.

    Strangely even though this is badly formed xml it was accepted by the user interface in prior versions and worked in prior versions.

  4. 4 Posted by Ryan Griffith on 20 Jun, 2012 07:45 PM

    Ryan Griffith's Avatar

    Hi Jason,

    I was going through some older posts and saw that this one was not closed.

    Given the age of the discussion, I'm assuming this was resolved in a newer version of Cascade. I'm going to go ahead and close this discussion, feel free to respond or comment if you are still experiencing this issue or have additional questions.

    Thanks.

  5. Ryan Griffith closed this discussion on 20 Jun, 2012 07:45 PM.

Discussions are closed to public comments.
If you need help with Cascade CMS please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

 

26 Aug, 2016 01:19 PM
25 Aug, 2016 03:02 PM
25 Aug, 2016 12:50 PM
24 Aug, 2016 08:43 PM
24 Aug, 2016 07:20 PM
21 Aug, 2016 01:20 PM