You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Sunday, November 14th 2010, 5:22pm

XML parsing error check list

we should make a check-list of all the syntax errors causing an xml parsing error with html5 iphone,
because in flash errors stay silent :

in case of errors, check in your .xml if there is :

-attributes in double for the same plugin/hotspot
-every plugin/hotspot have start and end tags
-function end by ";"
-every comments have start and end tags : <!-- blablabla --> (beware of : <!-- <!-- blablabla --> : this cause errors )
- not 3"-" in comment <!-- blablabla --- blibli --> (replace by <!-- blablabla // blibli -->)

once i eliminated all above, no more errors,
you may complete this list if you find and fix something else

z,

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

2

Sunday, November 14th 2010, 5:36pm

Hi zadda,

Great idea *thumbup* ...

  • Make sure included xml files have the <krpano> .... </krpano>!!! Without, it seems to not be parsed correctly... reference post ....

SAlut.

3

Sunday, November 14th 2010, 7:55pm

Hi,

for testing a XML I would simply recommend to open it directly in a Desktop Browser,
they should show where the errors are,

here some additional informations and an online xml validator:
http://www.w3schools.com/xml/xml_syntax.asp
http://www.w3schools.com/xml/xml_validator.asp

best regards,
Klaus

4

Monday, November 15th 2010, 7:55pm

Thanks for the tip ;-)

z

immersium

Trainee

Posts: 66

Location: Chambéry, Savoie, France

Occupation: GM Multimedia Company

  • Send private message

5

Sunday, January 16th 2011, 6:44pm

Thanks a million for the tip, helped me to save a lot of time!!!
Websites : Immersium
Facebook page : http://www.facebook.com/pages/Immersium/131615226886648
Nikon D300 + Nikkor 10.5mm + 360Precision Absolute
Gigapan + Canon G9

rdhoore108

Trainee

Posts: 89

Location: Belgium

Occupation: Systems and Network Administrator

  • Send private message

6

Sunday, February 27th 2011, 12:58pm

loading or parsing failed!

I'm also suffering from this problem. The iPad says "http://www.virtualtour.be/_asp/tour/krpano.xml - loading or parsing failed!" when loading http://www.virtualtour.be/vtrs/cambier/P9garden.

The XML validator mentioned above says everything is fine.
The xml file itself also loads fine in IE, Safari (PC) and iPad itself.

What would be the best approach to finding the reason? Thanks.

Best regards,
Ronny
- Ronny D'Hoore

7

Monday, March 14th 2011, 11:07pm

Hi Guys... I seem to be suffer from a syntax error also.

But for some reason this only happens for some cases.

For example the following URL works fine:
http://goo.gl/er43d

Perfect, job done.

But when I then place this on my blog:
http://goo.gl/Y5i82

I get an error. So damn close.

So is the code within the blog causing issues. The code Im using is as follows:

<script src="http://www.fullvisual.co.uk/blog/natgal.js"></script>

<div id="pano" style="width:540px; height:350px;">
<noscript><table style="width:100%;height:100%;"><tr
style="valign:middle;"><td><div style="text-align:center;">ERROR:<br/><br/>Javascript
not activated<br/><br/></div></td></tr></table></noscript>
<script>
embedpano({swf:"http://www.fullvisual.co.uk/blog/natgal.swf",
xml:"http://www.fullvisual.co.uk/blog/natgal.xml", target:"pano"});
</script>
</div>

Is that causing issues?

Cheers

rbackhaus

Trainee

Posts: 66

Location: connecticut usa

  • Send private message

8

Tuesday, March 15th 2011, 3:19pm

help missing semi colon

hi guys,
along the same lines,....having a problem here

onclick="openurl(http://www.ctmls.mlxchange.com/Pub/Email…FD&t=HFD,_blank);"


http://www.ctmls.mlxchange.com/Pub/Email…226&s=HFD&t=HFD

vai idater says Ihave a missing semi colon,...works on desktop,...error is with iphone

I'm guessing the page link exetensions EmailView.asp?r=219515226&s=HFD&t=HFD are causing the errors,....any ideas

Rob

9

Saturday, March 19th 2011, 12:02pm

Hi,

try replacing the '&' characters in the url with '&amp;'
then it should work,

best regards,
Klaus

10

Saturday, March 19th 2011, 5:30pm

Any ideas with my code?

Thanks for the help this has been bugging me all week!

Cheer
Michael

11

Saturday, March 19th 2011, 8:55pm

Michael ,

Your blog works for me on IE8. but fails on iPhone. I believe it might have to do with the apps.fullvisual.co.uk. Probably a crossdomain issue.

Jarred

12

Saturday, March 19th 2011, 9:05pm

