![]() |
Object Model Support
The XML object model in Internet Explorer 5 provides support for dealing with namespaces. The following properties provide the facility to extract the namespace, prefix, and base name for a given node.
The following examples show some XML data, followed by a table showing each element and attribute, as well as their properties in the XML object model. <BOOKS> <BOOK xmlns="urn:BookLovers.org:BookInfo"> <TITLE>A Suitable Boy</TITLE> <PRICE currency="US Dollar">22.95</PRICE> </BOOK> </BOOKS>
<BOOKS> <bk:BOOK xmlns:bk="urn:BookLovers.org:BookInfo" xmlns:money="urn:Finance:Money"> <bk:TITLE>A Suitable Boy</bk:TITLE> <money:PRICE money:currency="US Dollar">22.95</money:PRICE> </bk:BOOK> </BOOKS>
The object model also extends support for creating and removing elements and attributes by taking namespaces into account.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
© 1999 Microsoft Corporation. All rights reserved. Terms of Use. |