TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Introduction To XML Trees
Delpin Susai Raj
Aug 12, 2016
9
k
0
4
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
This code snippet, used in this blog is for XML trees.
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
XML Files
Trees
Next Recommended Reading
How To Convert JSON Into XML Or XML Into JSON