dcsimg
A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Can please anyone help me with this xml?

  1. #1
    Junior Member
    Join Date
    Nov 2010
    Posts
    4

    Unhappy Can please anyone help me with this xml?

    Can please anyone help with this code?


    Something is wrong:


    <?xml version="1.0" encoding="utf-8"?>
    <menu category = "Main">
    <menu category = "menu item 1">
    <item category = "submenuitem 1.1" xml = "xml/gallery.xml" thumbWidth = "100" thumbHeight = "100"/>
    <item category = "submenuitem 1.2" xml = "xml/gallery.xml" thumbWidth = "100" thumbHeight = "100"/>

    </menu>
    <menu category = "menu item 2">
    <menu category = "submenuitem 2.1">
    <item category = "subsubmenuitem 2.1.1" xml = "xml/gallery.xml" thumbWidth = "100" thumbHeight = "100"/>
    <item category = "subsubmenuitem 2.1.2" xml = "xml/gallery.xml" thumbWidth = "100" thumbHeight = "100"/>
    <item category = "subsubmenuitem 2.1.3" xml = "xml/gallery.xml" thumbWidth = "100" thumbHeight = "100"/>
    <item category = "subsubmenuitem 2.1.4" xml = "xml/gallery.xml" thumbWidth = "100" thumbHeight = "100"/>
    <item category = "subsubmenuitem 2.1.5" xml = "xml/gallery.xml" thumbWidth = "100" thumbHeight = "100"/>
    </menu>
    <item category = "submenuitem 2.2" xml = "xml/gallery.xml" thumbWidth = "100" thumbHeight = "100"/>
    <item category = "submenuitem 2.3" xml = "xml/gallery.xml" thumbWidth = "100" thumbHeight = "100"/>
    <item category = "submenuitem 2.4" xml = "xml/gallery.xml" thumbWidth = "100" thumbHeight = "100"/>
    <item category = "submenuitem 2.5" xml = "xml/gallery.xml" thumbWidth = "100" thumbHeight = "100"/>

    </menu>
    <menu category = "menu item 3">

    <item category = "submenuitem 3.1" xml = "xml/gallery.xml" thumbWidth = "100" thumbHeight = "100"/>
    <item category = "submenuitem 3.2" xml = "xml/gallery.xml" thumbWidth = "100" thumbHeight = "100"/>

    </menu>
    </menu>

  2. #2
    Senior Member
    Join Date
    Aug 2006
    Posts
    322
    PHP Code:
    <?xml version="1.0" encoding="utf-8"?>
    <menu category = "Main">
          <menu category = "menu item 1">
                <menu category = "submenuitem 1.1" xml = "xml/gallery.xml" thumbWidth = "100" thumbHeight = "100"/>
                <menu category = "submenuitem 1.2" xml = "xml/gallery.xml" thumbWidth = "100" thumbHeight = "100"/>
          </menu>
          <menu category = "menu item 2">
                <menu category = "submenuitem 2.1">
                      <item category = "subsubmenuitem 2.1.1" xml = "xml/gallery.xml" thumbWidth = "100" thumbHeight = "100"/>
                      <item category = "subsubmenuitem 2.1.2" xml = "xml/gallery.xml" thumbWidth = "100" thumbHeight = "100"/>
                      <item category = "subsubmenuitem 2.1.3" xml = "xml/gallery.xml" thumbWidth = "100" thumbHeight = "100"/>
                      <item category = "subsubmenuitem 2.1.4" xml = "xml/gallery.xml" thumbWidth = "100" thumbHeight = "100"/>
                      <item category = "subsubmenuitem 2.1.5" xml = "xml/gallery.xml" thumbWidth = "100" thumbHeight = "100"/>
                </menu>
                <menu category = "submenuitem 2.2" xml = "xml/gallery.xml" thumbWidth = "100" thumbHeight = "100"/>
                <menu category = "submenuitem 2.3" xml = "xml/gallery.xml" thumbWidth = "100" thumbHeight = "100"/>
                <menu category = "submenuitem 2.4" xml = "xml/gallery.xml" thumbWidth = "100" thumbHeight = "100"/>
                <menu category = "submenuitem 2.5" xml = "xml/gallery.xml" thumbWidth = "100" thumbHeight = "100"/>
          </menu>
          <menu category = "menu item 3">
                <menu category = "submenuitem 3.1" xml = "xml/gallery.xml" thumbWidth = "100" thumbHeight = "100"/>
                <menu category = "submenuitem 3.2" xml = "xml/gallery.xml" thumbWidth = "100" thumbHeight = "100"/>
          </menu>
    </menu>

  3. #3
    Junior Member
    Join Date
    Nov 2010
    Posts
    4
    Did you actually change something? Because that doesn't work either?
    Hmm?



    Quote Originally Posted by marlopax View Post
    PHP Code:
    <?xml version="1.0" encoding="utf-8"?>
    <menu category = "Main">
          <menu category = "menu item 1">
                <menu category = "submenuitem 1.1" xml = "xml/gallery.xml" thumbWidth = "100" thumbHeight = "100"/>
                <menu category = "submenuitem 1.2" xml = "xml/gallery.xml" thumbWidth = "100" thumbHeight = "100"/>
          </menu>
          <menu category = "menu item 2">
                <menu category = "submenuitem 2.1">
                      <item category = "subsubmenuitem 2.1.1" xml = "xml/gallery.xml" thumbWidth = "100" thumbHeight = "100"/>
                      <item category = "subsubmenuitem 2.1.2" xml = "xml/gallery.xml" thumbWidth = "100" thumbHeight = "100"/>
                      <item category = "subsubmenuitem 2.1.3" xml = "xml/gallery.xml" thumbWidth = "100" thumbHeight = "100"/>
                      <item category = "subsubmenuitem 2.1.4" xml = "xml/gallery.xml" thumbWidth = "100" thumbHeight = "100"/>
                      <item category = "subsubmenuitem 2.1.5" xml = "xml/gallery.xml" thumbWidth = "100" thumbHeight = "100"/>
                </menu>
                <menu category = "submenuitem 2.2" xml = "xml/gallery.xml" thumbWidth = "100" thumbHeight = "100"/>
                <menu category = "submenuitem 2.3" xml = "xml/gallery.xml" thumbWidth = "100" thumbHeight = "100"/>
                <menu category = "submenuitem 2.4" xml = "xml/gallery.xml" thumbWidth = "100" thumbHeight = "100"/>
                <menu category = "submenuitem 2.5" xml = "xml/gallery.xml" thumbWidth = "100" thumbHeight = "100"/>
          </menu>
          <menu category = "menu item 3">
                <menu category = "submenuitem 3.1" xml = "xml/gallery.xml" thumbWidth = "100" thumbHeight = "100"/>
                <menu category = "submenuitem 3.2" xml = "xml/gallery.xml" thumbWidth = "100" thumbHeight = "100"/>
          </menu>
    </menu>

  4. #4
    Senior Member
    Join Date
    Aug 2006
    Posts
    322
    How you are going to work with this xml?

    What is the front end you are using for this xml menu?

    I changed the "nodeName" to clear the concept of tree menu.

    What else you are facing trouble ?


    marlopax
    Last edited by marlopax; 11-12-2010 at 11:29 AM.

  5. #5
    Junior Member
    Join Date
    Nov 2010
    Posts
    4
    Hi marlopax,

    could i eventually add you to my msn in order to explain that to you better?
    this an xml used in a flash photo gallery.

    I am not sure what is wrong with it yet.
    Your last version didn't work.






    Quote Originally Posted by marlopax View Post
    How you are going to work with this xml?

    What is the front end you are using for this xml menu?

    I changed the "nodeName" to clear the concept of tree menu.

    What else you are facing trouble ?


    marlopax

  6. #6
    Senior Member
    Join Date
    Aug 2006
    Posts
    322
    yes u can
    Last edited by marlopax; 11-12-2010 at 04:23 PM.

  7. #7
    Junior Member
    Join Date
    Nov 2010
    Posts
    4
    Has been resolved as follows:

    <?xml version="1.0" encoding="utf-8"?>
    <menu category = "Main">
    <menu category = "1" xml = "xml/gallery_1.xml" thumbWidth = "100" thumbHeight = "100">
    <item category = "1.1" xml = "xml/gallery_1.1.xml" thumbWidth = "100" thumbHeight = "100"/>
    <item category = "1.2" xml = "xml/gallery_1.2.xml" thumbWidth = "100" thumbHeight = "100"/>
    </menu>
    <menu category = "2">
    <menu category = "2.1">
    <item category = "2.1.1" xml = "xml/gallery_2.1.1.xml" thumbWidth = "100" thumbHeight = "100"/>
    <item category = "2.1.2" xml = "xml/gallery_2.1.2.xml" thumbWidth = "100" thumbHeight = "100"/>
    <item category = "2.1.3" xml = "xml/gallery_2.1.3.xml" thumbWidth = "100" thumbHeight = "100"/>
    <item category = "2.1.4" xml = "xml/gallery_2.1.4.xml" thumbWidth = "100" thumbHeight = "100"/>
    <item category = "2.1.5" xml = "xml/gallery_2.1.5.xml" thumbWidth = "100" thumbHeight = "100"/>
    </menu>
    <item category = "2.2" xml = "xml/gallery_2.2.xml" thumbWidth = "100" thumbHeight = "100"/>
    <item category = "2.3" xml = "xml/gallery_2.3.xml" thumbWidth = "100" thumbHeight = "100"/>
    <item category = "2.4" xml = "xml/gallery_2.4.xml" thumbWidth = "100" thumbHeight = "100"/>
    <item category = "2.5" xml = "xml/gallery_2.5.xml" thumbWidth = "100" thumbHeight = "100"/>
    </menu>
    <menu category = "3">
    <item category = "3.1" xml = "xml/gallery_3.1.xml" thumbWidth = "100" thumbHeight = "100"/>
    <item category = "3.2" xml = "xml/gallery_3.2.xml" thumbWidth = "100" thumbHeight = "100"/>
    </menu>

    <item xml = "xml/gallery_1.1.xml" thumbWidth = "100" thumbHeight = "100"/>
    </menu>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center