XML

Extract data from HTML to XML, import to Google Sheets

Posted By: Ian on Jan 30, 2015 in PHP, Snippets, XML

Question I use Google sheets as a daily menu system for residents in a home and it works great but now the good old EU Food Information for Consumers Regulation (1169/2011) means i have to be able to show whats in each of our dishes. Answer The “Top 14” allergens according to them are Celery  …

Continue Reading »

What’s all this parent child thing about in XML?

Posted By: Ian on Jan 30, 2015 in XML
Last modified on December 8th, 2015 at 6:06 am,

Question What’s all this parent child thing about in XML? Answer Here is the XML Tree structure of recipe.xml shown as a flowchart which will explain the basics. But think of a XML document like a tree, Starting at “the root” with branches going to “the leaves”. Recipes–>Recipe–>Recipe Category, Recipe Title, etc

Continue Reading »

Extract Text Node from parent ignoring duplicates

Posted By: Ian on Jan 30, 2015 in PHP, Snippets, XML

Question Each recipe in recipes.xml is in a category and i want to print a list of the category’s used without having lots of duplicates how can i do that? Answer Demo xtract-node-xml.php

Continue Reading »

Extract and split node by comma and save to new XML file

Posted By: Ian on Jan 30, 2015 in PHP, Snippets, XML

Question Using Extract specific xml data and save to new xml i can extract specific nodes but what if the text node is a CSV.  As some recipes can be in more than 1 category. Answer XML multi-category.xml Demo split-node-xml.php

Continue Reading »

Populate drop-down list from XML

Posted By: Ian on Jan 29, 2015 in JavaScript, Snippets, XML

Question So now i have what i want how can i put that into a select tag? Answer Demo xml-select-tag.php

Continue Reading »

About This Site

Dreams are built from lines of code well it's true!
If you can dream it you can usually code it.

I have learned so much from other people on the Internet and this site is for me to give back some of what i have learned and hope people can now learn from me.
Have fun and surf safely,
Ian.J.Gough

protected by copyscape duplicate content check

Categories


Powered by Banner Bar 125