J
jalexa9898
I am asking because I wrote some flex that was put in xml and I want to
embed it in some html is this hard to do?
embed it in some html is this hard to do?
jalexa9898 said:I am asking because I wrote some flex that was put in xml and I want to
embed it in some html is this hard to do?
Martin said:HTML 4 has iframe and object to embed other documents. Whether it makes
any sense to embed your XML with an iframe or object I don't know, some
browsers (like IE/Win or Mozilla) will try to pretty print the XML tree
with an XSL stylesheet if the XML document does not link to a stylesheet
or, in the case of Mozilla, the document does not contain any elements
in namespaces the browser recognizes (e.g. XHTML , SVG). Other browsers
might simply render any text content in XML elements. So generally if
you have XML then it is better to transform it on the server into
something more suitable for web browsers.
jalexa9898 said:What if your programming in flex
Peter said:jalexa9898 said:What if your programming in flex
Code is just code. The language is not significant. Provided you escape
< and & as < and & you can just use the <pre> element to hold
the code for display.
If you want the XML to be *interpreted* by the browser as XML, that's
an entirely different question, which Martin has already answered. But
in that case it's XML, not Flex. Browsers won't do anything with flex
code (except ignore it).
///Peter
jalexa9898 said:But if the flex is embedded in the xml wouldn't it read it then
Peter said:jalexa9898 said:But if the flex is embedded in the xml wouldn't it read it then
Wouldn't what read what? Can you be a bit more specific about what you
want to do, then maybe we can help you.
///Peter
jalexa9898 said:Well one of the things Flex does is when you write a flex page it seems
to use xml. Apparantly the code is embedded in some xml. I guess I was
wondering if it would be difficult to put the code in to a webpage that
is on a server.
jalexa9898 said:Ok I will do my best to explain it here. Ok I have recently started to
program in a new language that has recently become popular called Flex.
It is made by the Adobe people. Now I know this is an xml newsgroup and
not a Flex newsgroup but I am just explaining it to clear things up.
Well one of the things Flex does is when you write a flex page
it seems to use xml.
Apparantly the code is embedded in some xml.
I guess I was
wondering if it would be difficult to put the code
in to a webpage that is on a server.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.