You are not logged in.

Run

Beginner

  • "Run" started this thread

Posts: 41

Location: maryland. USA

Occupation: Photographer

  • Send private message

1

Tuesday, September 7th 2010, 1:26pm

Google maps plugin "XML parser error: Unterminated Attribute (#1095) "

I am using the following source from the googlemaps example to insert the googlemap into my panorama, when I try to load the html file I get the following error;

skin/defaultskin.xml - XML parser error: Unterminated Attribute (#1095)


I take this to mean that one of the attributes has a missing closing double quote " or ending tag />. Unfortunately I can not find the offending attribute to fix it. I removed the following code from the defaultskin.xml and it works fine without this in it, which I take to mean the error is definitely in the code here.


<plugin name="maps"
url="%SWFPATH%/plugins/googlemaps.swf"
keep="true"
handcursor="false"
align="leftbottom"
x="10"
y="10"
width="300"
height="300"
key=">>############################################################################################<<"
lat="38.910267"
lng="78.966994"
zoom="18"
maptype="SATELLITE"
dragging="true"
scrollwheel="true"
continuouszoom="false"
keyboard="false"
crosshairs="false"
onmapready=""
onmapmoved=""
onmapzoomed=""
/>


size="100"
alpha="0.5"
fillcolor="0xFFFFFF"
fillalpha="1.0"
linecolor="0xFFFFFF"
linealpha="0.0"
linewidth="0.0"
glow="true"
glowcolor="0xFFFFFF"
glowwidth="4"
glowstrength="3"
behindspots="true"
dragable="true"
/>


anchor="topleft" x="2" y="2"
/>


anchor="topright" x="2" y="2"
hasscrolltrack="true"
/>


onhover="showtext(Spot 1);"
onclick="action(s1);"
heading="0"
active="true"
/>





plugin[maps].activatespot(s1);
plugin[maps].pantospot(s1);
loadpano(pano1.xml,null,MERGE,BLEND(1));







Thanks

Rick

This post has been edited 1 times, last edit by "Run" (Sep 7th 2010, 7:24pm)


Run

Beginner

  • "Run" started this thread

Posts: 41

Location: maryland. USA

Occupation: Photographer

  • Send private message

2

Tuesday, September 7th 2010, 7:44pm

I have been using the editor to review the generated xml and have found the following;



Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<plugin name="maps"
url=""
keep="false" preload="false"
visible="true" enabled="true" handcursor="true" capture="true" children="true"
zorder="0"
alpha="1.00" blendmode="normal"
smoothing="true"
align="" edge=""
x="" y="" ox="" oy=""
width="" height=""
crop="" ondowncrop="" onovercrop=""
scale="1" scale9grid="" scalechildren="false"
rotate="0"
parent=""
mask=""
onloaded=""
onover=""
onhover=""
onout=""
ondown=""
onup=""
onclick=""
effect=""
usecontentsize="false"
>
<<" continuouszoom="false"
crosshairs="false"
dragging="true"
keyboard="false"
lat="38.910267"
lng="78.966994"
maptype="SATELLITE"
onmapmoved=""
onmapready=""
onmapzoomed=""
scrollwheel="true"
usecontentsize="false"
zoom="18"
/>



Looking between usecontentsize="false" and continuouszoom="false" the greater then, less then symbols are not in my original code. Not sure how to fix them if they are the issue? Also, no matter how I format it in my xml code the url is always empty in the generated xml.

Any suggestions?


Thanks

Rick

This post has been edited 2 times, last edit by "Run" (Sep 7th 2010, 8:02pm)


3

Tuesday, September 7th 2010, 8:31pm

Have you tried using a text editor to edit your xml? I like notepad++. There are several different programs available. Or if you wish to continue using the krpano editor, are you saving your file to disk? I believe when you transition from one pano to the next, all changes are lost unless you have saved it to disk.

Run

Beginner

  • "Run" started this thread

Posts: 41

Location: maryland. USA

Occupation: Photographer

  • Send private message

4

Tuesday, September 7th 2010, 8:33pm

Got it working, it had to do with the closing bracket on the <plugin name="maps" , for some reason it was not accepting the closing one until I started to delete spaces before it. The it all worked.

Run

Beginner

  • "Run" started this thread

Posts: 41

Location: maryland. USA

Occupation: Photographer

  • Send private message

5

Tuesday, September 7th 2010, 8:57pm

Hi Jarredja,

Actually I use Dreamweaver to edit everything, when I said i used the "editor", I should have been more clear, I meant i used the editor plugin to just view the generated xml. I make all my changes and do all my editing though in Dreamweaver, without the code hinting I would be lost *cool* . I was saving the xml to disk and then using a compare tool to try to figure out where my issue was.

Sorry for asking so many questions, you have been a great help. *thumbsup*

Thank you

Rick