C# Corner
Tech
News
Videos
Forums
Trainings
Books
Events
More
Interviews
Jobs
Live
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Introduction To XML Trees
WhatsApp
Delpin Susai Raj
9y
9.6
k
0
4
25
Blog
sample (1).rar
XML document has a single root node.
The tree is a general ordered tree.
A parent node may have any number of children.
Child nodes are ordered and may have siblings.
Preorder traversals are usually used to get the information, out of the tree.
Simple XML Document
<?
xml
version
= “1.0”
?>
<
address
>
<
name
>
<
first
>
Alice
</
first
>
</
br
>
<
last
>
Lee
</
last
>
</
br
>
</
name
>
<
email
>
[email protected]
</
email
>
</
br
>
<
phone
>
123-45-6789
</
phone
>
</
br
>
<
birthday
>
<
year
>
1983
</
year
>
</
br
>
<
month
>
07
</
month
>
</
br
>
<
day
>
15
</
day
>
</
birthday
>
</
address
>
Program Demo
Write the code from XMLCopyEditor.
Save Any Location(EX:Sample.xml).
Output
People also reading
Membership not found