Hem Paylaş Hem Öğren
Would you like to react to this message? Create an account in a few clicks or log in to continue.

MAD:RAT..trojeni ve kodları...

Aşağa gitmek

MAD:RAT..trojeni ve kodları... Empty MAD:RAT..trojeni ve kodları...

Mesaj  ©Copyright Salı Ara. 25, 2007 12:00 am

buyrun:

Cannot have a DOCTYPE declaration outside of a prolog.
Error processing resource
'http://localhost:28178/omniparkv3/search....

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
----------^
================================================== =====


I am getting the above error while trying to return
XML data via Response.Write as follows :

================================================== =====
HttpContext current;
current = HttpContext.Current;
current.Response.ContentType =
"text/xml";
current.Response.ContentEncoding = new
System.Text.UTF8Encoding();
current.Response.ClearContent();

StringBuilder xml = new
StringBuilder();
xml.Append("<?xml version=" + "\"" +
"1.0" + "\"" + "?>\r\n");
xml.Append("<?xml-stylesheet
type=\"text/xsl\"
href=\"http://localhost/transform.xsl\"?>");
xml.Append("");
xml.Append("<!-- Title -->\r\n");
xml.Append("<T1>\r\n");
xml.Append("<Message>Some
text</Message>\r\n");
xml.Append("</T1>\r");

current.Response.Write(xml.ToString());
================================================== =====

Someone answered in a similar discussion in the
archives that following worked :

<xslutput doctype-public="-//W3C//DTD HTML 4.01//EN"
doctype-system="http://www.w3.org/TR/html4/strict.dtd"
method="html" version="4.01" encoding="UTF-8"
indent="yes"/>

I placed following file at
http://localhost/transform.xsl in the xml data I
returned as written above :

================================================== =====
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format">

<xslutput doctype-public="-//W3C//DTD HTML 4.01//EN"
doctype-system="http://www.w3.org/TR/html4/strict.dtd"
method="html" version="4.01" encoding="UTF-8"
indent="yes"/>

</xsl:stylesheet>

Kısmen Alıntıdır..
©Copyright
©Copyright
Admin
Admin

Mesaj Sayısı : 45
Kayıt tarihi : 23/12/07
Yaş : 28
Nerden : Ünye

https://rollickingforum.yetkin-forum.com

Sayfa başına dön Aşağa gitmek

Sayfa başına dön


 
Bu forumun müsaadesi var:
Bu forumdaki mesajlara cevap veremezsiniz