PDA

View Full Version : XML Question - Need quick help


Deaths
03-02-2005, 02:30 PM
Hey there,

I'm writing an install script for my latest hack, and I use XML to import the templates.
Now, when I run the script, I get this error:
XML Error: not well-formed (invalid token) at Line 26

This is my line 26:

<phrase 1="$bbuserinfo[username]">$vbphrase[welcome_to_your_member_area]</phrase>
I don't have a clue what's wrong with this, so hopefully someone can help me out.

eva01_
03-02-2005, 02:39 PM
just a shot in the dark since i kinda suck at PHP and am still learning what happens if you put single quotes around username

Deaths
03-02-2005, 02:40 PM
Tried that :-/
Also tried putting a single quote around the whole thing, adding a double quote around username...

Thanks for the help anyway

Zero Tolerance
03-02-2005, 02:47 PM
It's possible its a line above or a couple of lines above causing the error, since i don't see anything wrong with that line.

- Zero Tolerance

filburt1
03-02-2005, 03:02 PM
Make sure it's inclosed in a CDATA wrapper to avoid the phrase tag being incorrectly parsed as XML itself.

Deaths
03-02-2005, 03:15 PM
Fixed guys, I forgot the CDATA wrapper

EDIT: Haha, I only noticed your post after I posted this one^^.
Anyway, thanks guys, you can expect vBMA to be released anytime soon :)