View Full Version : XML Parse error - not well formed bit.
sachagriffin
12-17-2007, 04:50 AM
Is there anything that can be done to get the xml templates to validate?
I reuse this xml file in php with an php parser library. If the xml doesn't validate proper, the php parser blows chunks and the php as well.
Specifically what invalides the xml is onclick=loadpano(?panoname.. &)
the ? and & bits.
cheathamlane
12-17-2007, 02:25 PM
You might want to check another thread or two here in the forums Sacha -- this has come up recently.
Things to try include HTML-encoding, URL-encoding and/or using CDATA, to slip things past PHP.
http://flashpanoramas.com/forum/showthread.php?t=754
zleifr
12-17-2007, 05:06 PM
You can forego the ? in loadPano(?panoName.... And FPP may like you better for it, specifically with the leash parameter, which seems to dislike that ? intensely, and stop working if the ? is there.
See Patrick's response for the other problems.
cheathamlane
12-17-2007, 05:30 PM
Oh, look at that -- thanks for the tidbit Zephyr!
sachagriffin
12-17-2007, 08:24 PM
removing the ? and converting the & to & solved the xml problem. and still allowed the extra passed variables to work.
Thank Zleifr!!
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.