Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/labels.list
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,8 @@
Available for CSV feeds
</secondary-label>

<secondary-label id="format-rss" name="rss" color="red">
Available for RSS Atom feeds
</secondary-label>

</labels>
20 changes: 10 additions & 10 deletions docs/snippets/advanced-directive-array.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
<array_directive>

<user>
<name>June Senger</name>
<avatar>https://via.placeholder.com/640x480.png/00cc33?text=aliquam</avatar>
<avatar>https://via.placeholder.com/640x480.png/0022dd?text=quae</avatar>
<images name="at aut quibusdam">https://via.placeholder.com/640x480.png/0044ff?text=vel</images>
<images name="sed at quas">https://via.placeholder.com/640x480.png/001122?text=quo</images>
<name>Henri Schimmel DVM</name>
<avatar>https://via.placeholder.com/640x480.png/0011ff?text=dolor</avatar>
<avatar>https://via.placeholder.com/640x480.png/00aa55?text=et</avatar>
<images name="est consequuntur similique">https://via.placeholder.com/640x480.png/00ccaa?text=odit</images>
<images name="aut quisquam quis">https://via.placeholder.com/640x480.png/0066ff?text=fugiat</images>
</user>
<user>
<name>Mr. Zechariah Torp</name>
<avatar>https://via.placeholder.com/640x480.png/007711?text=ipsum</avatar>
<avatar>https://via.placeholder.com/640x480.png/00dddd?text=in</avatar>
<images name="et iste harum">https://via.placeholder.com/640x480.png/00aa22?text=dignissimos</images>
<images name="quisquam iste quas">https://via.placeholder.com/640x480.png/0077ee?text=aut</images>
<name>Hortense Pacocha</name>
<avatar>https://via.placeholder.com/640x480.png/00eeee?text=qui</avatar>
<avatar>https://via.placeholder.com/640x480.png/0033aa?text=maiores</avatar>
<images name="corporis provident consequatur">https://via.placeholder.com/640x480.png/007766?text=aspernatur</images>
<images name="aut ea eos">https://via.placeholder.com/640x480.png/00aaff?text=sunt</images>
</user>

</array_directive>
10 changes: 5 additions & 5 deletions docs/snippets/advanced-directive-attributes.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<attributes_directive>

<company since="1987"/>
<company since="2015"/>
<url>https://example.com</url>

<user>
<name>Twila Kling III</name>
<contact email="blaise.stokes@example.net" phone="555-000-1"/>
<name>Mrs. Kathryn Roob</name>
<contact email="bella00@example.net" phone="555-000-1"/>
</user>
<user>
<name>Diego Rodriguez II</name>
<contact email="qdare@example.com" phone="555-000-2"/>
<name>Luna Keeling</name>
<contact email="kirlin.andreanne@example.org" phone="555-000-2"/>
</user>

</attributes_directive>
8 changes: 4 additions & 4 deletions docs/snippets/advanced-directive-cdata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<cdata_directive>

<user>
<name><![CDATA[<h1>Ahmad Collier</h1>]]></name>
<email>megane.konopelski@example.org</email>
<name><![CDATA[<h1>Davon Schultz</h1>]]></name>
<email>bayer.isadore@example.com</email>
</user>
<user>
<name><![CDATA[<h1>Janice Tillman DDS</h1>]]></name>
<email>donald80@example.com</email>
<name><![CDATA[<h1>Elna DuBuque</h1>]]></name>
<email>gail.mohr@example.com</email>
</user>

</cdata_directive>
8 changes: 4 additions & 4 deletions docs/snippets/advanced-directive-mixed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
<mixed_directive>

<user>
<name>Leonardo Hayes</name>
<name>Alanis Haley</name>
<some>
<first>Foo</first>
<second>kulas.gavin@example.net</second>
<second>victor63@example.org</second>
</some>
</user>
<user>
<name>Mr. Hillard Jacobson III</name>
<name>Prof. Reymundo Klocko PhD</name>
<some>
<first>Foo</first>
<second>hane.alison@example.org</second>
<second>tyreek79@example.com</second>
</some>
</user>

Expand Down
8 changes: 4 additions & 4 deletions docs/snippets/advanced-directive-value.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<value_directive>

