XML Tutorial - By DVFCXML Tutorial - By DVFC

User avatar
by Don Von Alpha Dom · 20 posts
11 years ago
Posted 11 years ago · Author
I decided to write my own XML tutorial based on chat logs of private lessons I have given to several of our members.
There are 13 lessons in this tutorial. I suggest learning XML before HTML. Even if you do not plan on learning HTML, this tutorial is also great if you plan on learning Cal3D. Have fun.

Lesson one: this is an open carrot
Code
<


Lesson two: this is a close carrot
Code
>


Lesson three, an open carrot < plus a close carrot >; equals a tag
Code
<>


Lesson four, the first word inside of a tag, is the name of the tag
Example:
Code
<Alex is smart>
This is an Alex tag.

Example:
Code
<1 2 3>
This is a 1 tag.

Example:
Code
<Your mother is a hamster>
This is a Your tag.

Lessons five, this is an open tag
Code
<>


Lesson 6, this is a close tag
Code
</>

Example: Below is an open Alex tag
Code
<Alex>

Below is a close Alex tag
Code
</Alex>


Lesson 7, After every open tag is a close tag with the same name.
Example:
Code
<Yaoi></Yaoi>

Example:
Code
<Yaoi is awesome></Yaoi>

An element is when you have an open tag and close tag of the same name. Above is what we call a Yaoi element.

Lesson 8, Words after the first word in a tag, are called parameters.
Example:
Code
<Don feelings>
In this case, Don has the feelings parameter.

Example:
Code
<Food color shape size>
In this case, food has the color parameter, shape parpmeter, and size parameter.

Example:
Code
<Yaoi is awesome>
In this case, Yaoi has the 'is' parameter and the 'awesome' parameter.

Lesson 9: only open tags have parameters

Lesson 10: close tags do not have parameters, as they only contain one word and the first word is the name

Lesson 11: parameters can have values
Are you any good with algebra?
Basic algebra.
Ok, if x = 2, then what is 4 + x ?
Answer: 6
Yes, parameters are like variables in algebra, as they can be equal to a value.
Example:
Code
<Don feelings="happy"></Don>
In this case don has the feelings parameter with the value happy.

Example:
Code
<Alex rank="capo da'general" posts="3000" nameColor="purple" avatar="girl.jpg"></Alex>
I am guessing that you can tell me what this example means?

Post your answer in the thread below.

good
Lesson 12: Nested is when something is inside of something else.
Example: If a box is inside of another box, then the boxes are nested.
Example: If a cup is inside of another cup, then the cups are nested.
Example: If Ghoku is pregnant, then Ghoku and his baby are nested.

Lesson 13: tags can be nested
Example:
Code
<Box><Cup></Cup></Box>

In this case, the box and the cup are nested.
The Cup is nested inside of the box.
The box is nested outside of the cup.
Example:
Code
<Light><L></L></Light>

In this example, The L tag and Light tag are nested.
The L tag is nested inside of the Light tag.

Lesson 14: Blocks
The collection of all XML nested inside of a tag is known as a "block".
In this example, the cup tag and the mouse tag are both inside of the Box block.
Example:
Code
<Box><Cup><Mouse></Mouse></Cup></Box>


In this example, the cup tag is inside of the Box block.
The mouse tag is outside of the Box Block.
Everything nested inside of the Box tag is apart of the Box block.
Everything not nested inside of the Box tag is outside of the Box block.
Example:
Code
<Box><Cup></Cup></Box><Mouse></mouse>


Ok, you now know how to read XML, and all languages that are in XML format, including HTML and Cal3D.
The exact technical term is...you now know XML.
XML is what HTML is written in, same with Cal3D. Cal3D is also written in XML.
This is sort of like knowing how to read English...., but not knowing what any of the words mean.
Now, we must know what the words (All of the different tags and parameters) mean.
Just a note, there are so many tags, I do not know what all of them mean. Most people just know the basic 20 tags, or 50 tags if you are a professional.


Look for my HTML tutorial - coming soon
Look for my Cal3D tutorial - coming soon
Posted 11 years ago
epic awesomeness
thanx for the tut Don ^^
Posted 11 years ago
Awesome tut, the HTML one should be interesting...

Make it noob-friendly so lots of people can understand :P
Posted 11 years ago · Author
Ez1o wrote:
Awesome tut, the HTML one should be interesting...

Make it noob-friendly so lots of people can understand :P


The HTML tut will be "noob-friendly".
I am basing it off of my lessons with Alex, and after I taught her...she was able to make her own mini site on our domain: https://www.imvumafias.org/LivingSkeleto ... ment1.html
https://www.imvumafias.org/LivingSkeleto ... ment2.html
Posted 10 years ago
soooo.....

Alex has the rank parameter with the value capo da'general
with the parameter posts and the value 3000 with the parameter nameColor and the value purple with the parameter avatar and the value girl.jpg

.. that didnt take me long... i hope it is correct.
Posted 10 years ago · Author
halieccboo wrote:
soooo.....

Alex has the rank parameter with the value capo da'general
with the parameter posts and the value 3000 with the parameter nameColor and the value purple with the parameter avatar and the value girl.jpg

.. that didnt take me long... i hope it is correct.


You are correct.
+Karma
Posted 10 years ago
Don Von Free Credits wrote:
halieccboo wrote:
soooo.....

Alex has the rank parameter with the value capo da'general
with the parameter posts and the value 3000 with the parameter nameColor and the value purple with the parameter avatar and the value girl.jpg

.. that didnt take me long... i hope it is correct.


You are correct.
+Karma


woohoo ^__^
Posted 9 years ago
Thanks Don love the tut :)
Posted 9 years ago
Don Von Free Credits wrote:
Example:
Code
<Alex rank="capo da'general" posts="3000" nameColor="purple" avatar="girl.jpg"></Alex>
I am guessing that you can tell me what this example means?


"Alex" open tag
"rank" parameter
"capo da'general" value
"posts" parameter
"3000" value
"nameColor" parameter
"purple" value
"avatar" parameter
"girl.jpg" value
"Alex" closed tag
Posted 9 years ago
That Tutorial is Filthy...What else do I expect from a Perverse Mind...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Sign in

Already have an account? Sign in here

SIGN IN NOW

Create an account

Sign up for a new account in our community. It's easy!

REGISTER A NEW ACCOUNT
Select a forum Protection     Help & Support     Introductions     Mafia News     IMVU News General Discussion     IMVU Lounge        IMVU Series / Roleplaying        Social Games     Mafia Market     Mafia Tools        Premium IMVU Tools        Off Topic Tools     Off Topic     Contests Creator Corner     Graphics Design        Photoshop        GIMP     Basic Creator Help     Catalog And Product Showcase     3D Meshing        3Ds Max        Sketchup        Blender Gangsters with Connections     White Hat Activities        Google Hacking        Trackers Programming Corner     Coding        Python        .Net (C#, VB, etc)        Flash        JAVA        Autoit        Batch        HTML & CSS        Javascript        PHP        Other        IMVU Homepage Codes           General           About me Panel           Messages Panel           Special Someone Panel           Visitors Panel           New Products Panel           Rankings Panel           Wishlist Panel           My Badges Panel           Outfits Panel           Url Panel           Groups Panel           Slideshow Panel           My Room Panel           Sandbox panel           Layouts     Help & Requests Free Credits     Approved Methods     Submit Methods Free Money     Approved Methods     Submit Methods Adult Corner     Get Mafia AP Here     AP Lounge        AP Social Games        Casual Dating Tips     IMVU Slave Market & Escorts