Sie sind nicht angemeldet.

1

Sonntag, 14. November 2010, 17:22

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,

2

Sonntag, 14. November 2010, 17:36

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

Sonntag, 14. November 2010, 19:55

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

Montag, 15. November 2010, 19:55

Thanks for the tip ;-)

z

immersium

Schüler

Beiträge: 66

Wohnort: Chambéry, Savoie, France

Beruf: GM Multimedia Company

  • Nachricht senden

5

Sonntag, 16. Januar 2011, 18:44

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

Schüler

Beiträge: 89

Wohnort: Belgium

Beruf: Systems and Network Administrator

  • Nachricht senden

6

Sonntag, 27. Februar 2011, 12:58

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

Montag, 14. März 2011, 23:07

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

8

Dienstag, 15. März 2011, 15:19

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

Samstag, 19. März 2011, 12:02

Hi,

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

best regards,
Klaus

10

Samstag, 19. März 2011, 17:30

Any ideas with my code?

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

Cheer
Michael

11

Samstag, 19. März 2011, 20:55

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

Samstag, 19. März 2011, 21:05

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

13

Dienstag, 22. März 2011, 22:15

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

Mittwoch, 23. März 2011, 08:52

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

Donnerstag, 24. März 2011, 20:29

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

Schüler

Beiträge: 69

Wohnort: Grenoble, France

Beruf: Photo, ski, walk, outdoor activities

  • Nachricht senden

16

Montag, 27. Juni 2011, 11:31

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

Profi

Beiträge: 1 003

Wohnort: Netherlands

Beruf: Web developer

  • Nachricht senden

17

Montag, 27. Juni 2011, 12:15

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:

Quellcode

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/

18

Samstag, 6. August 2011, 08:50

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

Beiträge: 130

Wohnort: Venezia

Beruf: interactive pictures

  • Nachricht senden

19

Freitag, 26. August 2011, 18:17

I have xml error in:

Quellcode

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

Fortgeschrittener

Beiträge: 237

Wohnort: Bavaria, Germany

Beruf: Photographer, Producer

  • Nachricht senden

20

Samstag, 27. August 2011, 11:50

Zitat

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


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