Wrox Programmer Forums
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript 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 February 14th, 2008, 08:34 AM
Friend of Wrox
 
Join Date: Sep 2004
Posts: 103
Thanks: 0
Thanked 0 Times in 0 Posts
Default data island

Hi everyone,

Anyone knows any comprehensive reference to this topic (embeded xml in html or so called data islands). All examples of using it in html tables are just reading the whole xml and put the text parts in table. In detail rules and syntax in order to utilize this technique is not clear anywhere on web. For instance how shall I read an attribute in my xml and put it in my table or is it possible to do any sort of if-then-else through table generation...

Best Regards,
Nerssi

 
Old February 14th, 2008, 08:47 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Given that they are IE only there are some details here: http://msdn2.microsoft.com/en-us/library/ms535918(VS.85).aspx
You can just use the data as if you'd loaded it into a DomDocument by treating the return value of getElementById("myXmlDataId") as if it were a loaded document, alternatively you can use the XMLDocument property. You can also access it as a recordset, see the URL above.

--

Joe (Microsoft MVP - XML)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Island Problem musa100 XML 1 August 5th, 2005 01:53 AM
Problem with Data Island when it has empty data pmcxs XML 4 December 2nd, 2003 10:44 AM
Data Island vs. XSL? hbcontract XML 9 November 19th, 2003 05:35 AM





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