Page 1 of 1

problem with xml parser in vqmod

Posted: Thu Feb 14, 2013 11:41 am
by preto
I tried to include some code ina admin template ( admin/view/template/catalog/product_form.tpl) using VQMOD, but the log returns this error: DOM UNABLE TO LOAD. Probably it is because of the kind of code Im triyng to input there. An example:

http://pastebin.com/UWjrezaQ

There are "<?php" , "?>" and more. Im trying to input some javascripts too. Is there a way to do that? Im already using CDATA and put "<?xml version="1.0" encoding="UTF-8"?>" in the beginning of the file.

If not, is there another way?

Re: problem with xml parser in vqmod

Posted: Thu Feb 14, 2013 5:17 pm
by welfordmedia
That's usually caused by an error with your XML.

Paste your xml here and someone can check it for you.

Re: problem with xml parser in vqmod

Posted: Thu Feb 14, 2013 11:25 pm
by preto
welfordmedia,

Thank you for your help. I found out the problem. It was because of special characters.
I took out some, but forgot others. Now it's working, I'm using html code for each one of then.

here is a list of the codes:

http://oreilly.com/xml/excerpts/unicode ... cters.html

Re: problem with xml parser in vqmod

Posted: Fri Feb 15, 2013 12:36 am
by Qphoria
welfordmedia wrote:That's usually caused by an error with your XML.

Paste your xml here and someone can check it for you.
Thought for sure you were going to say "Sounds like you need OpenStock" ;D