data island doesn't work
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: data island doesn't work

  1. #1
    Join Date
    May 2012
    Posts
    2

    data island doesn't work

    I've got a data island that doesn't work if there are attributes contained in the xml. Is there some way for it to work if I have attributes? Here is the code and you will see that if you add an attribute to an xml node involved in the output then the output won't show.

    I've attached an html page where you can see this. You'll need to change the extension of the file from txt to html. If you open it with IE it will render fine, but if you add an attribute to a xml node then it won't work.

    Code:
    <html>
    <body>
    <table border="1" datasrc="#cdcat">
    <tr>
    <td><span datafld="ARTIST"></span></td>
    <td><span datafld="TITLE"></span></td>
    </tr>
    </table>
    
    <xml id="cdcat">
    <CATALOG>
    	<CD>
    		<TITLE>Empire Burlesque</TITLE>
    		<ARTIST>Bob Dylan</ARTIST>
    		<COUNTRY>USA</COUNTRY>
    		<COMPANY>Columbia</COMPANY>
    		<PRICE>10.90</PRICE>
    		<YEAR>1985</YEAR>
    	</CD>
    	<CD>
    		<TITLE>Hide your heart</TITLE>
    		<ARTIST>Bonnie Tyler</ARTIST>
    		<COUNTRY>UK</COUNTRY>
    		<COMPANY>CBS Records</COMPANY>
    		<PRICE>9.90</PRICE>
    		<YEAR>1988</YEAR>
    	</CD>
    	<CD>
    		<TITLE>Greatest Hits</TITLE>
    		<ARTIST>Dolly Parton</ARTIST>
    		<COUNTRY>USA</COUNTRY>
    		<COMPANY>RCA</COMPANY>
    		<PRICE>9.90</PRICE>
    		<YEAR>1982</YEAR>
    	</CD>
    </CATALOG>
    </xml>
    
    
    </body>
    </html>
    Attached Files Attached Files

  2. #2
    Join Date
    May 2012
    Posts
    2

    Re: data island doesn't work

    to simulate the problem change the following node from

    Code:
    <TITLE>Empire Burlesque</TITLE>
    to
    Code:
    <TITLE blah="yada">Empire Burlesque</TITLE>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center