4 Replies Latest reply on Dec 22, 2010 9:44 PM by saisri2k2

    How can I make dynamic menu from a xml?

    Koyel_flex Level 1

      My xml is:

       

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

      <nodes>

      <node>

      <category_id>3</category_id>

      <parent_id>2</parent_id>

      <name>Mobile</name>

      <is_active>1</is_active>

      <position>1</position>

      <level>2</level>

      <children>

      <node>

      <category_id>6</category_id>

      <parent_id>3</parent_id>

      <name>Nokia</name>

      <is_active>1</is_active>

      <position>1</position>

      <level>3</level>

      <children></children>

      </node>

      <node>

      <category_id>7</category_id>

      <parent_id>3</parent_id>

      <name>Samsung</name>

      <is_active>1</is_active>

      <position>2</position>

      <level>3</level>

      <children></children>

      </node>

      </children>

      </node>

      </nodes>

       

      How can I make dynamic menu from this xml?

        • 1. Re: How can I make dynamic menu from a xml?
          saisri2k2 Level 4

          Your xml is wrong.. please post the correct xml

          • 2. Re: How can I make dynamic menu from a xml?
            saisri2k2 Level 4

            Even then, I'm thinking you hve to create a xml out of this and then create a dynamic menu out of it. If you are tring with a full xml like this, you will end up with so many other sub menus under the main menu.

            • 3. Re: How can I make dynamic menu from a xml?
              Koyel_flex Level 1

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

              <nodes>

              <node>

              <category_id>3</category_id>

              <parent_id>2</parent_id>

              <name>Mobile</name>

              <is_active>1</is_active>

              <position>1</position>

              <level>2</level>

              <children>

              <node name="Nokia" category_id="6" parent_id="3" is_active="1" position="1" level="3">

              <node name="Nokia N79" category_id="7" parent_id="3" is_active="1" position="2" level="3" />

              <node name="Nokia N95" category_id="7" parent_id="3" is_active="1" position="2" level="3" />

              <node name="Nokia N97" category_id="7" parent_id="3" is_active="1" position="2" level="3" />

              </node>

              <node name="Samsung" category_id="7" parent_id="3" is_active="1" position="2" level="3">

               

              </node>

              </children>

              </node>

              <node>

              <category_id>4</category_id>

              <parent_id>2</parent_id>

              <name>Laptop</name>

              <is_active>1</is_active>

              <position>2</position>

              <level>2</level>

              <children></children>

              </node>

              <node>

              <category_id>5</category_id>

              <parent_id>2</parent_id>

              <name>Monitor</name>

              <is_active>1</is_active>

              <position>3</position>

              <level>2</level>

              <children></children>

              </node>

              <node>

              <category_id>8</category_id>

              <parent_id>2</parent_id>

              <name>Camera</name>

              <is_active>1</is_active>

              <position>4</position>

              <level>2</level>

              <children></children>

              </node>

              </nodes>

               

              Is this correct format to create dynamic menu?

              • 4. Re: How can I make dynamic menu from a xml?
                Koyel_flex Level 1

                How can I convert this xml what I have post in forum 1st  into that xml what I have sent 2nd tym?