[Home]  [Edit this page]  [Recent Changes]  [Special Pages]  [Help
How_To_XML_Display_XML_Attributes_DataIslands

How to display XML attributes using Data Islands?

You can refer to XML attributes using the datafld attribute, similarly to referencing an element's name.

<xml id="books">
<?xml version="1.0"?>
<books>
	<book ISBN="0321173481" author="Michael R. Sweet" />
	<book ISBN="0849371643" author="Gerald Farin" />
	<book ISBN="1558606696" author="David Rogers" />
	<book ISBN="1568810849" author="Gerald Farin" />
</books>
</xml>
<span datasrc="#books" datafld="ISBN"></span>
<br />
<span datasrc="#books" datafld="Author"></span>


XML FAQ

last edited (April 19, 2004) by lillu, Number of views: 2056, Current Rev: 5 (Diff)

[Edit this page]  [Page history]  [What links here]  [Discuss this topic]  [Printer Friendly]  

Members

Username:

Password:


Register
Forgot Password?




Programmers Heaven - for .NET, Java, C/C++ and WEB Developers!
© 1996-2008 Community Networks Ltd. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Development by Tore Nestenius at .NET Consultant - Synchron Data.