Put html tag in xml genreted with strings panel

Hello,
I created an multilanguage application with the "strings
"panel.
My customer need to put some words in italic inside the
dynamic textfield.
So I used <i> tag or cdata tag insied the xml, but
nothing works, even if I put the textfield in "html" format.
So How can I do.
Do we need to change the "locale.as" class?
thanks.
Regards,

Is the dynamic text field set to embed the fonts? (Properties
Panel >
Character.... radio button clicked to specify ranges)
If it is, set it to no characters. Also make sure your
dynamic text field
is set in the properties panel to render as html.
Here is a test:
Create a new Flash document, select the text tool from the
tools menu and
create a text area on the stage. Make it a dynamic text field
in the
properties panel and click the render as html button. Give it
an instance
name of "myText" and on frame one of the main timeline put
the following
actionscript.
myText.htmlText = "<i> This is Italics</i>. This
is not"
Test the movie and it should show what you are looking for.
Dan Mode
--> Adobe Community Expert
*Flash Helps*
http://www.smithmediafusion.com/blog/?cat=11
*THE online Radio*
http://www.tornadostream.com
*Must Read*
http://www.smithmediafusion.com/blog
"tof69" <[email protected]> wrote in message
news:efb464$7cm$[email protected]..
> Hello,
> I created an multilanguage application with the "strings
"panel.
> My customer need to put some words in italic inside the
dynamic textfield.
> So I used
tag or cdata tag insied the xml, but nothing works, even if
> I
> put the textfield in "html" format.
> So How can I do.
> Do we need to change the "locale.as" class?
> thanks.
> Regards,
>
>

