473,394 Members | 1,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

User navigation system with XML file

Here is the XML file i am using right now, note: there is only an
"Administrator" group right now, in the end there will be 6 or 7
different groups of navigation levels

<?xml version="1.0" encoding="utf-8" ?>
<Nav Role="Administrator">
<Button id="EmployeeManagement" label="Employee Management">
<Item id="NewEmployee" label="New Employee">
<Link>http://groups.google.com</Link>
<Target>_blank</Target>
<Shortcut>N</Shortcut>
</Item>
<Item id="EditEmployee" label="Edit Employee">
<Link>default.aspx?p=something</Link>
<Target>_self</Target>
<Shortcut>E</Shortcut>
</Item>
</Button>
<Button id="ProjectManagement" label="Project Management">
<Item id="NewProject" label="New Project">
<Link>http://www.yahoo.com</Link>
<Target>_blank</Target>
<Shortcut>N</Shortcut>
</Item>
<Item id="EditProject" label="Edit Project">
<Link>http://www.cnn.com</Link>
<Target>_self</Target>
<Shortcut>E</Shortcut>
</Item>
</Button>
</Nav>
Now, This works fine to generate my menu, what I am wondering is once
I have more <Nav> nodes in there, alot of the <Button> nodes will be
repeated. is there an easy way to set it up so I can have only one
<Button> node and have this one node stretch across all the different
User levels?

Now that I think about it, it would probably work if I just layout all
the buttons and add some sort of <UserLevel> node with the different
user levels to each <Button> node?
thank you for your help.
Nov 12 '05 #1
1 2800
DKode wrote:
Now, This works fine to generate my menu, what I am wondering is once
I have more <Nav> nodes in there, alot of the <Button> nodes will be
repeated. is there an easy way to set it up so I can have only one
<Button> node and have this one node stretch across all the different
User levels?

Easy. E.g.
<Buttons>
<Button id="EmployeeManagement" label="Employee Management">
<Item id="NewEmployee" label="New Employee">
<Link>http://groups.google.com</Link>
<Target>_blank</Target>
<Shortcut>N</Shortcut>
</Item>
<Item id="EditEmployee" label="Edit Employee">
<Link>default.aspx?p=something</Link>
<Target>_self</Target>
<Shortcut>E</Shortcut>
</Item>
</Button>
<Button id="ProjectManagement" label="Project Management">
<Item id="NewProject" label="New Project">
<Link>http://www.yahoo.com</Link>
<Target>_blank</Target>
<Shortcut>N</Shortcut>
</Item>
<Item id="EditProject" label="Edit Project">
<Link>http://www.cnn.com</Link>
<Target>_self</Target>
<Shortcut>E</Shortcut>
</Item>
</Button>
</Buttons>
<Nav Role="Administrator">
<Button ref="NewEmployee"/>
<Button ref="ProjectManagement"/>
</Nav>
--
Oleg Tkachenko
XML Insider
http://www.tkachenko.com/blog

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Mike | last post by:
Sites using thumbnail preview for world wide web file navigation and searching. Below are list of sites that are either researching or providing thumbnail preview images for online web...
0
by: Veli-Pekka Tätilä | last post by:
Hi, My first post here. I've found some serious accessibility flaws in the Python 2.4 docs and wish they could be rectified over time. I'm very new to Python and initially contacted docs at python...
2
by: Joachim Feldt | last post by:
Hi, I am a newbie, so some help here would be very appreciated! I have a aspx-page with four links at the top of the page. These links are the application navigation and they are stored in a...
1
by: Dave | last post by:
I've built a custom server control that reads an xml file and builds a left side navigation system. When I drop that server control into a user control that will hold the left side navigation for...
5
by: Simon Harris | last post by:
Hi All, I am trying to call a method in a web form, from an event fired in a user control. My user control displays a map, which has a link button to enlarge/shrink the map. When the user...
0
by: Adam Knight | last post by:
Hi all, I have a logout page that contains among other things a header user control. This control displays the required navigation based upon whether the user is logged in or not. What i am...
2
by: rhungund | last post by:
Hi all. I have a user control I'm using as my "include" file for my flash navigation. My asp.net app is written in vb.net. The swf file takes a parameter which I would like to pass into my user...
2
by: Charles Law | last post by:
I'll kick myself when you tell me, but ... I have a user control on a form, and I want the user control to see the arrow keys when I press them. If I press just about any other key the control's...
4
by: John Devlon | last post by:
Hi, I've created a small application with some user-authentication and roles. I would like to show/hide some navigation parts based on the users role. Could someone please tell me what the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.