<user>
<name>Dr. Nikki Gusikowski V</name>
<contact type="email">rodriguez.brianne@example.org</contact>
<name>Mitchell Vandervort</name>
<contact type="email">rohan.ashlee@example.org</contact>
</user>
<user>
<name>Zachariah Weimann</name>
<contact type="email">kamren.zemlak@example.com</contact>
<name>Prof. Cullen Spencer</name>
<contact type="email">jody50@example.net</contact>
</user>

</value_directive>
8 changes: 4 additions & 4 deletions docs/snippets/advanced-element-attribute.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<attribute>

<user created_at="2025-09-06T13:12:26+00:00">
<user created_at="2025-09-14T17:34:16+00:00">
<id>1</id>
<name>Mauricio Bednar</name>
<name>Julie Dickinson</name>
</user>
<user created_at="2025-09-06T13:12:26+00:00">
<user created_at="2025-09-14T17:34:16+00:00">
<id>2</id>
<name>Dr. Selena Green IV</name>
<name>Dudley Hirthe</name>
</user>

</attribute>
4 changes: 2 additions & 2 deletions docs/snippets/advanced-element-header-footer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

<user>
<id>1</id>
<name>Maybell O'Hara PhD</name>
<name>Kristin VonRueden</name>
</user>
<user>
<id>2</id>
<name>Kelley Braun</name>
<name>Destin Stiedemann I</name>
</user>

</header_footer>
Expand Down
4 changes: 2 additions & 2 deletions docs/snippets/advanced-element-info-before-false.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

<user>
<id>1</id>
<name>Marjolaine Pfeffer</name>
<name>Willis Feest</name>
</user>
<user>
<id>2</id>
<name>Celine Stanton</name>
<name>Jennie Simonis</name>
</user>

</info_method>
4 changes: 2 additions & 2 deletions docs/snippets/advanced-element-info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

<user>
<id>1</id>
<name>Tyra Gleason</name>
<name>Mr. Terrance Koelpin</name>
</user>
<user>
<id>2</id>
<name>Felicita Metz</name>
<name>Daniella Will DVM</name>
</user>

</info_method>
4 changes: 2 additions & 2 deletions docs/snippets/advanced-element-root.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

<user>
<id>1</id>
<name>Prof. Estevan Wilkinson</name>
<name>Prof. John Ward</name>
</user>
<user>
<id>2</id>
<name>Meaghan Reichert DVM</name>
<name>Mrs. Felicia Stroman</name>
</user>

</foo>
48 changes: 24 additions & 24 deletions docs/snippets/receipt-instagram-feed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,46 +6,46 @@

