string to xmlNode delphi (or how to add an xml fragment to TXMLDocument) <p>I Have a few text strings that contain well formed XML. </p> <p>I would like to be able to (1) turn these strings into <code>IXMLNodes</code> then (2) append them to an existing <code>XMLDocument</code>. Preferably without declaring a new <code>XMLDocument</code> first. </p> <p>This doesn't seem possible? </p> <p>Is there any easy way to accomplish something equivalent though? My initial thought was to use the <code>IXMLNode.XML</code> (string) property and insert the new strings. No such luck as <code>IXMLNode.XML</code> is Read Only.</p> <p>Here is an example, if I had the following strings in a <code>TStringList</code>,</p> <pre><code>&lt;Property Name="Version" RttiType="tkString"&gt;&lt;/Property&gt; &lt;Property Name="ShowSubunit" RttiType="tkBoolean"&gt;&lt;/Property&gt; </code></pre> <p>And I had the following XML, already loaded into a <code>TXMLDocument</code>, how could I easily append the two lines above into the <code>TXMLDocument</code> below?</p> <pre><code>&lt;Program Name="PFOO"&gt; &lt;Class Name="CFOO"&gt; &lt;Property Name="DBN" RttiType="tkString"/&gt; &lt;Property Name="SDate" RttiType="tkClass" ClassType="TXSDATE"&gt;12/30/1899&lt;/Property&gt; &lt;Property Name="XForm" RttiType="tkEnumeration"&gt;xfXML&lt;/Property&gt; &lt;Property Name="Singleton" RttiType="tkBoolean"&gt;True&lt;/Property&gt; &lt;/Class&gt; &lt;/Program&gt; </code></pre> <p>Any other (simple) ways to achieve this (no protected hack on the XML property please)? </p> <p>Thank you!</p>