[ 
https://issues.apache.org/jira/browse/SOLR-1669?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12793238#action_12793238
 ] 

Hoss Man commented on SOLR-1669:
--------------------------------

{quote}
bq. The default should be to not include a schema. 

Why?
{quote}

Back compat.

XML Parsers can be configured to do validation if/when a schema/dtd is 
declared.  Clients unknowningly using a parser configured that way could (and 
most likely would) perceive a big slow down in their apps if we started 
including the schema declaration and that triggered expensive validation when 
they didn't want it.

there are also people using the XML response format for incredibly small 
responses (thing an autosuggest component) where a schema delcaration would 
double the size of hte response.

> Make XMLWriter write out xml that references the SOLR response XSD/DTD 
> -----------------------------------------------------------------------
>
>                 Key: SOLR-1669
>                 URL: https://issues.apache.org/jira/browse/SOLR-1669
>             Project: Solr
>          Issue Type: Improvement
>          Components: Response Writers
>    Affects Versions: 1.2, 1.3, 1.4
>         Environment: My MacBook Pro, Christmas-break style.
>            Reporter: Chris A. Mattmann
>             Fix For: 1.5
>
>         Attachments: SOLR-1669.Mattmann.121709.patch.txt
>
>
> As described in SOLR-17, this is patch #2 of 3. It will make a simple 
> modification to XMLWriter which makes the output response XML reference the 
> SOLR XSD file. This way, clients can validate against it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to