Zip Component, Email Component, Encryption Component ActiveX Control for Zip Compression .NET Components for ASP.NET
ActiveX and .NET Components for Zip Compression, Encryption, Email, XML, S/MIME, HTML Email, Character Encoding, Digital Certificates, FTP, and more ASP Email ActiveX Component

Index of Chilkat Blog Posts

January 30, 2008

XML Content vs Children

This blog post explains the often misunderstood difference between an XML node’s Content and it’s child nodes. The child nodes are not included in the node’s Content property. For example, here is a sample XML document:

<node1> node_value1 </node1>
     <subnode1> subnode_value1 </subnode1>
     <subnode2> subnode_value2
          <subsubnode1> subsubnode_value1 </subsubnode1>
          <subsubnode2> subsubnode_value2 </subsubnode2>
          <subsubnode3> subsubnode_value3 </subsubnode3>
     <subnode3> subnode_value3 </subnode3>
     <subnode4> subnode_value4 </subnode4>
<node3> node_value7 </node3>

node1 has no children, but its Content is "node_value1″.
node2 on the other hand, has no Content, but it has four children.
subnode2 has both Content and children. Its Content = "subnode_value2″, and it has 3 children.

Privacy Statement. Copyright 2000-2011 Chilkat Software, Inc. All rights reserved.
Send feedback to

Components for Microsoft Windows XP, 2000, 2003 Server, Vista, Windows 7, and Windows 95/98/NT4.