Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: How hard is it to embed xml in an html page

From: "jalexa9898" <jalexa9898@---.--->
To: NULL
Date: 9/2/2006 7:19:00 PM

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.
If this does not clear things up please say so.

Peter Flynn wrote:
> jalexa9898 wrote:
> > 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
>
> > Peter Flynn wrote:
> >> jalexa9898 wrote:
> >>> What if your programming in flex
> >> Code is just code. The language is not significant. Provided you escape
> >> < and & as &lt; and &amp; 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
> >> --
> >> XML FAQ: http://xml.silmaril.ie/
> >>
> >>> Martin Honnen wrote:
> >>>> jalexa9898 wrote:
> >>>>
> >>>>> 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?
> >>>> 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.
> >>>>
> >>>>
> >>>> --
> >>>>
> >>>> 	Martin Honnen
> >>>> 	http://JavaScript.FAQTs.com/
> >



transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent