How long does one need to learn to write code before learning XML? | SoloLearn: Learn to code for FREE!

+8

How long does one need to learn to write code before learning XML?

Unfortunately, i don't have a laptop yet so i have been learning with my phone and it has made my learning slow.. and i also cant work on projects on my phone because i work with kotlin. So i wondered how long do i need to learn with my phone before learning xml(from w3schools) or i just learn both?? I thought of this idea because i think it would help me to keep my motivation since learning with a device is not that great. So what do y'all think? Should i learn both as to i think it will motivate me more?? I'm sorry if my description is too long.

12/1/2020 8:56:07 AM

daniel

30 Answers

New Answer

+17

It isn't necessary to study a programming language before studying XML. XML is a simple format. There isn't much to learn. If you open a tag you must close a tag, that's it. Essentially XML is a data container format. The tags are not fixed like they are in HTML, they can be anything you want. https://en.wikipedia.org/wiki/XML https://www.w3schools.com/xml/default.asp Where people get confused is in thinking the tags used in, for example, Android layout XML files are part of the XML standard. They are not, they are specific to Android development. XML files are generic. They can be used to contain anything from simple lists to word processor documents and spreadsheets. You should be able to learn the basics of XML in less than 20 minutes.

+11

Do your best I am also using mobile phone because I have no laptop here many people who has using mobile

+8

XML can be learned before you learn a programming language if you like. It's just a data representation and storage format, like JSON but different from it.

+6

alpha Romeo Go on with your mobile phone in this pace with this aspiration, one day in the future this aspiration will help to get your own laptop..., ..., There are many who has laptop with no desire to learn anything. So aspiration first then programming langs

+5

alpha Romeo, XML is just a container format. Yes, it only takes 20 minutes to learn XML. There are no standard tags for XML. All tags are application specific. The tags used for Android layout XML files have nothing to do with XML. They are Android development specific. You learn those tags when learning Android development not XML. These tag names are usually the same as the Android SDK class for the gui element anyway. GUI development environments often have tools for generating these XML files so there is often very little need to learn the actual XML anyway. Visual Studio has Blend, Android Studio has Layout Editor, and there are various tools for laying out web apps. There are even mobile apps for Android layouts such as App UI Designer. Just because a file format is human readable does not mean it needs to be human generated. Collada files are XML files containing 3D models but I wouldn't create one by hand, that's what my file export menu is for. Likewise for DOCX word processor and spreadsheet files. https://developer.android.com/guide/topics/ui https://developer.android.com/studio/write/layout-editor

+4

alpha Romeo don't learn XML from w3school if you are focusing on Android development b/c they teach you totally different from one in Android development so learn from YouTube, pdfs or udacity while am developing android app which its XML is totally different from w3school course

+4

There maight but the XML need to be binded with java and kotlin library to make it work else it would be plain XML alpha Romeo

+4

alpha Romeo yeah, I have seen aide but it have old sdk which is 26 + no kotlin support however you can practice on it And for w3school: They teach u that for fetching or posting XML based api But in Android let's take examples 1 ``` <androidx.constraint.constraintlayout> ``` 2 ``` <Foo> ``` Aren't 1 & 2 different Even though in Android there is fixed tag like ``` <TextView> <LinearLayot> ``` You can't name with random word Unless you make your new library But in w3scool ``` <hi> <hello> ``` ok to make that clear in Android courses you can just learn use binded api but in w3school how to bind api

+4

alpha Romeo no problem. There's no need for an external keyboard but I am thinking that it will be a pain to code with the touch screen keyboard of a mobile phone.

+4

dont waste your time, no need to learn or study xml at all.

+3

alpha Romeo oh OK you should have specified that and apologies as I didn't read all previous answers either. I'm not an Android dev but I guess you can learn the layout modelling xml tags in parallel with your Android coding.

+3

Martin Taylor , Sonic https://www.sololearn.com/post/793432/?ref=app Is it xml ? I just clicked manifest viewer of sololearn app.... but I don't know what is it ?

+3

Prasant, I access SoloLearn with a browser. App links don't work in a browser, I just get a 404 file not found page.

+3

💕 Prasant 💕 ✳️ yes it is.

+2

The bigger, the better

+2

Everything will be fine. The most important - aspiration

+2

Såñtösh Thanks

+2

There maybe some external keyboards that work with your phone that you may want to consider before getting access to a laptop.

+2

Only JS Thanks

+2

Martin Taylor Thank you. Perhaps I could practice with this 'App UI Designer' on my device 👍