Similar Messages

  • How to Include html tag in xml

    Hi,
    Is there any way to include html tags in xml?
    For Example, I'm using xsl to get the value of FIELD_1 from fetch.xml
    In fetch.xml, I have the tag
    <FIELD_1>
    <font color='#8080ff'>&#160;<font face='Times New Roman, Times' size='28'>Testing font and color</font></font>
    </FIELD_1>
    But If I tried to read the value from xsl like <xsl:value-of select="FIELD_1"/> I'm just gettig the display 'Testing font and color' without the specified font and color....
    How to achieve this?
    Thanks
    Selva.

    Hi,
    Thanks for the input.
    I tried with the below code
    <fo:block space-after="5mm" font-family="Arial"><xsl:copy-of select="FIELD_1"/></fo:block>
    But I'm getting the below error...
    "An invalid XML character (Unicode: 0xa0) was found in the element content of the document."
    Below is the code included in the xsl....
    <?xml version="1.0" encoding="utf-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
    <xsl:output method="xml" indent="yes"/>
    <xsl:template match="Values"><fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
    <fo:layout-master-set>
    <fo:simple-page-master master-name="simpleA4" page-height="29.7cm" page-width="21cm" margin-top="3cm" margin-bottom="2cm" margin-left="2cm" margin-right="2cm">
    <fo:region-body/>
    </fo:simple-page-master>
    </fo:layout-master-set>
    <fo:page-sequence master-reference="simpleA4">
    <fo:flow flow-name="xsl-region-body">
    <fo:block space-after="5mm" font-family="Arial"><xsl:copy-of select="FIELD_1"/></fo:block>
    </fo:flow> </fo:page-sequence> </fo:root> </xsl:template></xsl:stylesheet>
    Is there any mistakes in the above code?
    Regards,
    Selva.

  • XML Parser puts HTML Tags each on its own line... BAD

    Is there a way to tell Oracle XML Parser not to place each HTML tag on a separate line in the output stream? It appears that this is what is causing what I will call "dog-legging". The normal dotted line that surrounds an image on an HTML browser page has an extra protrusion in the lower-right corner under IE 4.x. A hyphen appers in the lower right corner under NN 4.x.
    any information that you good folks could provide me on this matter would be greatly appreciated.
    Thanks in advance,
    Dave Reese

    The way to avoid this is to specifically request that the HTML output be generated without indentation. Just include the
    following at the top-level of your stylesheet inside the outermost <xsl:stylesheet> element:
    <xsl:output method="html" indent="no"/>

  • HTML Tags in XML Update

    I have a unique situation (may be not that unique). I want to update or add HTML tags in an XML element I am writing a PL/SQL Stored Procedure to insert, update or delete elements/attributes from an XML Type column based on the input XML (coming from Java application). SP is called from Java app. For example my XML may loook like
    <Description Name="Sales Message">
    <Text>This is a test</Text>
    </Description>
    I can update this in XML by creatinga SP which accepts a value (clob or text) and make a simple update call like
    UPDATE table_name
    SET hotel_xml = UPDATEXML (hotel_xml, Description[@Name=''Sales Message'']/Text/text()', 'This is a Test')
    WHERE id = 123;
    Hopwever when I have HTML tags in my parameter value, my update fails. For example java pp passes me a string
    This is a bold &lt;B&gt;Test&lt;/B&gt;
    (without encoding it is "This is a Bold <B>Test</B>"
    When I run this
    UPDATE table_name
    SET hotel_xml = UPDATEXML (hotel_xml, Description[@Name=''Sales Message'']/Text/text()', 'This is a bold &lt;B&gt;Test&lt;/B&gt;')
    WHERE id = 123;
    It thinks, I am passing a substitution variable (think &lt and &gt as sub variables) and the procedure fails.
    How do I handle HTML encoded charcters in Oarcle Pl/SQL? Many of my SPs has to accept XML as clob that may contain HTML encoding. Java always encodes HTML tags in an XML so I have to pass the CLOB(xml) to a SP as it is

    When this type of encoding is there in my XML or input variable, PL/SQL thinks
    its a substitution variable and tries to replace it by prompting replacement. I think »substitution variables« is the wrong phrase for this. Probably you mean »entity names«, and all that happens is that special characters are converted to »entity names« to ensure valid xml after the update:
    SQL> with table_name as (
    select xmltype('<Description Name="Sales Message">
                       <Text>This is a test</Text>
                     </Description>') hotel_xml from dual)
    select updatexml (hotel_xml,
                      'Description[@Name="Sales Message"]/Text/text()',
                      'This is a bold <B>Test</B>'
                     ) hotel_xml
      from table_name
    HOTEL_XML                                                                                             
    <Description Name="Sales Message"><Text>This is a bold &amp;lt;B&amp;gt;Test&amp;lt;/B&amp;gt;</Text></Description> Do you expect your result to look like
    <Description Name="Sales Message">
      <Text>This is a bold <B>Test</B></Text>
    </Description>??

  • Html tag as xml tag value?

    Hi,
    Can I put a html tag as value to a xml tag? something like this
    <abc>
    <username>Uma</username>
          <displayTag>
                  <start><h1></start>
                  <end></h1></end>
          </displayTag>
    </abc>Please help.
    Thanks in advance.

    You can either use > and < for < and > to get something that appears to be an html tag, or you can use a CDATA section.
    It partly depends on what you plan to do with that content.
    Dave Patterson

  • nbsp html tag in xml

    Hi
    I am using xsl file that takes a xml file as input and outputs another xml file.
    I need to read content from my input xml file which has the following code:
    Input Xml file content:
    *<body>text1</nbsp>text2</nbsp>text3</body>*
    My output xml file in reading body content is as below:
    text1text2text3
    but what i need is as follows:
    text1 text2 text3
    (spaces in between text1 and text2 is needed, but in my output </nbsp> tags are eliminated )
    Can any help me in this regard. how to do i get these spaces in my text?
    Thanks in advance.
    Menaga.

    I didn't know there was an element named <nbsp> in HTML. So maybe your browser is just ignoring it because it isn't an HTML element. But there is a character named   in HTML that's used for non-breaking space. To put that in an XML document you write it as &#160;.

  • Html tag in XML and spry

    Hi,
    I have HTML-element in XML doc, but i do not know how to get it out as HTML-element in PHP or in HTML.
    I have this kind of XML tag
    <logo><![CDATA[><a href="http://www.someadress.com"><img src="images/logos/companylogo.jpg" alt="Some Company"/></a>]]></logo>
    I use it in PHP page like this: <td>{logo}</td>
    I get it output in Browser as a String <a href="http://www.someadress.com"><img src="images/logos/companylogo.jpg" alt="Some Company"/></a>.. However I need it print out as an HTML-element not just a string
    Anybody knows how to solve this?
    Juha

    Hi Juha.
    Please have a look at the following.
    This is the XML file called info.xml:
    <?xml version="1.0" encoding="utf-8"?>
    <companies>
        <company>
            <name>Acme Pty Ltd</name>
            <address>23 Rue de Quebec</address>
            <city>Tinseltown</city>
            <website>http://www.acmeptyltd.com</website>
            <logo>logo_acme.jpg</logo>
        </company>
        <company>
            <name>Ajax Cor</name>
            <address>Amsterdamschestraat 203b</address>
            <city>Oranjestadt</city>
            <website>http://www.ajaxbros.com</website>
            <logo></logo>
        </company>
    </companies>
    This is the HTML-markup
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled</title>
    <style>
    .MasterDetail {
        font: 100% Verdana, Geneva, sans-serif;
        margin: 2px;
    .MasterDetail .MasterContainer {
        background-color: #EAEAEA;
        border: 1px solid gray;
        width: 35%;
        float: left;
        overflow: hidden;
    .MasterDetail .MasterColumn {
        font-size: 75%;
        background-color: #CCCCCC;
        padding:5px;
        cursor:pointer;
    .MasterDetail .MasterColumnHover {
        background-color: #EAEAEA;
    .MasterDetail .MasterColumnSelected {
        background-color:#848484;
        color: white;
    .MasterDetail .DetailContainer {
        border: 1px solid gray;
        padding:10px;
        width: 60%;
        float: right;
        overflow: auto;
    .MasterDetail .DetailColumn {
        margin-bottom: 1px;
    </style>
    <script src="SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var ds1 = new Spry.Data.XMLDataSet("info.xml", "companies/company");
    //-->
    </script>
    </head>
    <body>
    <div class="MasterDetail">
      <div spry:region="ds1" class="MasterContainer">
        <div class="MasterColumn" spry:repeat="ds1" spry:setrow="ds1" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected">{name}</div>
      </div>
      <div spry:detailregion="ds1" class="DetailContainer">
        <div class="DetailColumn" spry:if="'{logo}'"><a href="{website}"><img src="{logo}" alt="{name}"/></a></div>
        <div class="DetailColumn" spry:if="!'{logo}'">{name}</div>
        <div class="DetailColumn">{address}</div>
        <div class="DetailColumn">{city}</div>
      </div>
      <br style="clear:both" />
    </div>
    </body>
    </html>
    I hope this helps.
    Ben

  • HTML tags in XML document

    I have an application that loads information from an XML file
    and displays in a dynamic text box. That works great. Now, I want
    to add HTML tags to the information in the XML file so the dynamic
    text box will format it. If I add straight html:
    <Answer1>of earth, <b>air</b>, fire, and
    water.</Answer1>
    I get a null displayed in the text box. If I encode
    <Answer1>of earth,
    &gt;b&lt;air&gt;/&lt;, fire, and
    water.</Answer1>
    Then it displays
    of earth, <b>air</b>, fire, and water.
    Any help on how to embedded html code into an XML document so
    a dynamic text box uses the html code?
    Thanks.

    Just use CDATA tags around your HTML values, eg:
    <Answer1><![CDATA[of earth, <b>air</b>,
    fire, and water.]]></Answer1>
    HTH.

  • HTML Tag in Xml

    Hi ,
             i want to render the xml data on my textfield. but it does not support  all the html text given by the " upcoming xml from server".so how to do that , because i want to display the same format of text as it showing on the server side using those Html tag.So waht approach i should follow to do this ,please help me...

    What is the text given by the " upcoming xml from server"?  What html elements are involved?

  • Using HTML tags in XML

    Trying to bring in an xml document that contains HTML tags but I can't seem to get it working.
    I have a bit of AS and a basic text field in a movie clip for now. I've pared it down as simply as I can to the following AS:
    var languageXML:XML = new XML();
    var nav:Array = new Array();
    languageXML.ignoreWhite = true;
    languageXML.load("code.xml");
    languageXML.onLoad = function(success) {
        var currentNavNode:XMLNode = this.firstChild.firstChild;
        var i:Number = 0;
        for (var childNode = currentNavNode; childNode != null; childNode=childNode.nextSibling, i++) {
            for (var stringNode:XMLNode = childNode.firstChild; stringNode != null; stringNode=stringNode.nextSibling, j++) {
                _root.feature0 = stringNode.firstChild.nodeValue
        //all the xml has now loaded so we're good to kick off the full nav
        _root.textWin.myText.html = true;
        _root.textWin.myText.htmlText = _root.feature0;
    Whilst my XML doc looks like this:
    <?xml version="1.0" encoding="utf-8"?>
    <feed>
    <item>
        <body><![CDATA[This<br>Should<br><br>Be fine.]]></body>
    </item>
    </feed>

    does trace(_root.textWin.myText+" "+_root.textWin.myText.multiline) show that you have a multline textfield?  if not, fix that.

  • Filting html tags, css, and javascript with regex

    hi everyone,
    im writing a small application where a user types in a url, and the text of the webpage is displayed in a text area.
    ive got it to work, however it takes some time, and also alot of content i dont want is displayed - tags, scripts and sometimes css.
    initally i filtered out the html tags with a regular expression, but i still get alot of unwanted content.
    im not a confident java programmer, and the idea of parsing html, css and javascript is the scariest idea ever to me, so my next idea is to keep only everything between the <body> tags - everything above and below it is deleted - hopefully that should leave me only with the visible content on the site.
    ive messed around with regular expressions but i cant get it to work, can anyone help out?
    thanks alot,
    Torre

    Darryl.Burke wrote:
    I tried out the regexes I posted on the source of a forum page, which is not valid html (contains two each opening and closing body tags). With a bit of trial and error I was able to remove everything upto the first, and not the second, opening tag by using a reluctant qualifier, ^.*?, but couldn't for the life of me achieve removal of only the last closing tag, leaving the other, invalid one intact. How would you do that?Regexes always try to match the first occurrence of whatever they're looking for (the sentinel), and there's no way to change that behavior (but it would be handy if you could). What you have to do instead is make sure the rest of the regex can't match the sentinel. For that you need lookahead, and the simplest way to use it is to scan the rest of the text looking for the sentinel and, if it doesn't find one, go ahead and gobble up the remaining text: "(?is)</body>(?!.*</body).*$" However, if there are many occurrences of the sentinel, you could take a serious performance hit. Here's a much more efficient way: "(?is)</body>(?:[^<]++|<(?!/body>))*+$" After matching the sentinel, this regex gobbles up anything that's not the first character of the sentinel, or the first character as long as it isn't followed by the remaining characters of the sentinel. The advantages of this regex are that it never has to backtrack, and the lookahead is only applied when it's necessary, where the first regex applies it every time.

  • HTML tags inside XML

    I am using jsp to read a xml file and display it on the browser. Some of the elements of this xml file have html tags embedded inside them. Right now when I use a <x:out ...>, I get only the text from the element and the html tags get ignored. How do get the html tags to also work?
    example
    <ELEM1>
    For any questions <b>contact</B> us at e-mail
    <ELEM1>

    Set xslt output as html/text.
    <xsl:output method="html/text" />
    <xsl:copy-of select="ELEM1"/>

  • Putting Rectangle On top of Frame With Multiple Panels

    Ok, I can't Figure out how place a Black Rectangle that Covers The whole Frame, while the frame contains 3 panels (for example).
    Here is what I tried to do.
    import javax.swing.*;
    import java.awt.Color;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    * @author Sammy
    public class TestEngine {
    private JPanel pnl;
      private Graphics g;
        private JPanel pnl1;
        private JPanel pnl2;
       public static void main(String[] args) {
       TestEngine test =  new TestEngine();
                test.gui();
       public void gui (){
           JFrame frame = new JFrame("Aurora Engine -- 1.0 Test  ");
           frame.setSize(400, 400);
           frame.setVisible(true);
           frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
           frame.setLocationRelativeTo(null);
           pnl = new JPanel();
           pnl1 = new JPanel();
           pnl2 = new JPanel();
        frame.add(pnl);
        frame.add(pnl);
        frame.add(pnl2);
        g = frame.getGraphics();
        Graphics2D g2 = (Graphics2D) g;
                g2.drawRect(0, 0, pnl.getWidth(), pnl.getHeight());
                g2.setColor(Color.BLACK);
                g2.fillRect(1, 1, pnl.getWidth(), pnl.getHeight());
            frame.paint(g2);
    }

    1. Don't do any custom painting in a top level window. Use a JComponent or JPanel.
    2. Never never never use getGraphics in custom painting. Use an override to a painting method.
    how place a Black Rectangle that Covers The whole Frame, while the frame contains 3 panels (for example).Place the 3 panels in a parent panel with a paint() override that invokes the super implementation and then draws the rectangle. For example:import java.awt.*;
    import javax.swing.*;
    public class OvalOverlay {
      public static void main(String[] args) {
        SwingUtilities.invokeLater(new Runnable() {
          @Override
          public void run() {
            new OvalOverlay().makeUI();
      public void makeUI() {
        JPanel outer = new JPanel(new GridLayout(2, 2)) {
          @Override
          public void paint(Graphics g) {
            super.paint(g);
            g.setColor(Color.RED);
            g.fillOval(50, 50, getWidth() - 100, getHeight() - 100);
        Color[] backgrounds = {Color.YELLOW, Color.GREEN, Color.CYAN, Color.ORANGE};
        for (Color background : backgrounds) {
          JPanel inner = new JPanel();
          inner.setBackground(background);
          outer.add(inner);
        JFrame frame = new JFrame();
        frame.add(outer);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setSize(400, 400);
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
    }db

  • Remove XML tags from XML element in Oracle

    Hi,
    I have a requirement where I have to remove all the xml tags from xml element with banks, currently I'm using replace 4 times to replace all different types of xml tags, performance is really bad. is there any better option to remove xml tags from xml data leaving the actual data. please find the example data below.
    select
    TO_CLOB(REPLACE(REPLACE(REPLACE(REPLACE
    ('<Concatcolumn><ConcatGroupID>MyText Data goes here </ConcatGroupID><ConcatGroupID>Data agian</ConcatGroupID></Concatcolumn>','<ConcatGroupID>'),'<Concatcolumn>'),'</ConcatGroupID>',';'),';</Concatcolumn>')) AS Concatcolumn
    from dual
    **************Out put*************
    MyText Data goes here ;Data agian

    One way is to use xquery:
    SQL> with t as
    select xmltype('<Concatcolumn>
                          <ConcatGroupID>MyText Data goes here </ConcatGroupID><ConcatGroupID>Data agian</ConcatGroupID></Concatcolumn>'
       ) xml from dual
    select xmlquery('string-join(//text(), ";")' passing xml returning content).getclobval() xml from t
    XML                                                              
    MyText Data goes here ;Data agian                                
    1 row selected.

  • Html tag parsing

    I have a jsp page with a form in it. In form there is a text area where
    user can put html tag and also regular text:
    such as :
    testing the tag <b> Hello </b>
    I want to write a servlet which will get the form's input and make sure
    that all the html tags are properly closed and also it has to deal with <a href = ....> stuff...I used string tokenizer but it has multiple limitation ....any idea or clue would be delightful !!
    Thanks.

    You could try my HTML parser which I made available on these forums a while ago:
    http://www.renegadeinternet.com/temp/htmlparser.zip
    It can detect syntax errors like tags not being opened or closed properly. However, it won't clean them up for you. If you want it cleaned up automatically consider using JTidy instead:
    http://sourceforge.net/projects/jtidy/
    That said, the source code, compiled classes, and javadoc are all included in that htmlparser.zip file. A few quick examples are provided to give you a jump start. One of the examples goes through a document and looks for <A> tags and prints out the value of their href attribute. If you're checking for links, that may be a good base to start with.

Maybe you are looking for

  • Customer Downpayment Request Missing

    Hello, I generated a down payment request through VF01 and in the order document flow, that down payment request showed up. But in customer account FBL5N, even I chose noted items, that request was missing.  So now I couldn't clear down payment. What

  • How to use customer-specific fields with FI-CA event 940?

    The following text can be found under FI-CA event 940: You can also set customer-specific fields if you have defined the predefined include for customer enhancements CI_FKK_ACCIT_CUS in the structure FKK_ACCIT_CUS. The fields included here must have

  • Iphone3G Cannot Hear the Caller... Even the Mobile Phone Cannot Fix it...

    Hi everyone! I cannot hear the callar in my Iphone 3G 8GB ... I put it to the mobile phone shop to repair... but even they installed the new little voice speaker (in the top of the iphone)... the iphone still does not have any voice from the caller..

  • Creating a Physical Standby Database using OEM GC

    This Paper is about the creation of a physical Stanby Database using OEM GC. You will see that there is really nothing to it and using the Data Guard Broker, performing a switchover is as easy as 1,2,3,. BTW, this works in both OEM GC 10.2.0.5 and 11

  • Return delivery in subcontracting

    Dear all, I have created a subcontracting PO. Migo is done and the finished assembly material is subject to quality management. When I am posting a return delivery of the finihed product in QA11 or QA32 , system gives the error message no LB 031 " Of