PDA

View Full Version : XML file syntax


thefunkygibbon
10th October 2007, 12:25 PM
I'm trying to cook my own rom with XML files being executed on the preconfig.txt file but i'm having some issues


a) copying a file from the Windows folder into the ringtone folder and making it the default ringtone.

b) change the regional settings to UK English,

this is my xml for these two bits

<?xml version="1.0" encoding="utf-8"?>
<wap-provisioningdoc>
<!--Ringtone-->
<characteristic type="FileOperation">
<characteristic type="\Windows\Rings\bennyhill.wma" translation="install">
<characteristic type="Copy">
<parm name="Source" value="\Windows\benny.wma" translation="install" />
</characteristic>
</characteristic>
</characteristic>
<characteristic type="Registry">
<characteristic type="HKCU\ControlPanel\Sounds">
<characteristic type="RingTone0">
<parm name="Sound" value="\Windows\Rings\bennyhill.wma" datatype="string" />
<parm name="Category" value="Ring" datatype="string" />
</characteristic>
</characteristic>
</characteristic>
<!--Region-->
<characteristic type="Locale">
<parm name="Locale" value="2057" />
</characteristic>
</wap-provisioningdoc>


c) remove the files which i'm having to install as cabs instead of OEM's ( for some reason the OEM doesnt work properly)
this is my delete files bit

<?xml version="1.0" encoding="utf-8"?>
<wap-provisioningdoc>
<!--deletefiles-->
<characteristic type="FileOperation">
<characteristic type="Windows\picsel.cab" translation="install">
<characteristic type="Delete">
<parm name="ForceDelete" />
</characteristic>
</characteristic>
</characteristic>
<characteristic type="FileOperation">
<characteristic type="Windows\PCMKeyboard09b.cab" translation="install">
<characteristic type="Delete">
<parm name="ForceDelete" />
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>




i must be doing something very wrong if none of these xml things work :(

Impossible
10th October 2007, 12:52 PM
im not too hot on this myself but shouldnt the second part be full path?

eg

\Windows\picsel.cab


Imp

thefunkygibbon
10th October 2007, 01:05 PM
i'll try that but the copy file bit doesnt work and that is using the \Windows\*** syntax

dan1967
10th October 2007, 01:43 PM
<characteristic type="%CE11%\Office Mobile" translation="install">
<characteristic type="MakeDir" />
</characteristic>
<characteristic type="%CE11%\Office Mobile" translation="install">
<characteristic type="MakeDir" />
<characteristic type="PowerPoint Mobile.lnk" translation="install">
<characteristic type="Copy">
<parm name="Source" value="\Windows\ppt.lnk" translation="install" />
</characteristic>
</characteristic>
</characteristic>

thefunkygibbon
10th October 2007, 02:12 PM
<characteristic type="%CE11%\Office Mobile" translation="install">
<characteristic type="MakeDir" />
</characteristic>
<characteristic type="%CE11%\Office Mobile" translation="install">
<characteristic type="MakeDir" />
<characteristic type="PowerPoint Mobile.lnk" translation="install">
<characteristic type="Copy">
<parm name="Source" value="\Windows\ppt.lnk" translation="install" />
</characteristic>
</characteristic>
</characteristic>


ok, but it doesnt really help that much.
:(
so does making a directory above make the following lines assume that its "copying" the file TO that folder as it doesnt seem to be specified anywhere.. as i'm not creating a folder i thought my syntax was correct.

dan1967
10th October 2007, 03:06 PM
your assuption should be correct I think. In all the XML's I saw that handled files Makedir existed in that form no matter what. I am no specialist but I saw and used a lot of XML's.
best of luck,
dan

thefunkygibbon
10th October 2007, 06:14 PM
there anyway of running the XML file on a device without going through the pain of recooking/flashing?

ie copying the xml to the phone and exectuting it somehow?

dan1967
10th October 2007, 06:26 PM
Look for AdvancedConfig or HTCustom and they load & execute XML files