<item>
<g:id>1</g:id>
<g:title><![CDATA[est fugit qui enim]]></g:title>
<g:description><![CDATA[Pariatur minima sed quidem aperiam eveniet ad odio. Eaque quae corrupti maiores sunt qui sunt. Quas similique libero praesentium amet voluptatem eveniet.]]></g:description>
<g:link>https://example.com/products/iure-fugit-pariatur-repellat</g:link>
<g:image_link>https://via.placeholder.com/640x480.png/009911?text=id</g:image_link>
<g:additional_image_link>https://via.placeholder.com/640x480.png/008822?text=minima</g:additional_image_link>
<g:additional_image_link>https://via.placeholder.com/640x480.png/002244?text=quia</g:additional_image_link>
<g:brand>excepturi</g:brand>
<g:title><![CDATA[et libero maiores explicabo]]></g:title>
<g:description><![CDATA[Earum facilis voluptatem sint facere. Omnis tempore repellat ex quas ut aliquam. Nihil expedita aut ea labore doloremque aliquam et.]]></g:description>
<g:link>https://example.com/products/voluptatem-autem-quia-ut-ut</g:link>
<g:image_link>https://via.placeholder.com/640x480.png/002255?text=consectetur</g:image_link>
<g:additional_image_link>https://via.placeholder.com/640x480.png/000088?text=animi</g:additional_image_link>
<g:additional_image_link>https://via.placeholder.com/640x480.png/0011ee?text=commodi</g:additional_image_link>
<g:brand>odio</g:brand>
<g:condition>new</g:condition>
<g:availability>in stock</g:availability>
<g:price>170</g:price>
<g:sale_price>170</g:sale_price>
<g:price>196</g:price>
<g:sale_price>196</g:sale_price>
<g:item_group_id>12345</g:item_group_id>
<g:status>active</g:status>
<g:color><![CDATA[AntiqueWhite]]></g:color>
<g:size>49</g:size>
<g:color><![CDATA[Bisque]]></g:color>
<g:size>17</g:size>
<g:age_group>adult</g:age_group>
<g:material><![CDATA[ratione]]></g:material>
<g:material><![CDATA[suscipit]]></g:material>
<g:pattern><![CDATA[regular]]></g:pattern>
<g:google_product_category>1000</g:google_product_category>
<g:fb_product_category>2000</g:fb_product_category>
</item>
<item>
<g:id>2</g:id>
<g:title><![CDATA[cupiditate incidunt sapiente et]]></g:title>
<g:description><![CDATA[Totam et ea cumque totam. Eius impedit dolorem velit et libero enim sed. Et neque iste harum autem. Deleniti ea beatae voluptatem laudantium.]]></g:description>
<g:link>https://example.com/products/officiis-accusamus-necessitatibus-itaque-quaerat-est</g:link>
<g:image_link>https://via.placeholder.com/640x480.png/007711?text=aperiam</g:image_link>
<g:additional_image_link>https://via.placeholder.com/640x480.png/0088bb?text=consequuntur</g:additional_image_link>
<g:additional_image_link>https://via.placeholder.com/640x480.png/008800?text=quidem</g:additional_image_link>
<g:brand>perspiciatis</g:brand>
<g:title><![CDATA[error ipsum minima aliquam]]></g:title>
<g:description><![CDATA[Sed laborum quod non autem ratione amet veniam. Exercitationem expedita necessitatibus magnam dolor non fuga temporibus. Fugit quam libero modi aut inventore provident sed. Nisi velit in culpa fugit.]]></g:description>
<g:link>https://example.com/products/numquam-ea-animi-molestiae-laborum</g:link>
<g:image_link>https://via.placeholder.com/640x480.png/008866?text=natus</g:image_link>
<g:additional_image_link>https://via.placeholder.com/640x480.png/0044ff?text=aut</g:additional_image_link>
<g:additional_image_link>https://via.placeholder.com/640x480.png/000022?text=debitis</g:additional_image_link>
<g:brand>perferendis</g:brand>
<g:condition>new</g:condition>
<g:availability>in stock</g:availability>
<g:price>192</g:price>
<g:sale_price>192</g:sale_price>
<g:price>447</g:price>
<g:sale_price>447</g:sale_price>
<g:item_group_id>12345</g:item_group_id>
<g:status>active</g:status>
<g:color><![CDATA[Cyan]]></g:color>
<g:size>49</g:size>
<g:color><![CDATA[DarkOrchid]]></g:color>
<g:size>37</g:size>
<g:age_group>adult</g:age_group>
<g:material><![CDATA[impedit]]></g:material>
<g:material><![CDATA[occaecati]]></g:material>
<g:pattern><![CDATA[regular]]></g:pattern>
<g:google_product_category>1000</g:google_product_category>
<g:fb_product_category>2000</g:fb_product_category>
Expand Down
4 changes: 2 additions & 2 deletions docs/snippets/receipt-sitemap-feed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9">

<url>
<loc>https://example.com/products/laudantium-eius-assumenda-est-fugit</loc>
<loc>https://example.com/products/neque-quidem-est-magnam-saepe-voluptas-veniam</loc>
<lastmod>2025-09-04T04:08:12+00:00</lastmod>
<priority>0.9</priority>
</url>
<url>
<loc>https://example.com/products/asperiores-et-ratione-aut-reiciendis-ea-reprehenderit-sed</loc>
<loc>https://example.com/products/dolore-minus-ut-nisi-aut-eaque-voluptatem</loc>
<lastmod>2025-09-04T04:08:12+00:00</lastmod>
<priority>0.9</priority>
</url>
Expand Down
48 changes: 24 additions & 24 deletions docs/snippets/receipt-yandex-feed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,36 +17,36 @@
<offers>

