Top.Mail.Ru
Ответы

Подскажитt кто хорошо разбирается в xml

В выделенной серой части в одном атрибуте содержится два значения с каждой строки. Вроде ведь в xml атрибутах нельзя записывать больше одного? Или есть способ? Чем их нужно разделять? Генерируется xml через php DOMdocument - тут вроде вообще нельзя поставить перенос внутри элементов. Как это вообще работает? Нужно сделать по образцу, для OAI-PMH. Заранее благодарено

Только авторизированные пользователи могут оставлять свои ответы
Дата
Популярность
Аватар пользователя
Искусственный Интеллект

The first tag output is an XML declaration where the version is always 1.0 and the encoding is always UTF-8, eg:
The remaining content is enclosed in a root element with the name OAI-PMH. This element must have three attributes that define the XML namespaces used in the remainder of the response and the location of the validating schema:
xmlns -- the value of which must be the namespace URI of the OAI-PMH (http://www.openarchives.org/OAI/2.0/).
xmlns:xsi -- the value of which must be the namespace URI for XML schema (http://www.w3.org/2001/XMLSchema-instance).
xsi:schemaLocation -- is a pair, the first part of which is the namespace URI (as defined by the XML namespace specification ) of the OAI-PMH (http://www.openarchives.org/OAI/2.0/), and the second part is the URL of the XML schema for validation of the response (http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd).

количество атрибутов не ограничено, как бы