XML - статьи



              

Листинг 2Описание типов в XML-схеме


http://example.com/stockquote/stockquoteV11.xsd

<?xml version="1.0"?> <schema targetNamespace="http://example.com/stockquote/schemas" xmlns="http://www.w3.org/2000/10/XMLSchema"> <element name="TradePriceRequest"> <complexType> <all>

<element name="tickerSymbol" type="string"/> </all> </complexType> </element> <element name="TradePrice"> <complexType> <all>

<element name="price" type="float"/> </all> </complexType> </element> </schema>
http://example.com/stockquote/stockquoteV20.xsd

<?xml version="1.0"?> <schema targetNamespace="http://example.com/stockquote/schemas" xmlns="http://www.w3.org/2001/XMLSchema"> <element name="TradePriceRequest"> <complexType> <all>

<element name="tickerSymbol" type="string"/> </all> </complexType> </element> <element name="TradePrice"> <complexType> <all>

<element name="price" type="float"/> </all> </complexType> </element> </schema>




Содержание    Вперед