<offer id="1" available="true" type="vendor.model">
<url>https://example.com/products/facere-voluptatem-nihil-qui-aut-itaque-voluptate</url>
<barcode>GD-)%5DC63=</barcode>
<name>ea placeat ut perferendis</name>
<description>Aut iure porro debitis ut et. Distinctio consectetur quia provident. Explicabo voluptatem at dolor velit quia.</description>
<url>https://example.com/products/aperiam-quaerat-delectus-ut-recusandae-repudiandae-in-nostrum-tempora</url>
<barcode>GD-TVYDQ</barcode>
<name>quis repellendus cumque expedita</name>
<description>Doloribus a rerum eos omnis quia. Quod accusantium repudiandae ea iste sequi eaque nihil. Ut qui rerum aut. Est sed architecto quia. Officia culpa perferendis debitis iure aut molestias illo.</description>
<delivery>true</delivery>
<price>618</price>
<price>981</price>
<currencyId>RUR</currencyId>
<vendor>voluptatibus</vendor>
<picture>https://via.placeholder.com/640x480.png/001133?text=veniam</picture>
<picture>https://via.placeholder.com/640x480.png/0044ee?text=ut</picture>
<picture>https://via.placeholder.com/640x480.png/005522?text=explicabo</picture>
<param name="Артикул">GD-)%5DC63=</param>
<param name="Код цвета">7</param>
<param name="Пол">female</param>
<vendor>ullam</vendor>
<picture>https://via.placeholder.com/640x480.png/006600?text=unde</picture>
<picture>https://via.placeholder.com/640x480.png/0099cc?text=aut</picture>
<picture>https://via.placeholder.com/640x480.png/002277?text=quis</picture>
<param name="Артикул">GD-TVYDQ</param>
<param name="Код цвета">1</param>
<param name="Пол">male</param>
</offer>
<offer id="2" available="true" type="vendor.model">
<url>https://example.com/products/recusandae-recusandae-qui-voluptatem-repellendus</url>
<barcode>GD-_@E9D5MN</barcode>
<name>est tempore aut quia</name>
<description>Laboriosam tempora voluptate rerum officia sed itaque. Sapiente unde quia nemo vitae vel illo eveniet. Impedit unde dignissimos iure ipsum iusto. Quas nihil aut et et debitis.</description>
<url>https://example.com/products/libero-cum-harum-ducimus-voluptate-et-rerum</url>
<barcode>GD-0?{BEJ</barcode>
<name>quia numquam quo repudiandae</name>
<description>Numquam est natus suscipit voluptatem. Eaque hic eius quia rerum dolore et. Voluptas aut dignissimos quam neque delectus in aliquid provident. Ducimus magni ea nemo.</description>
<delivery>true</delivery>
<price>692</price>
<price>519</price>
<currencyId>RUR</currencyId>
<vendor>deserunt</vendor>
<picture>https://via.placeholder.com/640x480.png/0055aa?text=qui</picture>
<picture>https://via.placeholder.com/640x480.png/00ffee?text=nulla</picture>
<picture>https://via.placeholder.com/640x480.png/001199?text=quasi</picture>
<param name="Артикул">GD-_@E9D5MN</param>
<param name="Код цвета">3</param>
<param name="Пол">female</param>
<vendor>quia</vendor>
<picture>https://via.placeholder.com/640x480.png/0066cc?text=tempora</picture>
<picture>https://via.placeholder.com/640x480.png/002211?text=veritatis</picture>
<picture>https://via.placeholder.com/640x480.png/00aa55?text=in</picture>
<param name="Артикул">GD-0?{BEJ</param>
<param name="Код цвета">4</param>
<param name="Пол">male</param>
</offer>

</offers>
Expand Down
4 changes: 4 additions & 0 deletions docs/topics/elements.topic
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

<chapter title="Root element" id="root_element">
<secondary-label ref="format-xml" />
<secondary-label ref="format-rss" />
<secondary-label ref="format-json" />

<tip>
Expand Down Expand Up @@ -46,6 +47,7 @@

<chapter title="Information" id="information">
<secondary-label ref="format-xml" />
<secondary-label ref="format-rss" />
<secondary-label ref="format-json" />
<secondary-label ref="format-jsonl" />
<secondary-label ref="format-csv" />
Expand Down Expand Up @@ -82,6 +84,7 @@

<chapter title="Header &amp; footer" id="header_and_footer">
<secondary-label ref="format-xml" />
<secondary-label ref="format-rss" />
<secondary-label ref="format-json" />

<p>
Expand All @@ -99,6 +102,7 @@

<chapter title="Attributes" id="attributes">
<secondary-label ref="format-xml" />
<secondary-label ref="format-rss" />

<code-block lang="php" src="advanced-element-attribute.php" include-lines="5-" />
<code-block lang="php" src="advanced-element-attribute-item.php" include-lines="5-" />
Expand Down
3 changes: 3 additions & 0 deletions docs/topics/supported-formats.topic
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
<def title="csv">
Generates feeds in CSV format.
</def>
<def title="rss">
Generates feeds in RSS Atom format.
</def>
</deflist>

<p>
Expand Down
Loading