Click here to Skip to main content
12,996,849 members (131,350 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I badly need to know that how to get child elements and attributes from a Xml.I am using XDocument for this matter.I have added XML here with. i have to get Image elelment of 'Point' Elements collections.

Thanks in advance
Monish K M

    <image FileIndex="1"/>
      <Point x="2"  y="3"  text="Head"/>
      <Point x="10" y="50" text="Leg"/>
      <Point x="20" y="50" text="Neck"/>
    <image FileIndex="2"/>
      <Point x="10"  y="30"  text="Head"/>
      <Point x="1" y="5" text="Leg"/>
      <Point x="2" y="5" text="Neck"/>
    <image FileIndex="3">
      <Point x="8"  y="3"  text="Head"/>
      <Point x="11" y="50" text="Leg"/>
      <Point x="25" y="50" text="Neck"/>
Posted 9-Aug-12 20:38pm
Updated 9-Aug-12 20:40pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Check this link. You will get an idea. You have to use the same concept for your xml[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170622.1 | Last Updated 10 Aug 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100