Yeah same... works on all browsers but not on the iphone or ipad. Very odd. Why would this break for mobile devices? Can it be the cross domain issue and if so why just the ipad and iphone?

Hope it isnt as I cant place files on app.fullvisual.co.uk


Cheers
Michael

rbackhaus

Trainee

Posts: 66

Location: connecticut usa

  • Send private message

13

Tuesday, March 22nd 2011, 10:15pm

still no luck,..for others though

Special Characters and XML Strings
XML has a special set of characters that cannot be used in normal XML strings. These characters are:

& - &amp;
< - &lt;
> - &gt;
" - &quot;
' -'

for some reason I cant copy the last one

http://www.devx.com/tips/Tip/14068

14

Wednesday, March 23rd 2011, 8:52am

Hi,
Your blog works for me on IE8. but fails on iPhone. I believe it might have to do with the apps.fullvisual.co.uk. Probably a crossdomain issue.
right, the crossdomain access from "apps.fullvisual.co.uk" to "www.fullvisual.co.uk" is the problem,
that's not possible in Javascript,

best regards,
Klaus

15

Thursday, March 24th 2011, 8:29pm

Hi All,

Thanks for the help on this. Damn shame will have to see if the files can be moved to the same location

Cheers
Michael

vincen

Trainee

Posts: 69

Location: Grenoble, France

Occupation: Photo, ski, walk, outdoor activities

  • Send private message

16

Monday, June 27th 2011, 11:31am

Hi,
Your blog works for me on IE8. but fails on iPhone. I believe it might have to do with the apps.fullvisual.co.uk. Probably a crossdomain issue.
right, the crossdomain access from "apps.fullvisual.co.uk" to "www.fullvisual.co.uk" is the problem,
that's not possible in Javascript,

Do you mean that for iPod/iPad version to work it needs JS, xml and tiles files all on same server ? as I get JS on my wordpress server, but XML and tiles on an other one (use S3 for these files as it takes a lot of place !).

Thanks,

VIncèn
http://www.skivr.com (my blog)
http://magasin.skivr.com (my online shop for all panoramas and photography stuffs)

Zephyr

Professional

Posts: 994

Location: Netherlands

Occupation: Web developer

  • Send private message

17

Monday, June 27th 2011, 12:15pm

What people could do to help with their debugging:

Install a good editing program that supports DTD (notepadd++ (free) or phpstorm (paid but well worth it!) or eclipse (free))
you install a dtd by downloading this file: https://github.com/nelk1/krpano_dtd
add the line:

Source code

1
2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE note SYSTEM "krpano.dtd">


to the top of your krpano file.

Now if you type for instance <acti you can press ctrl + space to autocomplete it. If you press enter, it will automatically add </action> behind it.

if you add a property called enbld, it will mark in red that the property does not exist (because the property is called enabled). You can alsoo validate xml, if you for instance forget a " somewhere it will say which line.

This will ofcourse not validate your actions, and unexpected behaviours. Just the errors.

mind you, that dtd is written for 1.07 so it will miss some stuff.

The tutorial in french: http://www.nicolasburtey.net/une-dtd-pour-krpano/
3d childrens game using krpano Game
Minify your xml with my krpano XML Compressor
Krpano XML Parsing Error Checklist
Available for hire (krpano xml, javascript, actionscript, flash, php and ipad plugins).

18

Saturday, August 6th 2011, 8:50am

I used the "XML Nanny " program from the app store - with the above mentioned DTD file - It helped me target my xml errors almost instantly on the ipad even though the xml was working fine in a desktop browser - saved me much anguish (and time)!

I couldn't figure out how to use the DTD in TextWrangler , so it was a pretty good solution for debugging XML - all for $1.99

Posts: 130

Location: Venezia

Occupation: interactive pictures

  • Send private message

19

Friday, August 26th 2011, 6:17pm

I have xml error in:

Source code

1
2
3
4
5
6
7
<action name="re">
	oninterrupt(break); loadscene(scene_reception,
	view.hlookat=-54.0&view.vlookat=13&view.fov=117,
	MERGE, BLEND(3,2));                         	
	wait(blend);
	lookto (33,5,61, smooth(20,20,20));
</action>


Firefox say it is here
view.hlookat=-54.0&view.vlookat=13&view.fov=117,
---------------------------------------^
How this happens?!
:-(
not working on ipad!!!!

jschrader

Intermediate

Posts: 237

Location: Bavaria, Germany

Occupation: Photographer, Producer

  • Send private message

20

Saturday, August 27th 2011, 11:50am

Quoted

view.hlookat=-54.0&view.vlookat=13&view.fov=117,


ciao luca,
get rid of the ampersands and take care which editor you use. ;)