|
Спасибо за ответ...
|
|||
---|---|---|---|
#18+
Народ подскажите как правильно составить XSD схему к XML вида: <?xml version="1.0" encoding="UTF-8" ?> <auto> <header> <sender id="XXXX" /> <recipient id="NNNNNNNN" /> </header> <body> <message-accepted file="example.xml" mid="1"> <message-id id="1"> <info>Сообщение обработано</info> </message-id> </message-accepted> </body> <signature /> </auto> Не могу понять, вот пример не работает: xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sql="urn:schemas-microsoft-com:mapping-schema"> <xsd:element name="body" sql:is-constant="1" > <xsd:complexType> <xsd:sequence> <xsd:element name="message-accepted" sql:relation="Table1" maxOccurs="unbounded"> <xsd:complexType> <xsd:sequence> <xsd:element name="File" type="xsd:string" /> <xsd:element name="mid" type="xsd:int" /> <xsd:element name="id" type="xsd:int" /> <xsd:element name="Info" type="xsd:string" /> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:schema> Нужна таблица вида: File,mid,id,info Ошибка: The Attribute 'file' on the element 'message-accepted' is Not Defined in the DTD/Schema. В чём проблема не пойму? ... |
|||
:
Нравится:
Не нравится:
|
|||
28.05.2010, 02:34 |
|
Спасибо за ответ...
|
|||
---|---|---|---|
#18+
guwThe Attribute 'file' on the element 'message-accepted' is Not Defined in the DTD/Schema. В чём проблема не пойму? В этом то и проблема. Говорит, что атрибут 'file', который присутствует в элементе 'message-accepted' не определен в Вашей XSD схеме. И с этим нужно, что-то делать ... |
|||
:
Нравится:
Не нравится:
|
|||
29.05.2010, 14:59 |
|
|
start [/forum/topic.php?fid=14&fpage=35&tid=1333211]: |
0ms |
get settings: |
8ms |
get forum list: |
12ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
27ms |
get topic data: |
11ms |
get forum data: |
2ms |
get page messages: |
37ms |
get tp. blocked users: |
2ms |
others: | 298ms |
total: | 403ms |
0 / 0 |