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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T00:40:41+00:00 2026-06-01T00:40:41+00:00

Im having trouble understanding this : why Microsoft put Xattribute under Xobject ? they

  • 0

Im having trouble understanding this :

enter image description here

why Microsoft put Xattribute under Xobject ?

they say that :

Attributes are not derived from XNode; they are not nodes in the XML
tree. Instead, they are simply name/value pairs associated with an
element.

fine …With an element.

so why not where I made a draw ?

  • 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-01T00:40:43+00:00Added an answer on June 1, 2026 at 12:40 am

    The tree is an inheritance tree, it really doesn’t show how the objects are used together.

    The location you are suggesting just doesn’t work from an inheritance stand point. Elements can have children and attributes, so if XAttribute was derived from XElement, it would mean that Attributes could have child elements and their own attributes. The same goes with XContainer, so it doesn’t make sense to place XAttribute next to XElement in the tree either.

    XNode is the next step up. Could XAttribute fit under XNode? Not really. When you look at an XML, in a general sense, there are 2 basic structural elements, Nodes and Attributes. Neither is derived from the other so it makes sense that XAttribute and XNode be on different branches of the XObject tree.

    That just leaves XObject, which is the base Xml2Linq object type and everything must derive from it, so that is the best (and really only appropriate location) for the XAttribute type.

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

Sidebar

Related Questions

I am having trouble understanding why this is not working. I have two fields
I'm having trouble understanding this question, and the explanation of the answer for an
I'm new to Ruby, so I'm having some trouble understanding this weird exception problem
I am having trouble understanding this code: $.functionone = function(){ function setOptions(newOptions){ ... }
I'm learning F#, and I am having trouble understanding why this crashes. It's an
I am having a little trouble understanding ServiceKnownType in WCF. Taken from this blog
Im having trouble understanding this class and everything ive seen hasn't really helped. Ill
I am having some trouble understanding this brute force approach. I am using Perl
I am having a bit of trouble understanding this bug. Here is the code:
I am having trouble understanding the difference between these two commands that in my

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.