Re: text/xml handling

Russell Gold <[email protected]>
Newsgroups gmane.comp.web.httpunit.devel
Message-ID <[email protected]>
Absolutely.

On Apr 2, 2008, at 3:14 AM, Wolfgang Fahl wrote:

> Dear httpunit developers,
>
> bug report / patch [ 1281655 ] [patch] allow text/xml to be parsed  
> as html by fabrizio giustina
> https://sourceforge.net/tracker/index.php?func=detail&aid=1281655&group_id=6550&atid=106550
>
> calls for the addition of text/xml to the validContentTypes.
>
> I've modified the code and added accessors so that it's possible to  
> set the validContentTypes. I have not added XML_CONTENT to the list  
> yet since it would break testTraversal. Please let me know whether I  
> should modify testTraversal to be able to activate this patch.
>
>     private   static   final  String HTML_CONTENT   = "text/html" ;
>     private   static   final  String XHTML_CONTENT  = "application/ 
> xhtml+xml" ;
>     private   static   final  String FAUX_XHTML_CONTENT  = " text/ 
> xhtml " ;
>     // [ 1281655 ] [patch] allow text/xml to be parsed as html
>     // calls for adding this put would break testTraversal
>     private   static   final  String XML_CONTENT   = "text/xml" ;
>     // the list of valid content Types
>     private   static  String[] validContentTypes ={
>     HTML_CONTENT , XHTML_CONTENT , FAUX_XHTML_CONTENT
>     };
>
>
>
> Yours
>   Wolfgang
>
> BITPlan - smart solutions
> Pater-Delp-Str. 1, D-47877 Willich Schiefbahn
> Tel. +49 1805 - BITPLAN / +49 1805 248 752, Fax +49 2154 811-481
> Web: http://www.bitplan.de
> bitplan GmbH, Willich - HRB 6820 Krefeld, VAT-ID: 10258040548,  
> Geschäftsführer: Wolfgang Fahl
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace_______________________________________________
> Httpunit-develop mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/httpunit-develop

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace

_______________________________________________
Httpunit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/httpunit-develop
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.