[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

07/19/2009 at 03:01AM PDT, ID: 24582134
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.2

Select parent nodes in XML

Asked by Grzesiek23 in Web Languages/Standards, Scripting Languages, XPath

Tags: xpath, xml, parent node

I wrote the xmld code below.

I want to get all the parent nodes by entering specify URL as parameter.

I mean - I have the category ID = 17, so the url will be:
"~/forum-c-17"

Now I want to select this element (ID, title) and also parent nodes, so:
- "~/forum" | Strona glowna forum
---- "~/forum-c-11" | Gospodarka
-------- "~/forum-c-17" | PKO BP

How can I do this?

After get it I need to format these elements iinto string with anchors links.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
    <siteMapNode url="~/forum" title="Strona glowna forum">
      <siteMapNode url="~/forum-c-1" title="Ogólne"/>
      <siteMapNode url="~/forum-c-3" title="Spoleczenstwo"/>
      <siteMapNode url="~/forum-c-4" title="Wojsko"/>
      <siteMapNode url="~/forum-c-5" title="Parlament"/>
      <siteMapNode url="~/forum-c-6" title="Rzadowe dyskusje"/>
      <siteMapNode url="~/forum-c-7" title="Uwagi i propozycje do administracji"/>
      <siteMapNode url="~/forum-c-8" title="Wojsko Polskie"/>
      <siteMapNode url="~/forum-c-10" title="Informacje"/>
      <siteMapNode url="~/forum-c-11" title="Gospodarka">
        <siteMapNode url="~/forum-c-17" title="PKO BP"/>
      </siteMapNode>
      <siteMapNode url="~/forum-c-12" title="Polityka">
        <siteMapNode url="~/forum-c-14" title="Kandydatury"/>
      </siteMapNode>
      <siteMapNode url="~/forum-c-13" title="Moderatorzy"/>
    </siteMapNode>
</siteMap>
[+][-]07/21/09 12:07 AM, ID: 24901804

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Web Languages/Standards, Scripting Languages, XPath
Tags: xpath, xml, parent node
Sign Up Now!
Solution Provided By: amit_g
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07/21/09 02:40 AM, ID: 24902551

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07/21/09 02:43 AM, ID: 24902573

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/30/09 02:15 PM, ID: 25219419

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20090824-EE-VQP-74 - Hierarchy / EE_QW_3_20090701_SELECT_ZONES