AnandSancheti wrote:
I am new to XML and Web technology in general. I want to know how can
we display an image in the XML file. In this case constraint is that no
file is to be used as a link. rather image data should be part of the
XML file. and this file would be generated runtime.
Well there is SVG (<
http://www.w3.org/TR/SVG/), which is an XML
application defining scalable vector graphics. Viewers for that are
Batik or the Adobe SVG viewer.
Recently browsers start supporting some SVG too, the upcoming Firefox
1.5 will have native SVG support, Opera 8 has support for SVG Tiny,
Opera 9 Preview has improved support (in particular for scripting).
In those browsers you can render mixed namespace documents with elements
in the XHTML namespace and with elements in the SVG namespace.
Where exactly do you "display" your XML currently? Do you use an XML
application like XHTML that is meant to be displayed? Or do you
transform your XML to HTML to display it?
--
Martin Honnen
http://JavaScript.FAQTs.com/