attributes construct error?

About usage, announcement and development of skins for VLC
SoaceMunky
New Cone
New Cone
Posts: 7
Joined: 27 Apr 2006 21:54

attributes construct error?

Postby SoaceMunky » 03 May 2006 15:34

from the msg log: "xml error: XML parser error (line 46) : attributes construct error"
this is line 46: <Group x="0" y="0">

whats the deal!? i've checked and doublechecked each character in this stupid file...and i still cant load this skin.
mind you, it was working fine yesterday! i added some buttons this morning, and poof!
plz help a newbie :(

heres a block of the code:

44 <Window x="800" y="119">
45 <Layout width="800" height="119">
46 <Group x="0" y="0">
47 <Image x="0" y="0" image="main" action="move" />

its preceded by bitmaps, and followed by buttons.

ipkiss
Big Cone-huna
Big Cone-huna
Posts: 695
Joined: 23 Nov 2003 01:49

Postby ipkiss » 03 May 2006 19:54

Could you put the whole skin somewhere for download please? Or at least the complete XML file...
You can also paste it there: http://vlc.pastebin.com/

SoaceMunky
New Cone
New Cone
Posts: 7
Joined: 27 Apr 2006 21:54

Postby SoaceMunky » 03 May 2006 20:09

sweet! finally you are around, you can probably figure this out in a second.
complete xlm file:

<!DOCTYPE Theme PUBLIC "-//VideoLAN//DTD VLC Skins V2.0//EN" "skin.dtd">

<Theme version="2.0">
<ThemeInfo name="square" author="Andrei Loutchouk" email="al77@drexel.edu"/>

<Bitmap id="mainbody" file="mainbody.png" alphacolor="10FF00"/>
<Bitmap id="ej_down" file="ej_down.png" alphacolor="10FF00"/>
<Bitmap id="ej_up" file="ej_up.png" alphacolor="10FF00"/>
<Bitmap id="ff_down" file="ff_down.png" alphacolor="10FF00"/>
<Bitmap id="ff_up" file="ff_up.png" alphacolor="10FF00"/>
<Bitmap id="mute_up" file="mute_up.png" alphacolor="10FF00"/>
<Bitmap id="mute_down" file="mute_down.png" alphacolor="10FF00"/>
<Bitmap id="next_up" file="next_up.png" alphacolor="10FF00"/>
<Bitmap id="next_down" file="next_down.png" alphacolor="10FF00"/>
<Bitmap id="pause_up" file="pause_up.png" alphacolor="10FF00"/>
<Bitmap id="pause_down" file="pause_down.png" alphacolor="10FF00"/>
<Bitmap id="pl_up" file="pl_up.png" alphacolor="10FF00"/>
<Bitmap id="pl_down" file="pl_down.png" alphacolor="10FF00"/>
<Bitmap id="play_down" file="play_down.png" alphacolor="10FF00"/>
<Bitmap id="play_up" file="play_up.png" alphacolor="10FF00"/>
<Bitmap id="prev_down" file="prev_down.png" alphacolor="10FF00"/>
<Bitmap id="prev_up" file="prev_up.png" alphacolor="10FF00"/>
<Bitmap id="rr_down" file="rr_down.png" alphacolor="10FF00"/>
<Bitmap id="rr_up" file="rr_up.png" alphacolor="10FF00"/>
<Bitmap id="stop_up" file="stop_up.png" alphacolor="10FF00"/>
<Bitmap id="stop_down" file="stop_down.png" alphacolor="10FF00"/>
<Bitmap id="file_down" file="file_down.png" alphacolor="10FF00"/>
<Bitmap id="file_up" file="file_up.png" alphacolor="10FF00"/>
<Bitmap id="view_down" file="view_down.png" alphacolor="10FF00"/>
<Bitmap id="view_up" file="view_up.png" alphacolor="10FF00"/>
<Bitmap id="set_down" file="set_down.png" alphacolor="10FF00"/>
<Bitmap id="set_up" file="set_up.png" alphacolor="10FF00"/>
<Bitmap id="aud_down" file="aud_down.png" alphacolor="10FF00"/>
<Bitmap id="aud_up" file="aud_up.png" alphacolor="10FF00"/>
<Bitmap id="vid_down" file="vid_down.png" alphacolor="10FF00"/>
<Bitmap id="vid_up" file="vid_up.png" alphacolor="10FF00"/>
<Bitmap id="size_up" file="size_up.png" alphacolor="10FF00"/>
<Bitmap id="size_over" file="size_over.png" alphacolor="10FF00"/>
<Bitmap id="min_up" file="min_up.png" alphacolor="10FF00"/>
<Bitmap id="min_over" file="min_over.png" alphacolor="10FF00"/>
<Bitmap id="close_up" file="close_up.png" alphacolor="10FF00"/>
<Bitmap id="close_over" file="close_over.png" alphacolor="10FF00"/>
<Bitmap id="sli" file="sli.png" alphacolor="10FF00"/>

<Window id="main_window" dragdrop="true">
<Layout width="800" height="600">
<Group x="0" y="0">
<Anchor x="0" y="0" priority="100"/>
<Image x="0" y="0" image="mainbody" action="move" />

<Text font="defaultfont" color="#FEDB63" x="25" y="50" width="60" text="$T" />
<Text font="defaultfont" color="#FEDB63" x="25" y="75" width="325" text="$N" />

<Checkbox x="515" y="61" up1="mute_up" down1="mute_down" up2="mute_down" state="vlc.isMute" action1="vlc.mute()" tooltiptext1="Mute" tooltiptext2="Un-mute" />

<Slider value="time" up="sli" points="(380,41),(792,41)" tooltiptext="$T"/>
<Slider value="volume" up="sli" points="(380,69),(503,69)" tooltiptext="$V%"/>

<Button x="378" y="571" up="prev_up" down="prev_down" action="playlist.previous()" tooltiptext="Previous Track"/>
<Button x="437" y="571" up="rr_up" down="rr_down" action="vlc.slower()" tooltiptext="Reverse"/>
<Button x="495" y="571" up="play_up" down="play_down" action="vlc.play()" tooltiptext="Play"/>
<Button x="554" y="571" up="pause_up"down="pause_down"action="vlc.pause()" tooltiptext="Pause"/>
<Button x="613" y="571" up="stop_up" down="stop_down" action="vlc.stop()" tooltiptext="Stop"/>
<Button x="672" y="571" up="ff_up" down="ff_down" action="vlc.faster()" tooltiptext="Forward"/>
<Button x="731" y="571" up="next_up" down="next_down" action="playlist.next()" tooltiptext="Next Track"/>
<Button x="6" y="1" up="file_up" down="file_down" action="dialogs.file()" tooltiptext="Open..."/>
<Button x="44" y="1" up="view_up" down="view_down" action="dialogs.miscPopup()" tooltiptext="General Options"/>
<Button x="90" y="1" up="set_up" down="set_down" action="dialogs.prefs()" tooltiptext="Preferences"/>
<Button x="152" y="1" up="aud_up" down="aud_down" action="dialogs.audioPopup()" tooltiptext="Audio Preferences"/>
<Button x="202" y="1" up="vid_up" down="vid_down" action="dialogs.videoPopup()" tooltiptext="Video Preferences"/>
<Button x="736" y="4" up="min_up" over="min_over" action="vlc.minimize()" tooltiptext="Minimize VLC"/>
<Button x="756" y="4" up="size_up" over="size_over" action="vlc.onTop()" tooltiptext="VLC Stay on Top"/>
<Button x="776" y="4" up="close_up"over="close_over"action="vlc.quit()" tooltiptext="Quit VLC!"/>

</Group>
</Layout>
</Window>
</Theme>

SoaceMunky
New Cone
New Cone
Posts: 7
Joined: 27 Apr 2006 21:54

Postby SoaceMunky » 03 May 2006 21:28

heres the error log:

skins2 debug: Using skin file: c:\windows\TEMP\vlt8\theme.xml
main debug: looking for xml module: 2 candidates
main debug: using xml module "xml"
main warning: drive letter c: found in source
main debug: creating access '' path='c:\windows\TEMP\vlt8\theme.xml'
main debug: looking for access2 module: 5 candidates
vcd debug: trying .cue file: c:\windows\TEMP\vlt8\theme.cue
access_file debug: opening file `c:\windows\TEMP\vlt8\theme.xml'
main debug: using access2 module "access_file"
main debug: pre buffering
main debug: received first data for our buffer
skins2: skin: square author: (null)
xml error: XML parser error (line 47) : attributes construct error

xml error: XML parser error (line 47) : attributes construct error

skins2 error: Failed to parse c:\windows\TEMP\vlt8\theme.xml
main debug: unlocking module "xml"
main debug: unlocking module "access_file"
skins2 error: C:\WINDOWS\Desktop\square.vlt doesn't contain a theme.xml file
skins2 debug: Using skin file: C:\WINDOWS\Desktop\square.vlt
main debug: looking for xml module: 2 candidates
main debug: using xml module "xml"
main warning: drive letter C: found in source
main debug: creating access '' path='C:\WINDOWS\Desktop\square.vlt'
main debug: looking for access2 module: 5 candidates
vcd debug: trying .cue file: C:\WINDOWS\Desktop\square.cue
access_file debug: opening file `C:\WINDOWS\Desktop\square.vlt'
main debug: using access2 module "access_file"
main debug: pre buffering
main debug: received first data for our buffer
main debug: prebuffering done 65534 bytes in 0s - 63998046 kbytes/s
xml error: XML parser error (line 1) : Document is empty

skins2 error: Failed to parse C:\WINDOWS\Desktop\square.vlt
main debug: unlocking module "xml"
main debug: unlocking module "access_file"
skins2 error: A problem occurred when loading the new theme, restoring the previous one

help
:cry:

Asim
Cone that earned his stripes
Cone that earned his stripes
Posts: 151
Joined: 30 Mar 2005 05:58
Contact:

Postby Asim » 04 May 2006 01:42

<Button x="554" y="571" up="pause_up"down="pause_down"action="vlc.pause()" tooltiptext="Pause"/>


should be

<Button x="554" y="571" up="pause_up" down="pause_down" action="vlc.pause()" tooltiptext="Pause" />

- Asim

SoaceMunky
New Cone
New Cone
Posts: 7
Joined: 27 Apr 2006 21:54

Postby SoaceMunky » 04 May 2006 14:23

what? blaspemy!
it works :)
i didnt realzie xml cared about whitespaces and left a few errors. thanx a million, you've solved my problem!


Return to “Skins”

Who is online

Users browsing this forum: No registered users and 14 guests