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 8880189
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T20:07:15+00:00 2026-06-14T20:07:15+00:00

Thanks for the quick response. I tried both the answers. It is not working

  • 0

Thanks for the quick response. I tried both the answers. It is not working as I expected. Please find the below Input and the expected Output. Thanks in Advance

Input:
<Billing>
<billSummary>
<billTo>
<accountNumber>130212192</accountNumber>
<MSISDN>1234567890</MSISDN>
</billTo>
<tax>
<amount>100.12</amount>
<description>TAXES</description>
</tax>
<charge>
<typeCode>ONE_TIME</typeCode>
<amount>100.12</amount>
<description>ONE_TIME_CHARGE</description>
</charge>
<charge>
<typeCode>ACCESS</typeCode>
<amount>100.12</amount>
<description>ACCESS_CHARGE</description>
</charge>
<tax>
<amount>100.12</amount>
<description>TAXES</description>
</tax>
<charge>
<typeCode>FEATURE</typeCode>
<amount>100.12</amount>
<description>FEATURE_CHARGE</description>
</charge>
<deduction>
<amount>100.12</amount>
<description>ADJUSTMENTS</description>
</deduction>
<charge>
<typeCode>AIRTIME</typeCode>
<amount>100.12</amount>
<description>AIRTIME_CHARGE</description>
</charge>
<charge>
<typeCode>LONG_DISTANCE</typeCode>
<amount>100.12</amount>
<description>LONG_DISTANCE_CHARGE</description>
</charge>
<charge>
<typeCode>ROAMING</typeCode>
<amount>100.12</amount>
<description>ROAMING_CHARGE</description>
</charge>
<deduction>
<amount>100.12</amount>
<description>ADJUSTMENTS</description>
</deduction>
</billSummary>
<billSummary>
<billTo>
<accountNumber>130212192</accountNumber>
<MSISDN>1234567890</MSISDN>
</billTo>
<tax>
<amount>100.12</amount>
<description>TAXES</description>
</tax>
<charge>
<typeCode>ONE_TIME</typeCode>
<amount>100.12</amount>
<description>ONE_TIME_CHARGE</description>
</charge>
<charge>
<typeCode>ACCESS</typeCode>
<amount>100.12</amount>
<description>ACCESS_CHARGE</description>
</charge>
<tax>
<amount>100.12</amount>
<description>TAXES</description>
</tax>
<charge>
<typeCode>FEATURE</typeCode>
<amount>100.12</amount>
<description>FEATURE_CHARGE</description>
</charge>
<deduction>
<amount>100.12</amount>
<description>ADJUSTMENTS</description>
</deduction>
<charge>
<typeCode>AIRTIME</typeCode>
<amount>100.12</amount>
<description>AIRTIME_CHARGE</description>
</charge>
<charge>
<typeCode>LONG_DISTANCE</typeCode>
<amount>100.12</amount>
<description>LONG_DISTANCE_CHARGE</description>
</charge>
<charge>
<typeCode>ROAMING</typeCode>
<amount>100.12</amount>
<description>ROAMING_CHARGE</description>
</charge>
<deduction>
<amount>100.12</amount>
<description>ADJUSTMENTS</description>
</deduction>
</billSummary>
</Billing>

Expected Output:
<Billing>
<billSummary>
<billTo>
<accountNumber>130212192</accountNumber>
<MSISDN>1234567890</MSISDN>
</billTo>
<tax>
<amount>100.12</amount>
<description>TAXES</description>
</tax>
<charge>
<typeCode>ONE_TIME</typeCode>
<amount>100.12</amount>
<description>ONE_TIME_CHARGE</description>
</charge>
<charge>
<typeCode>ACCESS</typeCode>
<amount>100.12</amount>
<description>ACCESS_CHARGE</description>
</charge>
<tax>
<amount>100.12</amount>
<description>TAXES</description>
</tax>
<charge>
<typeCode>FEATURE</typeCode>
<amount>100.12</amount>
<description>FEATURE_CHARGE</description>
</charge>
<deduction>
<amount>100.12</amount>
<description>ADJUSTMENTS</description>
</deduction>
<charge>
<typeCode>AIRTIME</typeCode>
<amount>100.12</amount>
<description>AIRTIME_CHARGE</description>
</charge>
<charge>
<typeCode>LONG_DISTANCE</typeCode>
<amount>100.12</amount>
<description>LONG_DISTANCE_CHARGE</description>
</charge>
<charge>
<typeCode>ROAMING</typeCode>
<amount>100.12</amount>
<description>ROAMING_CHARGE</description>
</charge>
<deduction>
<amount>100.12</amount>
<description>ADJUSTMENTS</description>
</deduction>
</billSummary>
<billSummary>
<billTo>
<accountNumber>130212192</accountNumber>
<MSISDN>1234567890</MSISDN>
</billTo>
<tax>
<amount>100.12</amount>
<description>TAXES</description>
</tax>
<charge>
<typeCode>ONE_TIME</typeCode>
<amount>100.12</amount>
<description>ONE_TIME_CHARGE</description>
</charge>
<charge>
<typeCode>ACCESS</typeCode>
<amount>100.12</amount>
<description>ACCESS_CHARGE</description>
</charge>
<tax>
<amount>100.12</amount>
<description>TAXES</description>
</tax>
<charge>
<typeCode>FEATURE</typeCode>
<amount>100.12</amount>
<description>FEATURE_CHARGE</description>
</charge>
<deduction>
<amount>100.12</amount>
<description>ADJUSTMENTS</description>
</deduction>
<charge>
<typeCode>AIRTIME</typeCode>
<amount>100.12</amount>
<description>AIRTIME_CHARGE</description>
</charge>
<charge>
<typeCode>LONG_DISTANCE</typeCode>
<amount>100.12</amount>
<description>LONG_DISTANCE_CHARGE</description>
</charge>
<charge>
<typeCode>ROAMING</typeCode>
<amount>100.12</amount>
<description>ROAMING_CHARGE</description>
</charge>
<deduction>
<amount>100.12</amount>
<description>ADJUSTMENTS</description>
</deduction>
</billSummary>
</Billing>

  • 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-14T20:07:16+00:00Added an answer on June 14, 2026 at 8:07 pm

    How about this:

    doc("c:\temp\temp.xml")/
    <billSummary>
      {
      for $e in billSummary/*
      order by local-name($e)
      return $e
      }
    </billSummary>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi Raj Thanks for quick response actually what my problem was i have to
-EDIT- Thanks for the quick response, I'd been having really weird problems with my
Hi Guys! Thank you for the quick response of all. I am working with
Thanks for amazingly quick response. Stackoverflow is awesome! I need to check if a
Quick c question: How to know the length of a char* foo[]? Thanks.
How can I create a multi-level quick launch in sharepoint? Thanks.
Question says it all. Some quick code examples of usage would be nice.. thanks!
Thanks in advance to anyone who can think of a more efficient or a
Thanks to some help I received yesterday I've got some dynamic summing working on
Hello there and thanks in advance for any help on the following matter. Edit:

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.