XML technologies / SVG / SVG and XML / Summary, questions and exercises

(Excerpt from “Das Einsteigerseminar SVG — Webgrafiken mit XML” by Helma Spona)

Summary

  • An SVG document can be converted into an XML document by replacing the extension .svg with .xml.

  • Croczilla can execute and display XML files with a valid namespace declaration.

  • An XML file can use several namespaces.

  • Commands from these namespaces can be used once the namespace is declared.

  • All commands outside the SVG namespace must be enclosed in the tag <foreignObject>.

Questions and exercises

  1. What is a namespace?

  2. What does the declaration xmlns:html="http://www.w3.org/1999/xhtml" in the <svg> tag of an XML file determine?

  3. If you used the declaration from question 2, how could you display a level-one heading in the graphic with an XHTML tag?

  4. Exercises 4 to 6 form a single unit.

  5. Create an XML file and insert a circle.

  6. Also add XHTML text to the file.

  7. Arrange the text beside the circle.

   

 

 

 

back to top