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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T21:48:37+00:00 2026-05-10T21:48:37+00:00

I appreciate that there are now many mechanisms in dotnet to deal with XML

  • 0

I appreciate that there are now many mechanisms in dotnet to deal with XML in a myriad of ways…

Suppose I have a string containing the XML….

<?xml version='1.0' encoding='utf-8' ?> <root>     <Element1>         <Element1_1>             SomeData         </Element1_1>     </Element1>     <Element2>         Some More Data     </Element2> </root> 

What is the simplest (most readable) way of removing Element1_1?

Update… I can use any .Net API available in .Net 3.5 😀

  • 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. 2026-05-10T21:48:38+00:00Added an answer on May 10, 2026 at 9:48 pm

    Which APIs are you able to use? Can you use .NET 3.5 and LINQ to XML, for instance? If so, XNode.Remove is your friend – just select Element1_1 (in any of the many ways which are easy with LINQ to XML) and call Remove() on it.

    Examples of how to select the element:

    XElement element = doc.XPathSelectElement('/root/Element1/Element1_1'); element.Remove(); 

    Or:

    XElement element = doc.Descendants('Element1_1').Single().Remove(); 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 59k
  • Answers 59k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer You can trigger the event (or it's handler) directly by… May 11, 2026 at 9:02 am
  • added an answer Staging tables, as you describe are an essential part of… May 11, 2026 at 9:02 am
  • added an answer I found a solution to kick that error $.ajaxSetup({'beforeSend': function(xhr){… May 11, 2026 at 9:02 am

Related Questions

I appreciate that there are now many mechanisms in dotnet to deal with XML
I have a design issue that I would appreciate some input on. I would
I'd appreciate some feedback on a particular approach I'm thinking of using. The scenario
I would appreciate some guidance on modelling services and operations in WCF. I have
I'd appreciate people's thoughts on a dilemma I've been struggling with ever since ASP.NET
I would really appreciate any suggestions, no matter how simple or complex, to help
Assuming such a query exists, I would greatly appreciate the help. I'm trying to
OK we are at the end of our rope here, and I’d really appreciate
I have an interesting problem and would appreciate your thoughts for the best solution.
I'm new to regular expressions and would appreciate your help. I'm trying to put

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.