Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Append/Import XML from input - IE5-7 - Javascript

From: Ray Proffitt <rayone@-----.--->
To: 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.


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent