A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: what's XML?

  1. #1
    Senior Member
    Join Date
    Apr 2001
    Posts
    296
    I noticed all the XML syntax in flash 5 actionscript. Would somebody kindly give me a very basic idea of what it's all about? Is it a server-side thing like CGI?

  2. #2
    Senior Member
    Join Date
    Apr 2001
    Posts
    296
    PS I know it stands for extensible mark-up language, can I have a brownie point please?

  3. #3
    Senior Member
    Join Date
    Apr 2001
    Posts
    296
    I just looked at some threads near the bottom of this forum and i noticed that the same question has already been asked and answered. Pardon my haste in posting ma'am.

  4. #4

  5. #5
    GCP
    Join Date
    Mar 2001
    Location
    New York, NY
    Posts
    18
    xml is a markup langauge for data, that is it can be used to tag (describe) your data in a meaningfull way, if you had a online shopping cart, you can mark the data up like this...

    <?xml version="1.0"?>
    <shooping-cart>
    <item>
    <description id="some id">
    some text that describes this item
    </description>
    <quantity>10</quantity>
    </item>
    </shopping-cart>

    xml looks alot like html, but where in html the rules are only partialy enforced xml must follow the basic rules, in summary they are
    1) all tags must have a closing tag
    if a tag is "empty" like the <img> tag in html, it
    must look like <img/>
    2) all attributes must be either 'single' quoted
    or "double" quoted

    in xml, you make up the tags, which brings up the question "how do I use it?", well for lots of things, but where html has applications (web browsers) you have to create an application, or create one, in my opion java is the best langauge for this, it has been said "xml is for cross platform data, java is cross platform data"

    that should get you started...

    wow! I'm a geek!

  6. #6
    GCP
    Join Date
    Mar 2001
    Location
    New York, NY
    Posts
    18
    woops! my examples got parsed, here they are
    the xml code...
    <xmp>
    <?xml version="1.0"?>
    <shooping-cart>
    <item>
    <description id="some id">
    some text that describes this item
    </description>
    <quantity>10</quantity>
    </item>
    </shopping-cart>
    </xmp>
    and the 2 broken images...
    <xmp>
    1) all tags must have a closing tag
    if a tag is "empty" like the <img> tag in html, it
    must look like <img/>
    </xmp>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center