Write a PHP XML Parser:: Format External WordPress API XML string data into array

Veröffentlicht am: 26 Dezember 2022
auf dem Kanal: TechiePress
957
14

Welcome to part 5 of our series on querying an XML API in WordPress! In this video, we'll be writing a basic PHP XML parser to convert malformatted array data using the SimpleXmlElement function. This will make it easier to transform or mutate the data in JavaScript.

We'll start off by discussing the challenge at the beginning of the video, and then we'll move on to refactoring our code. From there, we'll dive into the coding solution and learn how to deal with both objects and arrays.

Finally, we'll wrap up the video by formatting the output array to make it simpler and provide better data from the onset.

Thanks for watching!

VIDEO CHAPTERS
00:00 The challenge
00:52 Refactor the code
01:52 Coding solution
03:25 Dealing with objects
04:23 Dealing with arrays
06:20 Format output array

Starter Code: https://github.com/YTTechiePress/tech...
Full Code: https://github.com/YTTechiePress/tech...

HOW TO SUPPORT THE CHANNEL
=============================================
Do you like what I am doing?
Buy me a coffee through https://www.buymeacoffee.com/techiepress
Give via PayPal: https://paypal.me/laurencebahiirwa
Visit https://omukiguy.com/support-my-work/

I am social too:
Facebook:   / techiepress-100149655032583  
Twitter:   / omukiguy  
Blog & Newsletter: https://omukiguy.com
Github: https://github.com/yttechiepress
-------------------------------------------------------------------------------
LEARN MORE IN THE WELL CURATED PLAYLISTS BELOW
--------------------------------------------------------------------------------

Learn how to build a plugin from scratch:    • Plugins Vs Functions.php - Where should I ...  

WooCommerce E-Commerce customizations
== Build Free Custom E-commerce Online Shop using WooCommerce -    • WooCommerce customizations - Free WordPres...  

== Build Free Custom Theme for E-commerce Online Shop using WooCommerce -
   • Woocommerce Restaurant Shop - Custom WordP...  

====== Build Dynamic Websites with Elementor ======

== Learn the Elementor basics -    • Elementor Beginner Tutorials  

== Build a custom Elementor Widget from Scratch -    • Build Custom Elementor Widgets from scratch  

====== How to use WordPress Gutenberg Block Editor ======

WordPress 5.4 Gutenberg Blocks Updates
==    • WordPress 5.4 Gutenberg Blocks Updates  

WordPress Gutenberg blocks for Designers
==    • WordPress Basics Training: Gutenberg block...  

Gutenberg WordPress Block Editor tutorials for beginners
==    • WordPress Basics Training: WordPress Guten...  

Custom WooCommerce Gateway Development from Scratch
==    • Build Custom WooCommerce Payment Gateway  

WordPress Custom REST API Namespaces, Endpoints and Examples from Scratch
==    • Create Custom WordPress REST API POST Endp...  

====== WordPress Plugin Development from Scratch ======

Build Most Popular & Most Commented Post Plugin
==    • Build WordPress Most Popular & Most Commen...  

Build SMS Plugin with External WordPress API Integration using custom WordPress Databases
==    • Build SMS Plugin - External WordPress API ...  

WordPress External APIs Integration Plugin Development
==    • WordPress External APIs Integration Plugin...  

Convert WordPress to mobile App in Headless WordPress
== Convert WordPress Sports Website into Mobile Application - https://www.youtube.com/playlist?list...

Make GraphQL API endpoints with WordPress Headless CMS WPGraphQL Plugin
==    • Make GraphQL API endpoints with WordPress ...  

Customize Your WordPress & ClassicPress
== Build Custom REST API Endpoints with WordPress or ClassicPress -    • Build Custom REST API Endpoints with WordP...  

Custom Dashboard Widgets
==    • Custom Dashboard Widgets WordPress & Class...  

Build Custom Admin
==    • Custom Admin for WordPress or ClassicPress  

Learn Git
== Git tutorial for writers + software developers for beginners -    • Git tutorial for beginners - writers + sof...  


Auf dieser Seite können Sie das Online-Video Write a PHP XML Parser:: Format External WordPress API XML string data into array mit der Dauer online in guter Qualität ansehen, das der Benutzer TechiePress 26 Dezember 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 957 Mal angesehen und es wurde von 14 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!