Форум АНТИЧАТ

Форум АНТИЧАТ (https://forum.antichat.xyz/index.php)
-   С/С++, C#, Delphi, .NET, Asm (https://forum.antichat.xyz/forumdisplay.php?f=24)
-   -   Html&xhtml (https://forum.antichat.xyz/showthread.php?t=4940)

Майор 29.01.2005 16:51

Html&xhtml
 
Есть ли возможность вставить xhtml код в тело html страницы ?

Algol 03.02.2005 00:14

xhtml - это ваще что такое ?

Майор 03.02.2005 03:25

.....я имел ввиду xml код

Algol 03.02.2005 17:59

XML можно
Например так:
Код HTML:

This example uses the XML element to define a simple XML data island that can be embedded directly in an HTML page.

<XML ID="oMetaData">
  <METADATA>
    <AUTHOR>John Smith</AUTHOR>
    <GENERATOR>Visual Notepad</GENERATOR>
    <PAGETYPE>Reference</PAGETYPE>
    <ABSTRACT>Specifies a data island</ABSTRACT>
  </METADATA>
</XML>
This example uses the readyState property of the xml object to determine whether the XML data island is completely downloaded.

  if (oMetaData.readyState == "complete")
      window.alert ("The XML document is ready.");

This script example retrieves the text contained within the ABSTRACT field of the data island.

  var oNode = oMetaData.XMLDocument.selectSingleNode("METADATA/ABSTRACT");
  alert(oNode.text);

(C)MSDN

Майор 03.02.2005 20:06

Спасибо, попробую!


Время: 00:04