02-RSS.json 16 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093
  1. {
  2. "name": "RSS feed",
  3. "options": {"xmlMode": true},
  4. "file": "RSS_Example.xml",
  5. "expected": [
  6. {
  7. "event": "processinginstruction",
  8. "data": [
  9. "?xml",
  10. "?xml version=\"1.0\"?"
  11. ]
  12. },
  13. {
  14. "event": "text",
  15. "data": [
  16. "\n"
  17. ]
  18. },
  19. {
  20. "event": "comment",
  21. "data": [
  22. " http://cyber.law.harvard.edu/rss/examples/rss2sample.xml "
  23. ]
  24. },
  25. {
  26. "event": "commentend",
  27. "data": []
  28. },
  29. {
  30. "event": "text",
  31. "data": [
  32. "\n"
  33. ]
  34. },
  35. {
  36. "event": "opentagname",
  37. "data": [
  38. "rss"
  39. ]
  40. },
  41. {
  42. "event": "attribute",
  43. "data": [
  44. "version",
  45. "2.0"
  46. ]
  47. },
  48. {
  49. "event": "opentag",
  50. "data": [
  51. "rss",
  52. {
  53. "version": "2.0"
  54. }
  55. ]
  56. },
  57. {
  58. "event": "text",
  59. "data": [
  60. "\n "
  61. ]
  62. },
  63. {
  64. "event": "opentagname",
  65. "data": [
  66. "channel"
  67. ]
  68. },
  69. {
  70. "event": "opentag",
  71. "data": [
  72. "channel",
  73. {}
  74. ]
  75. },
  76. {
  77. "event": "text",
  78. "data": [
  79. "\n "
  80. ]
  81. },
  82. {
  83. "event": "opentagname",
  84. "data": [
  85. "title"
  86. ]
  87. },
  88. {
  89. "event": "opentag",
  90. "data": [
  91. "title",
  92. {}
  93. ]
  94. },
  95. {
  96. "event": "text",
  97. "data": [
  98. "Liftoff News"
  99. ]
  100. },
  101. {
  102. "event": "closetag",
  103. "data": [
  104. "title"
  105. ]
  106. },
  107. {
  108. "event": "text",
  109. "data": [
  110. "\n "
  111. ]
  112. },
  113. {
  114. "event": "opentagname",
  115. "data": [
  116. "link"
  117. ]
  118. },
  119. {
  120. "event": "opentag",
  121. "data": [
  122. "link",
  123. {}
  124. ]
  125. },
  126. {
  127. "event": "text",
  128. "data": [
  129. "http://liftoff.msfc.nasa.gov/"
  130. ]
  131. },
  132. {
  133. "event": "closetag",
  134. "data": [
  135. "link"
  136. ]
  137. },
  138. {
  139. "event": "text",
  140. "data": [
  141. "\n "
  142. ]
  143. },
  144. {
  145. "event": "opentagname",
  146. "data": [
  147. "description"
  148. ]
  149. },
  150. {
  151. "event": "opentag",
  152. "data": [
  153. "description",
  154. {}
  155. ]
  156. },
  157. {
  158. "event": "text",
  159. "data": [
  160. "Liftoff to Space Exploration."
  161. ]
  162. },
  163. {
  164. "event": "closetag",
  165. "data": [
  166. "description"
  167. ]
  168. },
  169. {
  170. "event": "text",
  171. "data": [
  172. "\n "
  173. ]
  174. },
  175. {
  176. "event": "opentagname",
  177. "data": [
  178. "language"
  179. ]
  180. },
  181. {
  182. "event": "opentag",
  183. "data": [
  184. "language",
  185. {}
  186. ]
  187. },
  188. {
  189. "event": "text",
  190. "data": [
  191. "en-us"
  192. ]
  193. },
  194. {
  195. "event": "closetag",
  196. "data": [
  197. "language"
  198. ]
  199. },
  200. {
  201. "event": "text",
  202. "data": [
  203. "\n "
  204. ]
  205. },
  206. {
  207. "event": "opentagname",
  208. "data": [
  209. "pubDate"
  210. ]
  211. },
  212. {
  213. "event": "opentag",
  214. "data": [
  215. "pubDate",
  216. {}
  217. ]
  218. },
  219. {
  220. "event": "text",
  221. "data": [
  222. "Tue, 10 Jun 2003 04:00:00 GMT"
  223. ]
  224. },
  225. {
  226. "event": "closetag",
  227. "data": [
  228. "pubDate"
  229. ]
  230. },
  231. {
  232. "event": "text",
  233. "data": [
  234. "\n\n "
  235. ]
  236. },
  237. {
  238. "event": "opentagname",
  239. "data": [
  240. "lastBuildDate"
  241. ]
  242. },
  243. {
  244. "event": "opentag",
  245. "data": [
  246. "lastBuildDate",
  247. {}
  248. ]
  249. },
  250. {
  251. "event": "text",
  252. "data": [
  253. "Tue, 10 Jun 2003 09:41:01 GMT"
  254. ]
  255. },
  256. {
  257. "event": "closetag",
  258. "data": [
  259. "lastBuildDate"
  260. ]
  261. },
  262. {
  263. "event": "text",
  264. "data": [
  265. "\n "
  266. ]
  267. },
  268. {
  269. "event": "opentagname",
  270. "data": [
  271. "docs"
  272. ]
  273. },
  274. {
  275. "event": "opentag",
  276. "data": [
  277. "docs",
  278. {}
  279. ]
  280. },
  281. {
  282. "event": "text",
  283. "data": [
  284. "http://blogs.law.harvard.edu/tech/rss"
  285. ]
  286. },
  287. {
  288. "event": "closetag",
  289. "data": [
  290. "docs"
  291. ]
  292. },
  293. {
  294. "event": "text",
  295. "data": [
  296. "\n "
  297. ]
  298. },
  299. {
  300. "event": "opentagname",
  301. "data": [
  302. "generator"
  303. ]
  304. },
  305. {
  306. "event": "opentag",
  307. "data": [
  308. "generator",
  309. {}
  310. ]
  311. },
  312. {
  313. "event": "text",
  314. "data": [
  315. "Weblog Editor 2.0"
  316. ]
  317. },
  318. {
  319. "event": "closetag",
  320. "data": [
  321. "generator"
  322. ]
  323. },
  324. {
  325. "event": "text",
  326. "data": [
  327. "\n "
  328. ]
  329. },
  330. {
  331. "event": "opentagname",
  332. "data": [
  333. "managingEditor"
  334. ]
  335. },
  336. {
  337. "event": "opentag",
  338. "data": [
  339. "managingEditor",
  340. {}
  341. ]
  342. },
  343. {
  344. "event": "text",
  345. "data": [
  346. "editor@example.com"
  347. ]
  348. },
  349. {
  350. "event": "closetag",
  351. "data": [
  352. "managingEditor"
  353. ]
  354. },
  355. {
  356. "event": "text",
  357. "data": [
  358. "\n "
  359. ]
  360. },
  361. {
  362. "event": "opentagname",
  363. "data": [
  364. "webMaster"
  365. ]
  366. },
  367. {
  368. "event": "opentag",
  369. "data": [
  370. "webMaster",
  371. {}
  372. ]
  373. },
  374. {
  375. "event": "text",
  376. "data": [
  377. "webmaster@example.com"
  378. ]
  379. },
  380. {
  381. "event": "closetag",
  382. "data": [
  383. "webMaster"
  384. ]
  385. },
  386. {
  387. "event": "text",
  388. "data": [
  389. "\n "
  390. ]
  391. },
  392. {
  393. "event": "opentagname",
  394. "data": [
  395. "item"
  396. ]
  397. },
  398. {
  399. "event": "opentag",
  400. "data": [
  401. "item",
  402. {}
  403. ]
  404. },
  405. {
  406. "event": "text",
  407. "data": [
  408. "\n\n "
  409. ]
  410. },
  411. {
  412. "event": "opentagname",
  413. "data": [
  414. "title"
  415. ]
  416. },
  417. {
  418. "event": "opentag",
  419. "data": [
  420. "title",
  421. {}
  422. ]
  423. },
  424. {
  425. "event": "text",
  426. "data": [
  427. "Star City"
  428. ]
  429. },
  430. {
  431. "event": "closetag",
  432. "data": [
  433. "title"
  434. ]
  435. },
  436. {
  437. "event": "text",
  438. "data": [
  439. "\n "
  440. ]
  441. },
  442. {
  443. "event": "opentagname",
  444. "data": [
  445. "link"
  446. ]
  447. },
  448. {
  449. "event": "opentag",
  450. "data": [
  451. "link",
  452. {}
  453. ]
  454. },
  455. {
  456. "event": "text",
  457. "data": [
  458. "http://liftoff.msfc.nasa.gov/news/2003/news-starcity.asp"
  459. ]
  460. },
  461. {
  462. "event": "closetag",
  463. "data": [
  464. "link"
  465. ]
  466. },
  467. {
  468. "event": "text",
  469. "data": [
  470. "\n "
  471. ]
  472. },
  473. {
  474. "event": "opentagname",
  475. "data": [
  476. "description"
  477. ]
  478. },
  479. {
  480. "event": "opentag",
  481. "data": [
  482. "description",
  483. {}
  484. ]
  485. },
  486. {
  487. "event": "text",
  488. "data": [
  489. "How do Americans get ready to work with Russians aboard the International Space Station? They take a crash course in culture, language and protocol at Russia's <a href=\"http://howe.iki.rssi.ru/GCTC/gctc_e.htm\">Star City</a>."
  490. ]
  491. },
  492. {
  493. "event": "closetag",
  494. "data": [
  495. "description"
  496. ]
  497. },
  498. {
  499. "event": "text",
  500. "data": [
  501. "\n "
  502. ]
  503. },
  504. {
  505. "event": "opentagname",
  506. "data": [
  507. "pubDate"
  508. ]
  509. },
  510. {
  511. "event": "opentag",
  512. "data": [
  513. "pubDate",
  514. {}
  515. ]
  516. },
  517. {
  518. "event": "text",
  519. "data": [
  520. "Tue, 03 Jun 2003 09:39:21 GMT"
  521. ]
  522. },
  523. {
  524. "event": "closetag",
  525. "data": [
  526. "pubDate"
  527. ]
  528. },
  529. {
  530. "event": "text",
  531. "data": [
  532. "\n "
  533. ]
  534. },
  535. {
  536. "event": "opentagname",
  537. "data": [
  538. "guid"
  539. ]
  540. },
  541. {
  542. "event": "opentag",
  543. "data": [
  544. "guid",
  545. {}
  546. ]
  547. },
  548. {
  549. "event": "text",
  550. "data": [
  551. "http://liftoff.msfc.nasa.gov/2003/06/03.html#item573"
  552. ]
  553. },
  554. {
  555. "event": "closetag",
  556. "data": [
  557. "guid"
  558. ]
  559. },
  560. {
  561. "event": "text",
  562. "data": [
  563. "\n\n "
  564. ]
  565. },
  566. {
  567. "event": "closetag",
  568. "data": [
  569. "item"
  570. ]
  571. },
  572. {
  573. "event": "text",
  574. "data": [
  575. "\n "
  576. ]
  577. },
  578. {
  579. "event": "opentagname",
  580. "data": [
  581. "item"
  582. ]
  583. },
  584. {
  585. "event": "opentag",
  586. "data": [
  587. "item",
  588. {}
  589. ]
  590. },
  591. {
  592. "event": "text",
  593. "data": [
  594. "\n "
  595. ]
  596. },
  597. {
  598. "event": "opentagname",
  599. "data": [
  600. "description"
  601. ]
  602. },
  603. {
  604. "event": "opentag",
  605. "data": [
  606. "description",
  607. {}
  608. ]
  609. },
  610. {
  611. "event": "text",
  612. "data": [
  613. "Sky watchers in Europe, Asia, and parts of Alaska and Canada will experience a <a href=\"http://science.nasa.gov/headlines/y2003/30may_solareclipse.htm\">partial eclipse of the Sun</a> on Saturday, May 31st."
  614. ]
  615. },
  616. {
  617. "event": "closetag",
  618. "data": [
  619. "description"
  620. ]
  621. },
  622. {
  623. "event": "text",
  624. "data": [
  625. "\n "
  626. ]
  627. },
  628. {
  629. "event": "opentagname",
  630. "data": [
  631. "pubDate"
  632. ]
  633. },
  634. {
  635. "event": "opentag",
  636. "data": [
  637. "pubDate",
  638. {}
  639. ]
  640. },
  641. {
  642. "event": "text",
  643. "data": [
  644. "Fri, 30 May 2003 11:06:42 GMT"
  645. ]
  646. },
  647. {
  648. "event": "closetag",
  649. "data": [
  650. "pubDate"
  651. ]
  652. },
  653. {
  654. "event": "text",
  655. "data": [
  656. "\n "
  657. ]
  658. },
  659. {
  660. "event": "opentagname",
  661. "data": [
  662. "guid"
  663. ]
  664. },
  665. {
  666. "event": "opentag",
  667. "data": [
  668. "guid",
  669. {}
  670. ]
  671. },
  672. {
  673. "event": "text",
  674. "data": [
  675. "http://liftoff.msfc.nasa.gov/2003/05/30.html#item572"
  676. ]
  677. },
  678. {
  679. "event": "closetag",
  680. "data": [
  681. "guid"
  682. ]
  683. },
  684. {
  685. "event": "text",
  686. "data": [
  687. "\n\n "
  688. ]
  689. },
  690. {
  691. "event": "closetag",
  692. "data": [
  693. "item"
  694. ]
  695. },
  696. {
  697. "event": "text",
  698. "data": [
  699. "\n "
  700. ]
  701. },
  702. {
  703. "event": "opentagname",
  704. "data": [
  705. "item"
  706. ]
  707. },
  708. {
  709. "event": "opentag",
  710. "data": [
  711. "item",
  712. {}
  713. ]
  714. },
  715. {
  716. "event": "text",
  717. "data": [
  718. "\n "
  719. ]
  720. },
  721. {
  722. "event": "opentagname",
  723. "data": [
  724. "title"
  725. ]
  726. },
  727. {
  728. "event": "opentag",
  729. "data": [
  730. "title",
  731. {}
  732. ]
  733. },
  734. {
  735. "event": "text",
  736. "data": [
  737. "The Engine That Does More"
  738. ]
  739. },
  740. {
  741. "event": "closetag",
  742. "data": [
  743. "title"
  744. ]
  745. },
  746. {
  747. "event": "text",
  748. "data": [
  749. "\n "
  750. ]
  751. },
  752. {
  753. "event": "opentagname",
  754. "data": [
  755. "link"
  756. ]
  757. },
  758. {
  759. "event": "opentag",
  760. "data": [
  761. "link",
  762. {}
  763. ]
  764. },
  765. {
  766. "event": "text",
  767. "data": [
  768. "http://liftoff.msfc.nasa.gov/news/2003/news-VASIMR.asp"
  769. ]
  770. },
  771. {
  772. "event": "closetag",
  773. "data": [
  774. "link"
  775. ]
  776. },
  777. {
  778. "event": "text",
  779. "data": [
  780. "\n "
  781. ]
  782. },
  783. {
  784. "event": "opentagname",
  785. "data": [
  786. "description"
  787. ]
  788. },
  789. {
  790. "event": "opentag",
  791. "data": [
  792. "description",
  793. {}
  794. ]
  795. },
  796. {
  797. "event": "text",
  798. "data": [
  799. "Before man travels to Mars, NASA hopes to design new engines that will let us fly through the Solar System more quickly. The proposed VASIMR engine would do that."
  800. ]
  801. },
  802. {
  803. "event": "closetag",
  804. "data": [
  805. "description"
  806. ]
  807. },
  808. {
  809. "event": "text",
  810. "data": [
  811. "\n "
  812. ]
  813. },
  814. {
  815. "event": "opentagname",
  816. "data": [
  817. "pubDate"
  818. ]
  819. },
  820. {
  821. "event": "opentag",
  822. "data": [
  823. "pubDate",
  824. {}
  825. ]
  826. },
  827. {
  828. "event": "text",
  829. "data": [
  830. "Tue, 27 May 2003 08:37:32 GMT"
  831. ]
  832. },
  833. {
  834. "event": "closetag",
  835. "data": [
  836. "pubDate"
  837. ]
  838. },
  839. {
  840. "event": "text",
  841. "data": [
  842. "\n "
  843. ]
  844. },
  845. {
  846. "event": "opentagname",
  847. "data": [
  848. "guid"
  849. ]
  850. },
  851. {
  852. "event": "opentag",
  853. "data": [
  854. "guid",
  855. {}
  856. ]
  857. },
  858. {
  859. "event": "text",
  860. "data": [
  861. "http://liftoff.msfc.nasa.gov/2003/05/27.html#item571"
  862. ]
  863. },
  864. {
  865. "event": "closetag",
  866. "data": [
  867. "guid"
  868. ]
  869. },
  870. {
  871. "event": "text",
  872. "data": [
  873. "\n\n "
  874. ]
  875. },
  876. {
  877. "event": "closetag",
  878. "data": [
  879. "item"
  880. ]
  881. },
  882. {
  883. "event": "text",
  884. "data": [
  885. "\n "
  886. ]
  887. },
  888. {
  889. "event": "opentagname",
  890. "data": [
  891. "item"
  892. ]
  893. },
  894. {
  895. "event": "opentag",
  896. "data": [
  897. "item",
  898. {}
  899. ]
  900. },
  901. {
  902. "event": "text",
  903. "data": [
  904. "\n "
  905. ]
  906. },
  907. {
  908. "event": "opentagname",
  909. "data": [
  910. "title"
  911. ]
  912. },
  913. {
  914. "event": "opentag",
  915. "data": [
  916. "title",
  917. {}
  918. ]
  919. },
  920. {
  921. "event": "text",
  922. "data": [
  923. "Astronauts' Dirty Laundry"
  924. ]
  925. },
  926. {
  927. "event": "closetag",
  928. "data": [
  929. "title"
  930. ]
  931. },
  932. {
  933. "event": "text",
  934. "data": [
  935. "\n "
  936. ]
  937. },
  938. {
  939. "event": "opentagname",
  940. "data": [
  941. "link"
  942. ]
  943. },
  944. {
  945. "event": "opentag",
  946. "data": [
  947. "link",
  948. {}
  949. ]
  950. },
  951. {
  952. "event": "text",
  953. "data": [
  954. "http://liftoff.msfc.nasa.gov/news/2003/news-laundry.asp"
  955. ]
  956. },
  957. {
  958. "event": "closetag",
  959. "data": [
  960. "link"
  961. ]
  962. },
  963. {
  964. "event": "text",
  965. "data": [
  966. "\n "
  967. ]
  968. },
  969. {
  970. "event": "opentagname",
  971. "data": [
  972. "description"
  973. ]
  974. },
  975. {
  976. "event": "opentag",
  977. "data": [
  978. "description",
  979. {}
  980. ]
  981. },
  982. {
  983. "event": "text",
  984. "data": [
  985. "Compared to earlier spacecraft, the International Space Station has many luxuries, but laundry facilities are not one of them. Instead, astronauts have other options."
  986. ]
  987. },
  988. {
  989. "event": "closetag",
  990. "data": [
  991. "description"
  992. ]
  993. },
  994. {
  995. "event": "text",
  996. "data": [
  997. "\n "
  998. ]
  999. },
  1000. {
  1001. "event": "opentagname",
  1002. "data": [
  1003. "pubDate"
  1004. ]
  1005. },
  1006. {
  1007. "event": "opentag",
  1008. "data": [
  1009. "pubDate",
  1010. {}
  1011. ]
  1012. },
  1013. {
  1014. "event": "text",
  1015. "data": [
  1016. "Tue, 20 May 2003 08:56:02 GMT"
  1017. ]
  1018. },
  1019. {
  1020. "event": "closetag",
  1021. "data": [
  1022. "pubDate"
  1023. ]
  1024. },
  1025. {
  1026. "event": "text",
  1027. "data": [
  1028. "\n "
  1029. ]
  1030. },
  1031. {
  1032. "event": "opentagname",
  1033. "data": [
  1034. "guid"
  1035. ]
  1036. },
  1037. {
  1038. "event": "opentag",
  1039. "data": [
  1040. "guid",
  1041. {}
  1042. ]
  1043. },
  1044. {
  1045. "event": "text",
  1046. "data": [
  1047. "http://liftoff.msfc.nasa.gov/2003/05/20.html#item570"
  1048. ]
  1049. },
  1050. {
  1051. "event": "closetag",
  1052. "data": [
  1053. "guid"
  1054. ]
  1055. },
  1056. {
  1057. "event": "text",
  1058. "data": [
  1059. "\n\n "
  1060. ]
  1061. },
  1062. {
  1063. "event": "closetag",
  1064. "data": [
  1065. "item"
  1066. ]
  1067. },
  1068. {
  1069. "event": "text",
  1070. "data": [
  1071. "\n "
  1072. ]
  1073. },
  1074. {
  1075. "event": "closetag",
  1076. "data": [
  1077. "channel"
  1078. ]
  1079. },
  1080. {
  1081. "event": "text",
  1082. "data": [
  1083. "\n"
  1084. ]
  1085. },
  1086. {
  1087. "event": "closetag",
  1088. "data": [
  1089. "rss"
  1090. ]
  1091. }
  1092. ]
  1093. }