Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7840301
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T15:44:05+00:00 2026-06-02T15:44:05+00:00

This is a sample of the XML file : <Nodes version=1> <Node name=root> <Node

  • 0

This is a sample of the XML file :

<Nodes version="1">
<Node name="root">
    <Node name="message 3">
        <Prp name="date" type="D" value="41019.2289042593"/>
        <Prp name="priority" type="I" value="300"/>
        <Prp name="child index" type="I" value="-1"/>
    </Node>
    <Node name="message 2">
        <Prp name="date" type="D" value="41019.2288970833"/>
        <Prp name="priority" type="I" value="300"/>
        <Prp name="child index" type="I" value="-1"/>
    </Node>
    <Node name="message 1">
        <Prp name="date" type="D" value="41019.2288965625"/>
        <Prp name="priority" type="I" value="300"/>
        <Prp name="child index" type="I" value="-1"/>
    </Node>
   </Node>
</Nodes>

I have to sort the “messagex” nodes according to the date (i.e the “value” attribute in Prp name=”date” type=”D” value=”41019.2288970833″/> field)

Im not able to find the solution as the tags have the same name and so do the attributes. Can you please guide me doing this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T15:44:06+00:00Added an answer on June 2, 2026 at 3:44 pm
    <xsl:apply-templates select="/Nodes/Node[@name='root']/Node">
        <xsl:sort select="Prp[@name='date' and @type='D']/@value"/>
    </xsl:apply-templates>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given this XML: <?php $xml = <<<XML <?xml version=1.0 encoding=UTF-8 ?> <root> <project type=residential>
I have this simple XML file : <?xml version=1.0 encoding=utf-8 ?> <Artists> <artist artistId=1>
Given the following XML file: <?xml version=1.0 encoding=UTF-8?> <process name=TestSVG2 xmlns=http://www.example.org targetNamespace=http://www.example.org xmlns:xsd=http://www.w3.org/2001/XMLSchema> <sequence>
I have a simple XML file, items.xml: <?xml version=1.0 encoding=UTF-8 ?> <items> <item> <name>mouse</name>
I'm reading an XML file that looks like this: <?xml version=1.0 encoding=utf-8?> <VehicleList> <Vehicle>
I have an xml file <?xml version=1.0?> <category> <name>SWEATERS</name> <name>WATCHES</name> <name>PANTS</name> <name>test</name> <name>1</name> </category>
Take a simple XML file formatted like this: <Lists> <List> <Note/> ... <Note/> </List>
using LINQ to XML, this is a sample of my XML <shows> <Show Code=456
I have the following XML <ns0:Root xmlns:ns0=http://Map_Sample.Input_Schema> <Number1> </Number1> <Number2>11</Number2> <Number3>12</Number3> </ns0:Root> In this
It seems I can't easily have an XSD declaration for this simple XML <root>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.