java 如何设置 XML 提要 URL

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10531986/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-31 01:27:10  来源:igfitidea点击:

How to set up an XML Feed URL

javaxmlfeed

提问by HashimR

I want to post some data on a website. What they are asking me, is to provide them with 'a Url of Xml Feed'. I am unable to understand what it means, as i'm new to this.

我想在网站上发布一些数据。他们问我的是为他们提供“Xml Feed 的 URL”。我无法理解这意味着什么,因为我是新手。

What is the 'Url of xml feed'?

什么是“xml feed 的 URL”?

How to create/set up a xml feed? in java?

如何创建/设置 xml 提要?在爪哇?

Any code snippet, blog links, articles, anything would be helpful. Thanks in advance.

任何代码片段、博客链接、文章,任何东西都会有所帮助。提前致谢。

回答by MarcoS

I guess what they're asking is that you provide an RSS feed. So, you will not post data on the web site, but the web site will fetch data from you using the RSS URL that you expose.

我猜他们要问的是您提供 RSS 提要。因此,您不会在网站上发布数据,但网站会使用您公开的 RSS URL 从您那里获取数据。

For writing an RSS feed with Java, you may look at this tutorial

要使用 Java 编写 RSS 提要,您可以查看本教程

回答by UVM

XML feeds are a form of paid inclusion where a search engine is fed information about an advertiser's web pages by XML. XML is a data delivery language that stands for “Extensible Markup Language” and allows users to define their own elements for sharing structured data. XML feeds also allow the search engine to gather information about web pages without having to gather information by crawling through pages. Marketers who are involved with an XML feed pay to have their pages included in a spider-based search index based on a XML format document which represents each advertiser's websites

XML 提要是一种付费收录形式,其中搜索引擎通过 XML 向搜索引擎提供有关广告商网页的信息。XML 是一种数据交付语言,代表“可扩展标记语言”,允许用户定义自己的元素来共享结构化数据。XML 提要还允许搜索引擎收集有关网页的信息,而不必通过爬行页面来收集信息。参与 XML 提要的营销人员付费将他们的页面包含在基于代表每个广告商网站的 XML 格式文档的基于蜘蛛的搜索索引中

How XML Feed works

XML 提要的工作原理

An RSS (Rich Site Summary or Realy Simple Syndication - depends who you ask!) feed is an XML feed. RSS is a standard for the syndication of content. IT is relay powerful. There is nothing special to them at all it is just xml in a certain fromat. XML its self is not too different from HTML except that you make your own tags up and it is very strict - ie everything must be properly nested.

RSS(丰富的站点摘要或真正简单的联合 - 取决于您询问的对象!)提要是XML feed. RSS 是内容联合的标准。它是继电器强大的。它们根本没有什么特别之处,它只是某个 fromat 中的 xml。XML 本身与 HTML 没有太大区别,除了您自己制作标签并且它非常严格 - 即所有内容都必须正确嵌套。

In RSS you start with a description of the site that produces the feed then you open a channel which contains items, titles, authors and descriptions etc. These link to the full artilces. RSS is primarily news based which is why the date bit is included.

在 RSS 中,您从生成提要的站点的描述开始,然后打开一个包含项目、标题、作者和描述等的频道。这些链接到完整的文章。RSS 主要基于新闻,这就是包含日期位的原因。

Some Sample XML feeds are

一些示例 XML 提要是

http://twitter.com/statuses/public_timeline.xml- twitter

http://twitter.com/statuses/public_timeline.xml- 推特

This tutorial explains how to create a feed in java

本教程介绍了如何在 Java 中创建提要

http://www.techiepark.com/tutorials/how-to-create-rss-or-atom-feed-using-java/

http://www.techiepark.com/tutorials/how-to-create-rss-or-atom-feed-using-java/

May be this will help you.

可能这会帮助你。