Can anyone tell me if one can embed xml in (x)*html ?
Thanks.
Can anyone tell me if one can embed xml in (x)*html ?
Thanks.
"Embed" how? What do you expect this XML to do? XML is just a data format, it can't do anything without a parser.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Ok, thanks. I just wanted to know if I could or not. Thanks again.
Certainly you can display XML in HTML, and you can even use profiles of it for various things (VML in IE, or MathML in an XHTML-supporting browser).
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Twey: So how can I do that?
mwinter: Isn't there any way we can make it valid?
A HTML document can only contain HTML and character data (text in elements, including embedded style sheets and scripts).
An XML document can be used by parts of a HTML document, such as frames, object elements, and within scripts, but the former cannot be directly contained within the latter. It may be possible to transform the XML document into a HTML fragment, but then it isn't XML any more.
Mike
mwinter: Thanks you for explaining. How can scripts embed them?
Oh, sorry, I misunderstood.
Bookmarks