I start to learn XML

xml Poland
  • 9 years ago

    How an i make a little square (like a checkbox) whitch is filled with a color?
    And how add text after this square?


    Sorry for my English....

  • 9 years ago

    Hi


    first of all here is an example, just save  this file as "test.svg"
    and open in browser(maybe you have to install a viewer)
    one is here its best and free.
    http://www.adobe.com/svg/viewer/install/main.html


    Code:

    <svg>
    <rect x="0" y="0" width="20" height="20" style="fill:red" />
    <text x="25" y="20" >Hello World !</text>
    </svg>



    and now to xml


    u know html right. so the way you write tags is specified in sgml, or better html is specified using sgml.
    xml is somthing like sgml(Standardized General Markup Language)
    there are several languages descibed in xml (xhtml,wml,svg,.....)
    one of those is for drawing(svg)
    but you can define anything you want with xml.
    from document to data description.
    hth.
    bye

  • 9 years ago

    Thanks!

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“In theory, theory and practice are the same. In practice, they're not.”