Displaying xml as html in Flash

Hi
I'm struggling with an xml problem. Within my Flash movie
(CS3), I have two dynamic text boxes (one titled 'title' and the
other titled 'description'). The text and images are calling into
Flash without a problem, but in the 'description' text box, I need
to render hyperlinks as part of the xml text (the 'title' text box
does not need to render as html - there are no hyperllinks). I'm
doing this using CDATA tags, but although I've selected 'Render as
html' for the text box titled 'description' in Flash, I'm not
getting the hyperlinks (I'm actually seeing the tags being
displayed in the Flash movie).
Here's an example of my xml;
quote:
<image>
<id>1</id>
<title>Heading positioned here</title>
<description><![CDATA[Body text positioned
here.<a href="
http://www.url-here.com">Click
here</a> to view the products that make up this
display.]]></description>
<imageurl>IMAGES/image1.jpg</imageurl>
</image>
I'm fairly sure that the xml data is correct, which means
that the missing link is in Flash, but I just can't crack it.
I'd be really grateful for any help.
Many thanks.

Thanks for your reply, Ned.
Are you talking abut ActionScript here? If so, how is this
assigned to the text box (I can't attach ActionScript to the box
itself)?
Many thanks

Similar Messages

  • How to display xml to html using xsl?

    hi all...may i know how to display xml to html page?
    i ve included <xsl:output method="html" indent="yes" /> inside my xsl file. i clicked on output.xml file and everything is displayed correctly but the format is xml instead of html. is there anyway to transform it to html?
    below are my xsl and xml codes:
    // xsl file
    <?xml version='1.0'?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html" indent="yes" />
    <xsl:template match="/">
    <html>
    <body>
    <h2>Document Contents</h2>
    <table border="1">
    <tr bgcolor="#9acd32">
         <th align="center">Document Name</th>     
         <th align="center">Document ID</th>          
         <th align="center">Owner</th>               
    </tr>
    <xsl:for-each select="Document/Contents">
    <tr>
    <td><xsl:value-of select="DocumentName"/></td>
    <td><xsl:value-of select="DocumentID"/></td>
    <td><xsl:value-of select="Originator"/></td>
    </tr>
    </xsl:for-each>
    </table>
    </body>
    </html>
    // xml file
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="xsltStyleSheet.xsl"?>
    <Document>
         <Contents>
              <DocumentName>register</DocumentName>
              <DocumentID>1</DocumentID>
              <Originator>hhh</Originator>
         </Contents>
    </Document>
    </xsl:template></xsl:stylesheet>

    your XSL transforms to HTML (in fact XHTML): what more do you expect? did you expected anything different from the following output? if yes: what and why?
    <html>
         <body>
              <h2>Document Contents</h2>
              <table border="1">
                   <tr bgcolor="#9acd32">
                        <th align="center">Document Name</th>
                        <th align="center">Document ID</th>
                        <th align="center">Owner</th>
                   </tr>
                   <tr>
                        <td>register</td>
                        <td>1</td>
                        <td>hhh</td>
                   </tr>
              </table>
         </body>
    </html>

  • JEditorPane - How to display XML Linked HTML File in JEditorPane ?

    Dear Friends,
    I have a HTML File consisting of stylesheet, xml linked (for data) and with headers, footers...
    When i called a ordinary html file using setpage property of JEditorpane..it's working no problem...but when i call the html file having xml linked or buttons...it's not properly displayed....
    If anybody hits this problem....pls...help me....
    Regards,
    V.Prasanna

    If you only need to display it, consider your HttpServletRequest just as byte stream. :) Just read from ServletInputStream and write it back into ServletOutputStream of HttpServletResponse.
    If you want to process incoming XML, please give some details first, what exactly you want to do. :)

  • Displaying XML w/ XSLT styling in Flash

    Hello -
    I have a file that is displaying .xml info in Flash. I styled the .xml document outside of flash w/ .xslt. It works fine outside of Flash but doesn't work when displayed inside of Flash- Is there a way to make this work ???
    Thanks

    No, there is no way to make it work natively. Also, Flash has very limited support for HTML tags and only for CSS.

  • Passing through XML in HTML forms without it being displayed in Web Browser

    Dear all
    I have some MapViewer XML stored in a variable, which I wish to pass through a HTML form. However whenever I insert the variable into the form and run the procedure, my web browser starts reading the actual XML and treating it as HTML, since it is only part of a complete XML script. Even if it was a complete XML script, it would still try and display it. Is there away of making sure the value is passed through without being read by the browser?
    For example:
    PROCEDURE DISPLAY
    AS
    var_xml VARCHAR2(32767) :='<theme name="theme_county"/>';
    htp.print('<INPUT TYPE = "hidden"
                      NAME ="var_xml"
                      VALUE = "' || var_xml || '" />Then causes the output to the browser to become:
    htp.print('<INPUT TYPE = "hidden"
                      NAME ="var_xml"
                      VALUE = "<theme name="theme_county"/>" />The browser is of course reading the XML as HTML.
    Kind regards
    Tim

    Dear all
    I have now resolved the problem by submitting values which can then be used to recreate the xml in another function, rather than actually submitting the xml itself through the forms. This makes more sense and avoids people having to see any of the xml.
    Kind regards
    Tim

  • Displaying XML Document in new browser window

    Hi,
    I have a hyperlink on my page. When I click on it, it will open a new IE window and display xml document.
    The new window is displaying some of the xml and at the end displaying the following:
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    End element was missing the character '>'. Error processing resource 'http://localhost:28080/benchmark/faces/displayXMLDocu...
    However, I cut and paste the xml String where I write it to the HTTPServletResponse to XMLSPY and it displays correctly.
    Please let me know.
    Rgrds

    Here are the steps:
    1. I created page1 that has a hyperlink.
    2. Hyperlink property are set to display page2 in a new window. (popup).
    3. page2.prerender() method, I set the response to the following:
    public void prerender() {
    javax.faces.context.ExternalContext ec = this.getExternalContext();
    HttpServletResponse response = (HttpServletResponse)ec.getResponse();
    response.setHeader("Cache-Control","no-cache");
    response.setHeader("Cache-Control","no-store");
    response.setHeader("Cache-Control","must-revalidate");
    response.setHeader("Cache-Control","max-age=0");
    response.setHeader("Pragma","no-cache");
    response.setHeader("Expires","0");
    response.setContentType("text/xml");
    response.setBufferSize(5000);
    String xmlString = getRequestBean1().getBookingPnrDetailsXML();
    try{
    xmlString="<?xml version=\"1.0\" encoding=\"UTF-8\"?><root><test1>this is a test</test1><victor>Hello Victor</victor></root>";
    PrintWriter out = new PrintWriter(response.getOutputStream());
    log(xmlString);
    out.print(xmlString);
    }catch(IOException io){
    System.out.println("" + io.getMessage());
    io.printStackTrace();
    4.page2.jsp code is the following:
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/xml;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view/>
    <ui:page binding="#{displayXMLDocument.page1}" id="page1"/>
    <ui:html binding="#{displayXMLDocument.html1}" id="html1"/>
    <ui:head binding="#{displayXMLDocument.head1}" id="head1"/>
    <ui:link binding="#{displayXMLDocument.link1}" id="link1"/>
    <ui:body binding="#{displayXMLDocument.body1}" id="body1"/>
    <ui:form binding="#{displayXMLDocument.form1}" id="form1"/>
    </jsp:root>
    please let me know.
    Rgrds.

  • HELP NEEDED!!!displaying xml node name in an input text box

    Hello everybody
    Have a simple proble. I have imported an XML file into flash
    using the Tree component and the XML_conn component. So i have the
    xml tree displying in flash when i have run it.
    I have created an input text box called 'subject'
    All i really need is when a user clicks on any node for that
    node name to be displayed in a the input text box. thats it. ITS
    DRIVING ME CRAZY

    Try something like this. (if your Tree is called myTree)
    var myTreeListener = {}
    myTreeListener.change = function(evtObj) {
    subject.text = evtObj.target.selectedNode.nodeName;
    myTree.addEventListener("change",myTreeListener)

  • Displaying Text as HTML in the UIscrollbar component

    Greetings.
    I have a window on my Flash stage that has some scrollable copy in it.  The problem is, I can't seem to have any formatting for the text ... if I select a word or two to make bold, it all turns bold.  I gather I need to use the "Display Text as HTML" checkbox and then paste in some HTML formatted text but this doesn't seem to work.  I searched this forum and found that others were designating "htmlText" in Actionscript instead of just "text" ... that didn't work either.  I probably just did it wrong, or maybe it's becuase I'm using the UI component "UIscrollBar" for it's scrolling of the text.
    Is there anything else I need to do to be able to format some text with strong tags and maybe some href links?
    I have my properties inspector with the following check marks:
    Display as HTML
    Multiline
    Dynamic Text
    selectable
    Thanks everyone.

    Shamelss bump

  • Display XML Idoc for people who do not understand XML

    Hi,
    does anybody know an easy way to make an Idoc XML readable for people who do not have any knowledge about XML?
    This request comes from our sales department. We store incoming ORDERS.ORDERS05 Idocs from customers in XML format on a file server before mapping and sending them into an R/3 system to create the sales orders. For some reason, the sales people in our company sometimes have to have a look at the original incoming file.
    Our intension is to give them an easy tool to open the Idoc XML and get it displayed in a more or less clearly arranged way, maybe as HTML table or something similar. Unfortunately I am not too familiar with XSLT.
    Any ideas?
    Thanks,
    Philipp

    Hi Philipp,
    you need to do some kind of transformation. XSLT would be my first idea, but if you are not familiar with it, it might be worth a try to have a look at graphical report generators. They will take the hassle of doing manual coding from you.
    Or there are XSLT mapping tools available which allow you to transform from XML to HTML, doing basically the same thing.
    I do not know if I am allowed to supply some product names here, but I guess a google query for "report generator" or "xslt mapping tool" will yield some results.
    Cheers!
    Stefan

  • Not able to display XML file

    I'm running Safari 6.0.2. And previous to a recent update I was able to drag a XML file into the browser and it would display the contents. Now it does nothing. I'm guessing with the last update it removed an extension that used to allow this to happen. Can anyone suggest a good XML display extention they've had good luck with.
    Thanks!

    The only browser I am aware of that currently knows how to
    display XML is IE5. Otherwise, you will need to convert the XML
    into well-formed HTML or xHTML through and XSLT stylesheet.
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    Ravinder Kamal (guest) wrote:
    : I not able to display the XML file in my browser even after
    using
    : using an XSL Stylesheet. I am not using IE5 browser.
    : The output of command :
    : C\>java XSLSample iden.xsl empl.xml
    : <root>
    : <ROWSET>
    : <ROW num="1">
    : <EMP_ID>PMA42628M</EMP_ID>
    : <FNAME>Paolo</FNAME>
    : <MINIT>M</MINIT>
    : <LNAME>Accorti</LNAME>
    : <JOB_ID>13</JOB_ID>
    : <JOB_LVL>35</JOB_LVL>
    : <PUB_ID>0877</PUB_ID>
    : <HIRE_DATE>1992-08-27 00:00:00.0</HIRE_DATE>
    : </ROW>
    : </root>
    : where iden.xsl is :-
    : <?xml version="1.0"?>
    : <!-- Identity transformation -->
    : <xsl:stylesheet
    xmlns:xsl="http://www.w3.org/XSL/Transform/1.0">
    : <xsl:template match="*|@*|comment()|pi()|text()">
    : <xsl:copy>
    : <xsl:apply-templates
    : select="*|@*|comment()|pi()|text()"/>
    : </xsl:copy>
    : </xsl:template>
    : </xsl:stylesheet>
    : -R.S.Kamal
    null

  • Problem with displaying XML Content well formatted.

    Hi all,
    I am developing a website which have one functionality to display XML content which is received from some other party.
    I am using TextArea for displaying this XML content on my webpage. As this XML content is not at all formatted it looks very ugly for a human to read.
    I want this XML content to be displayed well formatted, As Mozilla Firefox display it hierarchically and well formatted.
    Kindly give some suggestion for displaying XML well formatted on a webpage.
    Any comments from you people will help me.
    Thanks
    typurohit.

    The following link is a XML-based document. An XSL stylesheet transforms the XML document to HTML in the web browser. Feel free to grab a copy of the stylesheet to use as a guide.
    http://www.masonicartbook.com/production.htm
    Good luck!

  • How to fix iframe issue that displays XML values instead of formatted XML in IE11

    The following sub.jsp file shows the formatted XML properly as expected when is opened directly:
    <% response.setContentType("text/xml"); %>
    <book>
    <chapter1>chapter 1</chapter1>
    <chapter2>chapter 2</chapter2>
    </book>
    IE11 shows the result as below which are colored and can be collapsed or un-collapsed:
    <book><chapter1>chapter 1</chapter1><chapter2>chapter 2</chapter2></book>
    But if the sub.jsp is opened in an iframe from the below main.html, it only shows the values of the XML in the iframe:
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="ISO-8859-1">
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    </head>
    <body>
    <iframe src="sub.jsp"></iframe>
    </body>
    </html>
    The iframe shows only the XML values, i.e., chapter 1 chapter 2 in IE11. This issue does not happen in IE8.
    I appreciate to your if you know how to address this issue.
    Regards, Amir

    The following sub.jsp file shows the formatted XML properly as expected when is opened directly:
    <% response.setContentType("text/xml"); %>
    <book>
    <chapter1>chapter 1</chapter1>
    <chapter2>chapter 2</chapter2>
    </book>
    IE11 shows the result as below which are colored and can be collapsed or un-collapsed:
    <book><chapter1>chapter 1</chapter1><chapter2>chapter 2</chapter2></book>
    But if the sub.jsp is opened in an iframe from the below main.html, it only shows the values of the XML in the iframe:
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="ISO-8859-1">
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    </head>
    <body>
    <iframe src="sub.jsp"></iframe>
    </body>
    </html>
    The iframe shows only the XML values, i.e., chapter 1 chapter 2 in IE11. This issue does not happen in IE8.
    I appreciate to your if you know how to address this issue.
    This issue is also posted at below link:
    https://social.msdn.microsoft.com/Forums/en-US/5b0692b4-d312-4797-9089-42c1029ac059/how-to-fix-iframe-issue-that-displays-xml-values-instead-of-formatted-xml-in-ie11?forum=iewebdevelopment
    Regards, Amir

  • Displaying XML with JDeveloper

    Using JDev 10.1.3 for an ADF + Struts application,
    What is the smartest way of displaying XML documents, with different XML formats/structure, stored in a CLOB field of a database.
    I have already .xslt stylesheets for each different type of XML file; I plan to have this .xslt files as other column in the database.
    I would like to know how to incorporate this xslt on my project and specially how to use it when displaying the information XML/CLOB to the user?
    Any samples, ideas, url, etcx will be welcome.
    Thanks,
    OM

    i don't know if oracle has a product for this but they would have to plan one to embed in JDeveloper.
    i'm using authentic from altova that permit you to define entry helpers based on a xml schema to edit a document and to render it in html, rtf or pdf. I think it is possible to embed it in a java or web application. The best way is to ask altova support. For sure other similar solutions exists also.

  • XML to HTML help

    This is just for a hobby, thanks for any suggestions or help.
    Digitech makes guitar multi-effects pedals and they have a public user forum for sharing preset files to simulate a variety of guitar sounds. The particular products I am interested in are older discontinued models RPx400, RP300A and RP300, the RPx400 uses a USB computer interface to store and share preset files as XML data, the older RP300 and RP300A models have the same effects and user controls but lack the computer interface. By viewing the contents of the XML preset file from the newer unit, one can manually enter the preset into the older models. So in the interest of helping to share some guitar sounds among the small user community of these older model discontinued effects pedals, I was interested in creating a XML to HTML preset patch viewer for the RPx400 files so that RP300 and RP300A users could try them out. (I am not affiliated with Digitech at all).
    An example preset file from the RPx400 is here:
    http://www.digitech.com/soundcomm/patches/RPx400/Queen.r4p
    Another line of GNX effects pedals has a preset viewer on the web, based on a different file format, but is a good example of how I would like to display the HTML to be more human-readable:
    preset viewer example
    So, I am a little familiar with perl and would lean towards using that, and I would want to set it up as a web page on my Tiger G3 with Personal Web Sharing which I have running with a DynDNS static alias to my dynamic IP.
    Any pointers on how to set this up would be most appreciated.

    Glen Doggett wrote:
    Yes, exactly how I would like to set it up, since I'd like to share this patch viewer with others on my Personal Web Sharing server. I understand how to write the perl, but the part about setting up the CGI I'm not sure about,
    Any Perl script can run as a CGI. Look for the CGI.pm module, which should always be installed. It is pretty simple. You get the Apache environment in the Perl %ENV hash when your script is run. If handling a POST request, the query comes in on standard input. The CGI.pm module can handle all of this very nicely.
    like what directory to put the perl script, does it matter?
    Yes. it has to go into your CGI-BIN directory, wherever your Apache configuration has that configured to be. Getting the cgi-bin directory straight is the hardest part of writing a CGI in Perl. This is the #1 reason why PHP is so popular. The default configuration for PHP allows PHP scripts to run in any directory. The default for Perl requires them to be in the cgi-bin directory. That's the only difference - the default setting.
    Is there a good reference book or on-line on the Mac-version of CGI how to set it up?
    Yes, but there are probably a few hundred. For this, there is nothing Mac about it. Just look for Apache CGI in Perl on UNIX. I have an ancient book on my desk titled "CGI Programming on the World Wide Web" circa 1996. It doesn't have CGI.pm and the screenshots are Netscape on MacOS 7. Still, it is just out of date, nothing in it is wrong per se.
    It should be a 5-10 line Perl script, depending on how many comments you write.

  • Displaying XML in JEditorPane

    Hi!
    Can someone please please help me, I'm new to java and having problems. IT migh tbe simple for you guys out there but its troubling me, been tryign to sort it out but no luck yet.Hopefully someone can help me out :)
    I'm currently uing a JEditorPane to display a HTML page which works fine. But I wanted it to display a XML page. The XMLfile with its DTD and XSL file loads up correctly in IE so theres no problem with syntax of these files. All i wanted it to do is display it on a JEditorPane. Am i right in thinking that JEditorPane is the right component to use. And if not then how do i solve this problem???
    Ive used the following code to call the xml file, it compiles and displays the actual code of the XML file not the visuals. Can someone please have a look.
    import javax.swing.*;
    import javax.swing.text.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.net.URL;
    import java.io.IOException;
    public class testing extends JFrame
         public testing()
         { super("Testing");
              //Create an editor pane
              JEditorPane editorPane = createEditorPane();
              JScrollPane editorScrollPane = new JScrollPane(editorPane);
              editorScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
              editorScrollPane.setPreferredSize(new Dimension(600,600));
              JPanel p = new JPanel();
              p.add(editorScrollPane);
              p.setBorder(BorderFactory.createCompoundBorder(
                                            BorderFactory.createTitledBorder("Styled Text"),
                                            BorderFactory.createEmptyBorder(20, 20, 20, 20)));
              JPanel contentPane = new JPanel();
              BoxLayout box = new BoxLayout(contentPane, BoxLayout.X_AXIS);
              contentPane.setLayout(box);
              contentPane.add(p);
              setContentPane(contentPane);
         private JEditorPane createEditorPane()
         {     JEditorPane editorPane = new JEditorPane();
         editorPane.setEditable(false);
         String s = null;
         try {
                        s =
                        "file:"
                                  + System.getProperty("user.dir")
                                  + System.getProperty("file.separator")
                                  + "directory.xml";
                             System.out.println(s);
                        URL helpURL = new URL(s);
                        displayURL(helpURL, editorPane);
                   catch(Exception e)
                   { System.err.println(" Couldn't create help URL : " + s);
                   return editorPane;
         private void displayURL(URL url, JEditorPane editorPane)
         {     try {
                             editorPane.setPage(url);
                        catch (IOException e)
                        { System.err.println("Attempted to read a bad URL : " +url);
         public static void main(String[]args)
         {     JFrame frame = new testing();
              frame.addWindowListener(new WindowAdapter()
              { public void windowClosing(WindowEvent e)
                   { System.exit(0);}
              frame.pack();
              frame.setVisible(true);
    }Thanks a lot. Would really appreciate any help.

    Hey
    Thanks for the help. I did use the XSLT transformation to ocnvert the xml into html. I used the following code :
    import javax.xml.transform.*;
    import javax.xml.transform.stream.*;
    import java.io.*;
    public class JavaTransform1
         public static void main(String args[])
         { try
                   TransformerFactory tf = TransformerFactory.newInstance();
                   Transformer transformer = tf.newTransformer(new StreamSource(new File(args[1])));
                   transformer.transform(new StreamSource(new File(args[0])),
                   new StreamResult(new File(args[2])));
              catch(Exception e) {}
    }Then using the command prompt i typed:
    java Transform1 directory.xml directory.xsl results.html
    This creates a HTML file but for some reason its blank :s
    I'm not sure why that is, when i call the html file in the JEditorPane it loads up a blank page which is what it looks like. for some reason even though it does create a HTML file its blank and not based on the XML file. What am I doing wrong here??
    Thanks alot.
    nat :)

Maybe you are looking for

  • How can I set up PayPal Sandbox as a Payment Gateway?

    I've been having trouble setting up my PayPal Sandbox account as a Payment Gateway in BC.  I thought I was filling in all the required fields correctly, but when I go to check out with an item, PayPal says it has a problem with the merchant's email a

  • Problem connecting a 24" Cinema Display to an Imac 27"

    My friend has an Imac 27 "with a graphics card AMD HD 6970M 1GB. She wanted to connect an external Cinema Display 24" (without thunderbolt serie). The external display has started to display black screen intermittently while making a strange noise. B

  • MVC OWIN Application hosted in Azure fails with custom domain names

    I am not entirely sure if this is the proper forum for OneDrive API questions, but hoping this is close enough or can be redirected. I am working on integrating Microsoft Account authentication into my application, and in testing have based it off of

  • Limited resolution when using Philips 8800 4k TV with Yosemite

    I've a Philips UHD TV 8800series (55PUS8809/12) attached to my MacBook Pro Retina late 2014. I connected the screen to my laptop with Mavericks and could pick a 4k resolution from the display resolution picker. Then I updated to Yosemite. Since then

  • Help needed, Oracle and PreparedStatement setNull for VARCHAR problem

    Using the JDBC drivers included with JDK 1.3, I am encountering a strange problem when trying use a PreparedStatement with a NULL parameter in a VARCHAR column. When running the code below (user_id is an integer and login is a nullable varchar) the p