Wrox Programmer Forums
|
BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0
This is the forum to discuss the Wrox book Professional JavaScript for Web Developers by Nicholas C. Zakas; ISBN: 9780764579080
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 29th, 2005, 01:06 PM
Registered User
 
Join Date: Oct 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default change node contentType

I've got xml nodes from the dom object and i'm trying to add them to my document dom object however it's not picking up the tags. I'm pretty sure it's due the their content type being text/xml instead of test/html. Without xsl is there some easy way to to change their contentType to text/html. I alerted the getter method of contentType and it was empty (meaning test/xml by default), but i can't modify it with that.

basically I read in some xml/html from a file and want to add a few of it's nodes to my document (but since the read in data is xml the html tags aren't rendered properly).

Any idea of how to change the contentType of a node?

Greatly appreciated,

-Paul





Similar Threads
Thread Thread Starter Forum Replies Last Post
change the value of a node anboss XSLT 2 June 12th, 2008 05:55 PM
Change treeview node font-style programmatically panuvin C# 2005 2 December 15th, 2007 02:59 AM
Problem with Response.ContentType nagesh_vasa XML 1 May 23rd, 2004 01:41 PM
Help with excel using response.contenttype YoungLuke Classic ASP Basics 0 October 2nd, 2003 11:16 AM
Response.ContentType jcsierra ASP.NET 1.x and 2.0 Application Design 0 September 8th, 2003 11:24 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.