I recently asked what tutorial you’d like to see next. The most popular request was for a new XML Video Tutorial. So, since I can make this pretty quickly I decided to cover XML now.
When you start learning XML it seems very simple. That however changes very quickly. In the next few tutorials, I’ll do my best to make learning XML much easier.
The code that follows the video will help you learn.
If you like videos like this tell Google [googleplusone]
Always feel free to share
Here is the development system I use Eclipse.
Code from the Video
<?xml version="1.0" encoding="UTF-8"?> <!-- The above is the XML Declaration --> <!-- XML eXtensible Markup Language is used for storing information --> <!-- XML is used for describing the structure on information --> <!-- XML is also used for transporting information --> <!-- XML isn't a language, but instead it's a series of rules for organizing data --> <!-- Link to XSLT style sheet --> <?xml-stylesheet type="text/xsl" href="tvshow.xsl" ?> <!-- The Root Element: Only one --> <!-- The only XML allowed outside of the root is the processing instruction and comments --> <!-- XML is case sensitive | Most of the time elements must have a opening and closing tag --> <!-- Element names can start with a letter _ or :. (May Contain digits) (xml is reserved) --> <tvshow> <!-- To display XML without processing use CDATA --> <!-- Unparsed character data --> <!-- <![CDATA[ --> <show> <name>Life On Mars</name> <release>2008</release> <end_date>2009</end_date> <network country="US">ABC</network> <!-- Empty elements don't require a matching closing tag if it has a final slash --> <!-- Attribute values must be between quotes --> <poster href="http://ia.media-imdb.com/images/M/MV5BMTM4MDg2NTk1OF5BMl5BanBnXkFtZTcwNzI4OTY5MQ@@._V1._SY317_CR12,0,214,317_.jpg" width="214" height="317" /> <!-- You can add attributes that help explain the data --> <!-- Attribute values must always be in quotes --> <viewers units="millions">7.82</viewers> <!-- There are 5 character entities : & & - ' ' - > > - < < - " " --> </show> <!-- ]]> End of CDATA --> <show> <name>Life On Mars</name> <release>2006</release> <end_date>2007</end_date> <network country="UK">BBC</network> <poster href="http://ia.media-imdb.com/images/M/MV5BMTQxNzc5MjQwNF5BMl5BanBnXkFtZTcwMjU3Njc4Mg@@._V1._SY317_CR8,0,214,317_.jpg" width="214" height="317" /> <viewers units="millions">6.8</viewers> </show> <show> <name>Freaks and Geeks</name> <release>1999</release> <end_date>2000</end_date> <network country="US">ABC</network> <poster href="http://ia.media-imdb.com/images/M/MV5BMTQ5OTEzODYyMl5BMl5BanBnXkFtZTcwMjcxNTcwMg@@._V1._SY317_CR24,0,214,317_.jpg" width="214" height="317" /> <viewers units="millions">6.77</viewers> </show> </tvshow>
Hi!
Thanks for sharing your knowledge! I’m missing the xml options in Eclipse… Do I need some kind of a special extension or a plug-in or something else to create an xml file? Or should I install this ‘web editor’?
Peace
I just use the standard web plugin that is built in. The XML editor is terrible so don’t use it. I’m yet to find a good free xml plugin for XML. If you don’t see what I have on the screen you may need to update Eclipse to the newest version. I hope that helps
Those tutorials were great.one thing will you teach Xquery.
Thank you 🙂 I can definitely cover Xquery in the future, but I’m focusing on software engineering at the moment. Thank you very much for the request and I’ll add it to the list
Thanks a great deal for putting this videos on here. Is it possible to download or purchase your your tutorial videos?
You’re very welcome 🙂 I’m glad you like them. If you liked this, I have a new XML video tutorial that is much better. I don’t sell anything. All of my videos are 100% free and you can embed them anywhere you’d like.
Hi Derek,
I was wondering if you could help me with this code?
I have to write down an XML file for this code ,
so if you have some time to help me I would be grateful.
By the way, your tutorials are the best,thank you for sharing the
knowlege with us 🙂
Ime i prezime
Maticni broj
Registarski broj kola
Izaberi
Beograd
Vranje
Nis
Prva registracija
Ponovna registracija
Ispravka
Placen porez
Placena taksa
Placen tehnicki
Registracija-Novo
Porez
Taksa
Tehnicki
I’m sorry, but I don’t know what you are trying to do
I’m sorry,for some reason the code didn’t show up.
Good Tutorials!
Can you please make tutorials on Dos?
That will be very helpful
Thanks Again!
-Himansh
Thank you 🙂 Sorry I can’t cover DOS at this time because I don’t have a PC. Eventually I’ll install Windows on my MAC so I can cover C# and other PC only technologies
Wonderful tutorial.
BTW, the XSL file name that is given differs in the video and in the source code that you list on this page.
The source code gives the XSL file name as tvshow.xsl (singular), while the video gives it as tvshowS.xsl (plural – I uppercased the S for emphasis)
I typed my own versions of the XML and XSL files (giving the style sheet a name of tvshowS.xsl), and wondered why the stylesheet wasn’t kicking in. After, I changed the XSL file name to tvshow.xsl – it worked as it does in the video.
Thank you for pointing that out. I should have pointed that out in the video. Sorry about the mistake
Hi Derek
Can u do web services tutorial
I’m going to try and fit it into the Android tutorial. Thank you for the request
There are a lot of different choices on the eclipse download page, I am currently taking a XML class at school, was just wondering which one you are using. I am learning a lot from your videos and would like to follow along with the correct eclipse program.
Thanks.
I use eclipse for Java Developers version Indigo. The new version named Juno is still buggy with some plugins.
Thanks
You’re very welcome 🙂
I’m a working UI developer and your tutorials are fantastic. Very straight forward and your teaching style fits very well with the way that I learn. Thank you very much for offering these great aids. You’ve made me a lot more marketable.
Thank you very much 🙂 It is great to hear that I was able to help. You’re very welcome.
Hi Derek. I’ve been following your java tutorials and I’ve gained a lot from them. Thank you very much. If you wont mind, can you prepare some tutorials on JavaFX? That would be great.
Thank you 🙂 I plan on going back and covering topics I have missed after Android.