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

  • Home
  • SEARCH
  • 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 3359428
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:52:16+00:00 2026-05-18T02:52:16+00:00

Hi All I have a document with this structure. <Employee> <Group Id=1> <Employee Id=2

  • 0

Hi All
I have a document with this structure.

   <Employee>
      <Group Id="1">
         <Employee Id="2" />
         <Employee Id="3" />
         <Employee Id="4" />
         <Employee Id="5" />
         <Group Id="2">
            <Employee Id="6" />
            <Employee Id="7" />
            <Employee Id="8" />
            <Employee Id="9" />
         </Group>
      </Group>
      <Group Id="3">
        <Employee Id="10" />
        <Employee Id="11" />
        <Employee Id="12" />
        <Employee Id="13" />
        <Employee Id="14" />
     </Group>
  </Employee>

As you can see Group 1 has a “SubGroup” if you like called Group id 2
I need to insert another subgroup into Group Id 1 AS follows

       <Group Id="4">
          <Employee Id="15" />
          <Employee Id="16" />
          <Employee Id="17" />
          <Employee Id="18" />
          <Employee Id="19" />
        </Group>

The result will be that GROUP 1 will have 2 subgroups .

How can do it?

Any suggestions? Never used sql xml.
thanks!

  • 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-05-18T02:52:16+00:00Added an answer on May 18, 2026 at 2:52 am

    Read XML data, change XML, store XML.

    Insert / Update is not supported by SQL Server. XML data type is not a replacement for using the relational engine. It is for storing YXML Structured document data (and supports query based on it).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a document structure in MongoDB like this: User |---> Posts |----> Comments
Hai I have An XDocument .All nodes in this document have an attribute UserId.
I have a document containing many quotation marks. I need to replace all pairs
I have a variable myvar = document.getElementById('myid').innerHTML that I would like to replace all
I have a structure like this: <ul id="mycustomid"> <li><a>Item A</a> <ul class="children"> <li><a>Child1 of
I have a html structure like this : <div id=nav_holder style=position:absolute;border-radius:400px;width:0px;height:0px;background-color:#460203;z-index:350px;> <div id=inner_wrap> </div>
I have a xml document ~10mb in size. It has relatively simple structure but
Good day to all. I have this structure <html> <iframe> <div id=idd>Some Content</div> </iframe>
I have an xml structure like this <element> <foodjoint_name>DineOut</foodjoint_name> <logo>http://192.168.1.112/dineout/images/dominos.jpg</logo> </element> I am parsing
I have a HTML structure like this:- <article id=a_post class=a_post> <div id=thumbnail> <img id=shine

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.