Streame XML til browser
strxml = strxml &" <?xml version=""1.0"" encoding=""utf-8"" ?> "strxml = strxml &" <ArrayOfAuction xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema""> "
strxml = strxml &" <Auction> "
strxml = strxml &" <Channel>Fixed</Channel> "
strxml = strxml &" <StateID>0</StateID> "
strxml = strxml &" <SentDate>1899-12-30T01:00:00+01:00</SentDate> "
strxml = strxml &" <PartnerID>12</PartnerID> "
strxml = strxml &" <UserID>403310839</UserID> "
strxml = strxml &" <CurrencyID>12</CurrencyID> "
strxml = strxml &" <TextList> "
strxml = strxml &" <Text> "
strxml = strxml &" <Lng>da</Lng> "
strxml = strxml &" <title>"& headline &"</Title> "
strxml = strxml &" <desc>"& ProdSpec &"</Desc> "
strxml = strxml &" <Payment /> "
strxml = strxml &" <Delivery /> "
strxml = strxml &" <Warranty /> "
strxml = strxml &" </Text> "
strxml = strxml &" </TextList> "
strxml = strxml &" <ItemID></ItemID> "
strxml = strxml &" <CategoryID></CategoryID> "
strxml = strxml &" <ImagesCount></ImagesCount> "
strxml = strxml &" <IsImagesListChanged>true</IsImagesListChanged> "
strxml = strxml &" <ImgList> "
strxml = strxml &" <Img Number=""1"" FileName="""" /> "
strxml = strxml &" <Img Number=""2"" FileName="""" /> "
strxml = strxml &" <Img Number=""3"" FileName="""" /> "
strxml = strxml &" <Img Number=""4"" FileName="""" /> "
strxml = strxml &" <img Number=""5"" FileName="""" /> "
strxml = strxml &" <Img Number=""6"" FileName="""" /> "
strxml = strxml &" <Img Number=""7"" FileName="""" /> "
strxml = strxml &" <Img Number=""8"" FileName="""" /> "
strxml = strxml &" <Img Number=""9"" FileName="""" /> "
strxml = strxml &" <Img Number=""10"" FileName="""" /> "
strxml = strxml &" </ImgList> "
strxml = strxml &" <PromotionFlags>Gallery BuyNow</PromotionFlags> "
strxml = strxml &" <StartDate>"& aar &"-"& Maned &"-"& Dagen &"T"& time &".393+02:00</StartDate> "
strxml = strxml &" <EndDate>1899-12-30T01:00:00+01:00</EndDate> "
strxml = strxml &" <Duration>20160</Duration> "
strxml = strxml &" <BidDate>0001-01-01T01:00:00+01:00</BidDate> "
strxml = strxml &" <BuyerAlias /> "
strxml = strxml &" <BuyerEmail /> "
strxml = strxml &" <BuyerFirstName /> "
strxml = strxml &" <BuyerLastName /> "
strxml = strxml &" <BuyerTel1 /> "
strxml = strxml &" <BuyerTel2 /> "
strxml = strxml &" <BuyerAdr1 /> "
strxml = strxml &" <BuyerAdr2 /> "
strxml = strxml &" <BuyerZIP /> "
strxml = strxml &" <BuyerCity /> "
strxml = strxml &" <BuyerCountry /> "
strxml = strxml &" <Quantity>1</Quantity> "
strxml = strxml &" <CurrentQuantity>1</CurrentQuantity> "
strxml = strxml &" <ThemeID>8</ThemeID> "
strxml = strxml &" <WarrantyID>2</WarrantyID> "
strxml = strxml &" <DeliveryID>2</DeliveryID> "
strxml = strxml &" <PaymentID>4</PaymentID> "
strxml = strxml &" <PaymentMethodsFlags>8192</PaymentMethodsFlags> "
strxml = strxml &" <Reference>Fors.</Reference> "
strxml = strxml &" <StartPrice>0</StartPrice> "
strxml = strxml &" <BuyNowPrice>30</BuyNowPrice> "
strxml = strxml &" <PriceIncrement>0</PriceIncrement> "
strxml = strxml &" <AvailabilityID>0</AvailabilityID> "
strxml = strxml &" <ReactTimes>1</ReactTimes> "
strxml = strxml &" </Auction> "
strxml = strxml &" </ArrayOfAuction> "
Hvordan får jeg det ud i browseren uden først at gemme filen på serveren ???
prøvede med :
Response.Buffer = True
Response.Expires = 0
Response.ContentType = "text/xml"
Response.AddHeader "Content-Disposition", "inline;filename="&produktid&".xml"
Response.BinaryWrite = strxml
Dog uden det store resultat
