Abstract:
A method for integrating Really Simple Syndication (RSS) documents includes extracting a data element set from an item of an RSS document and data elements contained in the data element set through a tag processing procedure; establishing a menu pool for displaying the content of the data element set and the content of the data elements; executing an editor to compose and edit the selected data element set and data elements, so as to combine the selected data element set and ata elements into a new item; and outputting the new item as a target output document. Through the method, the content of various RSS documents is integrated into a customized Hypertext Markup Language (HTML) or RSS document meeting the requirements of a user.

Description:
CROSS-REFERENCE TO RELATED APPLICATIONS 
       [0001]    This non-provisional application claims priority under 35 U.S.C. §119(a) on Patent Application No(s). 099131720 filed in Taiwan, R.O.C. on Sep. 17, 2010, the entire contents of which are hereby incorporated by reference. 
       BACKGROUND OF THE INVENTION 
       [0002]    1. Field of Invention 
         [0003]    The disclosure relates to a method for integrating Extensible Markup Language (XML) documents, and more particularly, to a method for integrating Really Simple Syndication (RSS) documents. 
         [0004]    2. Related Art 
         [0005]    Rapid development of computers and the Internet, results in rapid explosion in the amount of information over the Internet. A search engine is a quite helpful tool for a used to find information of interests from websites on Internet. However this is not convenient for the user as Internet is still required. 
         [0006]    A technology for providing summary information of web pages is already well-known, for example, the Really Simple Syndication Feed (RSS Feed) technology is a technology for distributing and collecting web page content through documents in the XML format. The RSS Feed technology may store summary information of websites as an RSS document of the XML format (referred to as an RSS document hereinafter), and the RSS document may include, for example, but is not limited to, the title and the summary content. The user may read subscribed RSS documents through an RSS aggregator by subscribing the RSS Feed from one or more websites, and even may regularly check and update functions through the RSS aggregator to obtain the latest information of the website. 
         [0007]    US Publication No. 20060167860, entitled “Data extraction for feed generation”, has disclosed a method for automatically generating a data feed. The method includes: obtaining multiple data elements by parsing a structured or non-structured resource containing the multiple data elements, in which the resource matches a predefined sample, and the sample is structured to be the data feed and has multiple fields; and combining the data elements obtained through parsing into one or more fields, so as to automatically generate a data feed. 
         [0008]    In the prior art, the structures of the RSS feeds are structured RSS documents that have already been defined. The user may not modify or edit the RSS documents as desired to generate a customized RSS document or Hypertext Markup Language (HTML) document based on the requirement of the user. 
       SUMMARY OF THE INVENTION 
       [0009]    The disclosure is a method for integrating RSS documents, which can perform customized content integration on RSS documents from multiple data feeds, so as to generate a customized HTML document or RSS document meeting the requirements of a user. 
         [0010]    An embodiment of the disclosure comprises: acquiring multiple RSS documents; performing a tag processing procedure on each of the RSS documents, and extracting the content of a data element set and the content of data elements contained in the data element set from items contained in the RSS document; establishing a menu pool for displaying the extracted content of the data element set and the data elements; executing an editor to compose and edit the selected content of the data element set and the data elements; combining the composed and edited content of the data element set and the data elements into a new item; and outputting the new item as a target output document. 
         [0011]    According to an embodiment of the disclosure, the method further comprises: combining the content of multiple data element sets and data elements after a plurality of composing and editing steps into a plurality of new items, and storing the plurality of new items in a temporary set; and after completing the composing and editing operation of the content of the data element sets and the content of the data elements, outputting the multiple new items in the temporary set as a target output document. 
         [0012]    In the method for integrating RSS documents according to the embodiments of the disclosure, the RSS documents from different feeds may be re-composed and integrated into a customized HTML document or RSS document to meet the requirements of the user. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0013]    The patent or application file contains at least one drawing executed in color. Copies of this patent or patent application publication with color drawing(s) will be provided by the Office upon request and payment of the necessary fee. 
           [0014]    The disclosure will become more fully understood from the detailed description given herein below for illustration only, and thus are not limitative of the disclosure, and wherein: 
           [0015]      FIG. 1  is a schematic architecture view of the disclosure; 
           [0016]      FIG. 2  is a schematic flow chart of a first embodiment, which shows details of steps in  FIG. 1 ; 
           [0017]      FIG. 3  is a schematic flow chart of a second embodiment, which shows steps according to another embodiment of the method of the disclosure; 
           [0018]      FIG. 4  is a schematic view of a program interface, which shows an embodiment of the program interface for implementing the method of the disclosure; and 
           [0019]      FIG. 5  to  FIG. 10  are schematic views illustrating examples of a part of program code content of RSS documents. 
       
    
    
     DETAILED DESCRIPTION OF THE INVENTION 
       [0020]    The method according to the disclosure may be implemented by a common electronic device having digital data processing capability, for example, a computer or a smart phone, and the computer herein comprises, but is not limited to, a personal computer or a note book computer, which executes the method disclosed in the following through software. 
         [0021]    In  FIG. 5  to  FIG. 10 , a part of program code of an RSS document is employed to exemplarily illustrate the implementation of the disclosure. 
         [0022]      FIG. 1  is a schematic architecture view of the disclosure, which comprises: 
         [0023]    1. acquiring various RSS documents from the Internet  10 ; 
         [0024]    2. performing a tag processing procedure  20  on all items in each of the RSS documents, extracting the content of data element sets contained in the items and the content of data elements contained in the data element sets, and writing each extracted data into a first temporary set in sequence, in which the data content herein comprises the content of the data element sets and the content of the data elements; 
         [0025]    3. establishing a menu pool  52  (see  FIG. 4 ), and displaying each data in the first temporary set in the menu pool  52  in sequence for a user to select; 
         [0026]    4. executing an editor  40 , and loading the selected data in the menu pool  52  into an operation interface of the editor  40  for composing and editing; 
         [0027]    5. storing the data after composing and editing as a new item, and writing the new item into a second temporary set; 
         [0028]    6. repeating Step  1  to Step  5  to generate another new item after composing and editing, and writing the new items into the second temporary set in sequence, till the user confirms to end the composing and editing operation; and 
         [0029]    7. combining the new items in the second temporary set as a target output document and output the target output document. 
         [0030]    Generally, the RSS documents acquired in the steps of the method comprise many tags and the content labeled by the tags. The type of the tags comprises, for example, but is not limited to, any one of item &lt;item&gt;, author &lt;author&gt;, category &lt;category&gt;, website with comments &lt;comments&gt;, detailed description of the item &lt;description&gt;, attachment &lt;enclosure&gt;, globally unique identifier &lt;guid&gt;, website of the item &lt;link&gt;, publication date &lt;pubDate&gt;, &lt;source&gt;, inserted images &lt;image&gt;, and title of the item &lt;title&gt;. The content labeled by the tags comprises, for example, but is not limited to, any one of texts, hyperlinks, and multimedia documents. 
         [0031]      FIG. 2  is a schematic flow chart of a first embodiment, which shows details of the steps in  FIG. 1 . Multiple RSS documents (for example, RSS document A, . . . , and RSS document X) may be acquired from one or more RSS feeds in the Internet  10 , each of the RSS documents may comprise one or more items (for example, item  1 , . . . , and item n), and each of the items may further comprise one or more data element sets (for example, data element set A 1 , . . . , and data element set X 1 ); the content of some data element set may further comprise various data elements (for example, the data element set Al comprises data material A 12 , . . . , and data material A 14 ), and the content of some data element set may only comprise one data material (for example, the data element set X 1  only has one data material X 11 ). 
         [0032]    The tag processing procedure  20  in the steps of the method can extract each of the items in the RSS documents and the content of the data element sets and the content of the data elements labeled by different tags in each of the items through a tag recognition means. The tags comprise, for example, but are not limited to, &lt;item&gt;, &lt;author&gt;, &lt;category&gt;, &lt;comments&gt;, &lt;description&gt;, &lt;enclosure&gt;, &lt;guid&gt;, &lt;link&gt;, &lt;pubDate&gt;, &lt;source&gt;, &lt;image&gt;, and &lt;title&gt;. 
         [0033]    An embodiment of the tag processing procedure  20  in the steps of the method extracts each of the tags in the RSS documents and the content labeled by the tag in a nest loop extraction mode, till all the tags and the content labeled by the tags are extracted 
         [0034]    In the following, an example of the RSS document is described to illustrate the nest loop extraction mode. 
         [0035]    The content of one RSS document is assumed as follows (as shown in  FIG. 5 ): 
         [0036]    1. &lt;rss version=“2.0” 
         [0037]    2. xmlns:media=“http://search.yahoo.com/mrss/” 
         [0038]    3. xmlns:dc=“http://purl.org/dc/elements/1.1/”&gt; 
         [0039]    4. &lt;channel&gt; 
         [0040]    5. . . . 
         [0041]    6. &lt;item&gt;&lt;guid&gt;http://www.facebook.com/profile.php?id=750369274&amp;amp;v=wall&amp;amp;story_fbid=148063295212438&lt;/guid&gt; 
         [0042]    7. &lt;title&gt; Too rich/Let eighty-million NTD house vacant to avoid troubles in renting-Yahoo! News&lt;/title&gt; 
         [0043]      8 . &lt;link&gt;http://wvvw.facebook.com/profile.php?id=750369274&amp;amp;v=wall&amp;amp;story_fbid=148063295212438&lt;/link&gt; 
         [0044]    9. &lt;description&gt; 
         [0045]    10. &lt;a class=“title” href=“http://tw.news.yahoo.com/article/url/d/a/100820/2/2bgha.html” target=“_blank”&gt; 
         [0046]    11. Too rich/Let eighty-million NTD house vacant to avoid troubles in renting-Yahoo! 
         [0047]    News 
         [0048]    12. &lt;/a&gt; 
         [0049]    13. &lt;div class=“url”&gt; 
         [0050]    14. Source: tw.news.yahoo.com 
         [0051]    15. &lt;/div&gt; 
         [0052]      16 . &lt;div class=“story_posted_item clearfix”&gt; 
         [0053]    17. &lt;img class=“img_loading img” src=“http://1.yimg.com/o/xp/udn/20100820/09/3158402912jpg” id=“share_thumb — 148063295212438”/&gt; 
         [0054]    18. &lt;div class=“summary”&gt; 
         [0055]    19. The gap between rich and poor in Taiwan gets increasingly larger, and can be described as “One Taiwan, Two Worlds”. Someone is long-term unemployed and can only make a living by doing odd jobs; while rich people spend money recklessly, and once a plutocrat bought a house without hesitation because of good feeling when passing through a new building . . . 
         [0056]    20. &lt;/div&gt; 
         [0057]    21. &lt;/div&gt; 
         [0058]    22. &lt;/description&gt; 
         [0059]    23. &lt;pubDate&gt;Thu, 19 Aug 2010 22:42:14-0700&lt;/pubDate&gt; 
         [0060]    24. &lt;author&gt;Greg Kou&lt;/author&gt; 
         [0061]    25. &lt;dc:creator&gt;Greg Kou&lt;/dc:creator&gt; 
         [0062]    26. &lt;/item&gt; 
         [0063]    27. . . . 
         [0064]    28. &lt;/channel&gt; 
         [0065]    29. &lt;/rss&gt; 
         [0066]    According to the nest loop extraction mode, first, the levels of the items are processed, the content of the data element sets contained in the items is extracted in sequence, and then the content of the data elements contained in the content of the data element sets is extracted. If an RSS document comprises various items, the same processing is performed on each of the items in sequence. In the example in  FIG. 2 , according to the nest loop extraction mode, first, the item  1  is processed, the data element set A 1  is extracted, and then the data material A 12 , . . . , and the data material A 14  contained in the data element set A 1  are all extracted. After the RSS document A is processed, the next RSS document is processed, till the last RSS document X is processed. 
         [0067]    In the example of the RSS documents, according to the nest loop extraction mode, taking the RSS documents in  FIG. 5  as an example, the RSS documents only have one item, which is the content labeled by the tag &lt;item&gt;&lt;/item&gt; and the tag &lt;item&gt;&lt;/item&gt; in Line  6  to Line  26  in the RSS documents, and the content is as shown in  FIG. 6 , and next, the content of the item is processed, in which the content of the data element A, the content of the data element B, and the content of the data element set C are extracted in sequence (as shown in  FIG. 7 ). 
         [0068]    Data element A 
         [0069]    &lt;a class=“title” href=“http://tw.news.yahoo.com/article/url/d/a/100820/2/2bgha.html” target=“_blank”&gt; 
         [0070]    Too rich/Let eighty-million NTD house vacant to avoid troubles in renting-Yahoo! 
         [0071]    News 
         [0072]    &lt;/a&gt; 
         [0073]    Data material B 
         [0074]    &lt;div class=“url”&gt; 
         [0075]    Source: tw.news.yahoo.com 
         [0076]    &lt;/div&gt; 
         [0077]    Data material assemble C 
         [0078]    &lt;div class=“story_posted_item clearfix”&gt; 
         [0079]    &lt;img class=“img_loading img” src=“http://1.yimg.com/o/xp/udn/20100820/09/3158402912.jpg” id=“share_thumb — 148063295212438”/&gt; 
         [0080]    &lt;div class=“summary”&gt; 
         [0081]    The gap between rich and poor in Taiwan gets increasingly larger, and can be described as “One Taiwan, Two Worlds”. Someone is long-term unemployed and can only make a living by doing odd jobs; while rich people spend money recklessly, and once a plutocrat bought a house without hesitation because of good feeling when passing through a new building . . . 
         [0082]    &lt;/div&gt; 
         [0083]    &lt;/div&gt; 
         [0084]    As the data element set C further comprises various data elementdata elements, the nest loop extraction operation is further performed on the data element set C, and the content of the data element C_ 1  and the content of the data element C_ 2  are extracted in sequence (see  FIG. 8 ), till the content of all the data element sets and the content of all the data elements in the items are extracted. 
         [0085]    Data element C_ 1   
         [0086]    &lt;img class=“img_loading img” src=“http://1.yimg.com/o/xp/udn/20100820/09/3158402912.jpg” id=“share_thumb — 48063295212438”/&gt; 
         [0087]    Data material C_ 2   
         [0088]    &lt;div class=“summary”&gt; 
         [0089]    The gap between rich and poor in Taiwan gets increasingly larger, and can be described as “One Taiwan, Two Worlds”. Someone is long-term unemployed and can only make a living by doing odd jobs; while rich people spend money recklessly, and once a plutocrat bought a house without hesitation because of good feeling when passing through a new building . . . 
         [0090]    &lt;/div&gt; 
         [0091]    In an embodiment of the disclosure, the extracted content of the data element sets and the data elements may be converted into a document in the HTML format and displayed in a menu pool  52  as an element pool for the user to select. The menu pool  52  may display the extracted content of the data element sets and the data elementdata elements in a column listing manner (as shown in  FIG. 9 ) or a scattered manner. 
         [0092]    In an embodiment of the disclosure, the tags may not be displayed in the menu pool  52 , and instead, the content of the data element sets and the content of the data elements are displayed in the menu pool  52  by using the same web page content displaying manner as the browser, for example, the content of a data element is displayed as follows: 
         [0093]    &lt;div class=“url”&gt; 
         [0094]    Source: tw.news.yahoo.com 
         [0095]    &lt;/div&gt; 
         [0096]    If the same web page content displaying manner as the browser is adopted in the menu pool  52 , only the text “tw.news.yahoo.com” is displayed in the menu pool  52  as a hyperlink tw.news.yahoo.com. Similarly, if the content of a data element is an image, the image may be displayed in the menu pool  52  in the form of a thumbnail, so as to provide the user with the same displaying effect as the browser, which is convenient for the user to select. 
         [0097]    In another embodiment of the disclosure, the extracted content of the data element sets and the data elements may be displayed in the menu pool  52  in different groups (g 1 s) (as shown in  FIG. 4 ), so that the relevant content of the data element sets and the data elements is collected together systematically, which is convenient for the user to find and identify. 
         [0098]    As shown in  FIG. 2 , the content of the data element sets and the content of the data elements selected by the user in the menu pool  52  are loaded into a material editing region  53  of the editor  40 , and the specific implementation is that, the user loads the selected content of the data element sets and the data elements to a position designated by the user in the material editing region  53  in the manner of clicking or dragging. Through such a manner, the user can compose the position of the content of the data element sets and the content of the data elements in the material editing region  53  as required. In an embodiment of the disclosure, the user may further perform editing operation (comprising modifying and deleting the data element) on the content of the data element sets and the content of the data element data elements in the material editing region  53 . 
         [0099]    As shown in  FIG. 2 , the content of the data element sets and the content of the data elements after composing and editing are stored as a new item, and then output as a target output document (see  FIG. 10 ). According to an embodiment of the disclosure, the target output document may be an HTML document or an RSS document. 
         [0100]    Another embodiment of the disclosure further comprises combining the content of various data element sets and data elements after various composing and editing steps into various new items, as shown in  FIG. 3 , in which the new item generated after the content of the data element sets and the content of the data elements are composed and edited each time by using the editor  40  is stored in a temporary set; and the content of the data element sets and the content of the data elements are repeatedly selected from the menu pool  52  for the composing and editing operation, till the user confirms to end the composing and editing operation of the data element sets and the data elements, and then the various new items in the temporary set are output as a target output document. The method according to this embodiment comprises: 
         [0101]    A. acquiring various RSS documents from the Internet  10 ; 
         [0102]    B. performing a tag processing procedure  20  on all items in each of the RSS documents, extracting the content of data element sets contained in the items and the content of data elements contained in the data element sets, and writing each extracted data into a first temporary set in sequence, in which the data content herein comprises the content of the data element sets and the content of the data elements; 
         [0103]    C. establishing a menu pool  52  (see  FIG. 4 ), and displaying each data in the first temporary set in the menu pool  52  in sequence for a user to select; 
         [0104]    D. executing an editor  40 , and loading the selected data in the menu pool  52  into an operation interface of the editor  40  for composing and editing; 
         [0105]    E. storing the data after composing and editing as a new item, and writing the new item into a second temporary set; 
         [0106]    F. repeating Step C to Step F to generate another new item after composing and editing, and writing the new items into the second temporary set in sequence, till the user confirms to end the composing and editing operation; and 
         [0107]    G combining the new items in the second temporary set as a target output document, and outputting the target output document. 
         [0108]      FIG. 4  is a schematic view of a program interface, which shows an embodiment of the program interface for implementing the method of the disclosure. Here, the program interface comprises: a feed display region  51 , for displaying the various RSS documents acquired from the Internet  10 ; a menu pool  52 , for displaying the content of the data element sets and the content of the data elements extracted by the tag processing procedure  20  as a element pool for the user to select; and a material editing region  53 , serving as a composing and editing operation window of the editor  40 , so as to facilitate the composing and editing operation on the selected content of the data element sets and data elements by the user.