Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Append/Import XML from input - IE5-7 - Javascript Append/Import XML from input - IE5-7 - JavascriptTo: NULL Date: 3/10/2008 9:23:00 PM Hi. I have an XML document: <root> <data> <query> <!--HERE--> </query </data> </root> And I need to insert an XML node with children where <!--HERE--> is. I know how to get the <query> node, but I can't figure out how to insert my node object. An input field will contain the following: <Where><Contains><FieldRef Name="Test"/><Value Type="Text">Tester</Value></Contains></Where> I parse this using "MSXML2.DOMDocument.3.0", and try and insert the XMLDom object as a child of <query>. I've tried using: 1.- The text property of the <query> node, but that escapes the XML and it's treated as text. 2.- queryNode.appendChild(oFldXml) = the operation cannot be performed with a node of type document. 3.- queryNode.importNode(oFldXml, true) = Method not supported. Any advice would be really appreciated. Thanks. | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
