Reply to thread

Hi,


I've been working a little bit with an application that can do two things.


1) Parse a folder (Skin folder) and build a list (WindowID - filename.xml) that you can use to select and build the below XML file trough the GUI.

2) Generate a basichome.xml from the file below or from what items you choose from the generated list of ids.


For the application to work the skin (it's basichome.xml) need to support the below file. The application should parse the generated file below and put the items/subitems in their correct spot that are defined in the basichome.xml.


Perhaps each skin also needs some kind of "layout.xml" that tells the application of how many "mainitems", "subitems" and if it supports the other items defined and so on in the basichome.xml so that it wont generate a non working basichome.xml file for a skin that does not use those items. I'm note quite sure how to do it the easiest way yet so i'm looking for ideas or help finishing it as i'm quite new to programing in C#, so if anybody feels like helping out, let me know. :)


So far the application can successfully parse a MP XML file and find if it's a valid plugin/window XML or just an "include" XML file so the first step is done. Later today I'm going to finish the parsing of a folder and list generation and hopefully in a week or two the whole application can be complete for usage.


If anybody have suggestions, ideas, programing aid or want to help out fleshing these ideas out let me know. :)


The Draft:

[spoiler]

<?xml version="1.0" encoding="utf-8"?>

  <MenuSettings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

    <General>

      <UseRss>Yes</UseRss>

      <DefaultMenu>Movies</DefaultMenu>

    </General>

    <MenuItems>

      <MenuItem Text="Music">

        <Caption1>Listen To</Caption1>

        <Caption2>Music</Caption2>

        <Hyperlink>30</Hyperlink>

        <Action>-</Action>

        <FanartHandler>Music</FanartHandler>

        <BackgroundImage>-</BackgroundImage>

        <BackgroundFolder>-</BackgroundFolder>

      </MenuItem>

      <MenuItem Text="Movies">

        <Caption1>Watch Your</Caption1>

        <Caption2>Movies</Caption2>

        <Hyperlink>96742</Hyperlink>

        <Action>-</Action>

        <FanartHandler>Movies</FanartHandler>

        <BackgroundImage>-</BackgroundImage>

        <BackgroundFolder>-</BackgroundFolder>

        <SubMenuItems>

          <SubMenuItem Text="Movies">

            <Hyperlink>96742</Hyperlink>

            <Action>-</Action>

            <FanartHandler>Movies</FanartHandler>

            <BackgroundImage>-</BackgroundImage>

            <BackgroundFolder>-</BackgroundFolder>

          </SubMenuItem>

          <SubMenuItem Text="Online Videos">

            <Hyperlink>4755</Hyperlink>

            <Action>-</Action>

            <FanartHandler>Movies</FanartHandler>

            <BackgroundImage>-</BackgroundImage>

            <BackgroundFolder>-</BackgroundFolder>

          </SubMenuItem>

        </SubMenuItems>

      </MenuItem>

    </MenuItems>

  </MenuSettings>

</xml>

[/spoiler]


Top Bottom