Re: PostgreSQL 8.3 XML parser seems not to recognize the DOCTYPE element in XML files
В списке pgsql-general по дате отправления:
| От | Kevin Grittner |
|---|---|
| Тема | Re: PostgreSQL 8.3 XML parser seems not to recognize the DOCTYPE element in XML files |
| Дата | |
| Msg-id | 484591E5.7050309@wicourts.gov обсуждение исходный текст |
| Ответ на | Re: PostgreSQL 8.3 XML parser seems not to recognize the DOCTYPE element in XML files (Bruce Momjian <bruce@momjian.us>) |
| Список | pgsql-general |
Bruce Momjian wrote: > Added to TODO: > > * Allow XML to accept more liberal DOCTYPE specifications Is any form of DOCTYPE accepted? We're getting errors on a second line in an XML document that starts like this: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE DOT_OFFICER_CITATION SYSTEM "http://host.domain/dtd/dotdisposition0_02.dtd"> The actual host.domain value is resolved by DNS, and wget of the url works on the server running PostgreSQL. Attempts to cast the document to type xml give: ERROR: invalid XML content DETAIL: Entity: line 2: parser error : StartTag: invalid element name <!DOCTYPE DOT_OFFICER_CITATION SYSTEM "http://host.domain/dtd/dot ^ It would be nice to use the xml type, but we always have DOCTYPE. I understand that PostgreSQL won't validate against the specified DOCTYPE, but it shouldn't error out on it, either. -Kevin
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера