Error "might be bug"

mabdelkarym's Avatar


19 May, 2016 03:21 PM

I'm trying to have this xml tag in velocity and it keeps giving error

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

An error occurred while rendering asset preview: Error on line 4: The processing instruction target matching "[xX][mM][lL]" is not allowed.

How to solve it?


  1. 1 Posted by Wing Ming Chan on 19 May, 2016 03:47 PM

    Wing Ming Chan's Avatar


    I used:

    <!--#protect<?xml version="1.0" encoding="UTF-8" standalone="no"?>#protect-->
    and it went through without the error.


  2. 2 Posted by mabdelkarym on 19 May, 2016 05:57 PM

    mabdelkarym's Avatar

    I did try that but it's not coming as part of the final page that has the xml.
    What do you suggest?

  3. 3 Posted by Ryan Griffith on 19 May, 2016 06:04 PM

    Ryan Griffith's Avatar


    If this is being applied to a specific Page output, there is an option at the Output level to include the XML declaration at the top of the published content. I would recommend going that route instead of injecting the declaration using your Format.

    Please let me know if you have any questions.


  4. 4 Posted by mabdelkarym on 19 May, 2016 09:17 PM

    mabdelkarym's Avatar

    Thank you this solved my problem.

  5. Support Staff 5 Posted by Tim on 19 May, 2016 09:37 PM

    Tim's Avatar

    Thanks for the update! Glad to hear you've got this resolved.

    Take care.

  6. Tim closed this discussion on 19 May, 2016 09:37 PM.

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

Keyboard shortcuts


? 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