# RSS Feed to print through receipt printer

**URL:** <https://discourse.processing.org/t/rss-feed-to-print-through-receipt-printer/4945>\
**Category:** Coding Questions\
**Created:** [October 28, 2018, 11:28am UTC](https://discourse.processing.org/t/rss-feed-to-print-through-receipt-printer/4945 "2018-10-28T11:28:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lili](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/lili/32/2114_2.png) [@Lili](https://discourse.processing.org/u/Lili)\
**Post date:** [October 28, 2018, 11:28am UTC](https://discourse.processing.org/t/rss-feed-to-print-through-receipt-printer/4945/1 "2018-10-28T11:28:47Z")

</div>

Hi! I’m very new to Processing and coding but I’m trying to print the content of an RSS Feed to print through a receipt/ thermal printer.

I can print text through the MyPort.Write function but it’d be great if it would print all the content without anything having to be typed in. I get the content coming up in the run window, just trying to get it to print.

Any help would be amazing!

```auto
import processing.serial.*;

Serial myPort; // Create object from Serial class
int val; // Data received from the serial port

void setup() {
  String portName = Serial.list()[2];
  printArray(Serial.list());
  myPort = new Serial(this, portName, 19200);
  // Send a capital A out the serial port:
  myPort.write(0x1B); 
  //ESC POS command
  myPort.write('@'); 
  //ESC POS initialize followed after command
  myPort.write("news news ahahahahahaha()"); 

  //Print "Hola Epson" to buffer
  myPort.write(0xA); 
  //Print and Line Feed from B
}

void draw() {
  XML xml;
  //String url = "http://rss.news.yahoo.com/rss/topstories";  
  //XMLElement rss = new XMLElement(this, url);
  xml = loadXML("https://www.theguardian.com/international/rss");
  XML channel = xml.getChild("channel");
  XML[] items = channel.getChildren("item");

  for (int i = 0; i < items.length; i++) {
    //int id = children[i].getInt("id");
    //String coloring = children[i].getString("species");
    //String name = items[i].getContent();
    XML title = items[i].getChild("title");
    println(i);
    text(title.getContent(), 10, i*15);
  }
}

```

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [October 31, 2018, 5:27pm UTC](https://discourse.processing.org/t/rss-feed-to-print-through-receipt-printer/4945/2 "2018-10-31T17:27:23Z")

</div>

Hi @Lili – have you looked at other thermal printer posts to see if they might be helpful, or to contact those users?

[https://discourse.processing.org/search?q=thermal](https://discourse.processing.org/search?q=thermal)

---

<div class="post-metadata">

**Author:** ![Lili](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/lili/32/2114_2.png) [@Lili](https://discourse.processing.org/u/Lili)\
**Post date:** [October 31, 2018, 10:54pm UTC](https://discourse.processing.org/t/rss-feed-to-print-through-receipt-printer/4945/3 "2018-10-31T22:54:47Z")

</div>

Hi Jeremy, I’ve read through the other posts but could try getting in contact with those users.
