Sorry if I'm not answering the question - but is it the website content, you want to download? If positive, these are similar questions where the solution may lie:. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams?
Collectives on Stack Overflow. Learn more. How to download xml data of a website? Asked 7 years, 8 months ago. Active 7 years, 8 months ago. Viewed 4k times. Improve this question. If you got url of that xml, get the stream using http client. Well i am getting my own website xml data. So its localhost — dotamon. Hmm correct but not what i am looking for. Add a comment. Active Oldest Votes. If positive, these are similar questions where the solution may lie: How to get a web page's source code from Java Get source of website in java How do I retrieve a URL from a web site using Java?
Improve this answer. Community Bot 1 1 1 silver badge. FanaticD FanaticD 1, 3 3 gold badges 19 19 silver badges 34 34 bronze badges. How to download a xml content in a xml file [duplicate] Ask Question.
Asked 9 years, 3 months ago. Active 9 years, 3 months ago. Viewed 9k times. Community Bot 1 1 1 silver badge. Ash Ash 5 5 silver badges 14 14 bronze badges. Add a comment. Active Oldest Votes. You don't need a xml stream here, just return the bytes. Please correct the error and then click the Refresh button, or try again later. OK, so you have a error on your xml definition. Paste the xml here. Probably the error is on root node. I think the problem could be some namespace declaration on the root element.
But maybe the default browser xsl for xml could cause de problem. Hard to say. Paste the xml root declaration here. In your case you have to prefix g. Try it and see what happens. If it not works you'll need to inspect the response as received by the browser looking for encoding headers for example or try change the encode to utf
0コメント