Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 29th, 2005, 01:06 PM
Registered User
Join Date: Oct 2005
Location: , , .
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,

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 01:51 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.