The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
LF Help on XML : Parsing error on equal sign, obvious something wrong - SOLVED!
working on generating a xml file,
PHP Code:
And appears fine when looking in notepad or textreader.. But if i preview in a browser, or wysw...editor its bugged browsers write Parse error, and a pointer is pointing to the equal sign. <userid="1"> -------^ so i thought maybe i needed to change equal sign to html with & PHP Code:
Partial of the generated xml file Code:
<?xml version="1.0" encoding="ISO-8859-1"?> <users> <userid="1"> <username>Eqvaliser</username> <email>martin@localhost</email> <usertitle>Administrator</usertitle> </userid> </users> And im thinking it might be i need to exscape the = sign in another way.. any advice . ? --------------- Added [DATE]1272194760[/DATE] at [TIME]1272194760[/TIME] --------------- Partial solved.... Adding a space to userid to user id works Code:
$_xml .="<user id".'='."\"" . $row['userid'] . "\">\r\n"; </user id> -------^ Code:
$_xml .="<".'/'."user id>\r\n"; --------------- Added [DATE]1272195046[/DATE] at [TIME]1272195046[/TIME] --------------- SOLVED Working loop is PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|