ale Posted October 22, 2015 Share Posted October 22, 2015 Hello guys, Can anybody tell me some practical example of xml??? I'm new with it. I know what is xml, syntax etc. but I am not so clear with using the same.... Thanks... Link to comment Share on other sites More sharing options...
justsomeguy Posted October 22, 2015 Share Posted October 22, 2015 It's just for data storage really. An XML document describes a set of data. It's similar to storing data in a database, or spreadsheet, or whatever else. A difference between XML and a spreadsheet is that XML can have multiple levels of child/parent relationships, where a spreadsheet is more of just a set of rows and columns. Link to comment Share on other sites More sharing options...
ale Posted October 23, 2015 Author Share Posted October 23, 2015 I know it @justsomeguy, but I cannot understand where I should put it, I mean where in HTML, PHP etc. I read about XML on W3Schools, but there is no clearly explanation for example where I can find an xml doc of some page.. Link to comment Share on other sites More sharing options...
davej Posted October 23, 2015 Share Posted October 23, 2015 It's just a way to organize textual data in a file or stream so that it's easy to understand and manage. If textual data is passed between two computer systems a clear description of the data helps prevent confusion. XML can be used to clearly describe data since it wraps each item of data in a descriptive tag. https://en.wikipedia.org/wiki/XML Link to comment Share on other sites More sharing options...
Ingolme Posted October 24, 2015 Share Posted October 24, 2015 PHP can read XML documents using the DOMDocument class, Javascript natively supports loading XML documents and accessing elements with DOM methods. Link to comment Share on other sites More sharing options...
ale Posted October 24, 2015 Author Share Posted October 24, 2015 Ok. But why XML is important??? When to use it? Some practic example... Link to comment Share on other sites More sharing options...
dsonesuk Posted October 24, 2015 Share Posted October 24, 2015 Because it is textual, its not restricted to specific program, for viewing it can be opened in your basic text editor program in a easy readable layout in all O/S for editing, which means it can be used to convert data in a database to xml, and then back again on another system, it can be read by program such as excel into a spreadsheet layout with headers and all to inspect data. It is just a easy way to store, transport and read without having a need of specific program to access the data. Link to comment Share on other sites More sharing options...
RobertmefT Posted August 31, 2016 Share Posted August 31, 2016 thanks for the tips and advice this sounds close to my thoughts and I will look into it - thanks Link to comment Share on other sites More sharing options...
CC15 Posted October 11, 2019 Share Posted October 11, 2019 Hey guys new to this and still trying to figure some things out. making a project for work and need to convert my excel document that contains HTML links in one sections that correspond in other sections (ex: Names of products and pictures). I believe I have the Schema right for the text but how do I incorporate the htmls so that when I make it into an xml document it will cooperate. is this possible? Appreciate any help! Thank You! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now