Modify HTML Tags in memory

Hello all,
Not sure if this is the right forum... but...
I need to be able to parse an HTML document (which I won't have created) looking for certain tags and modify them as required. The specific situation is a web based mail client which needs to render images which have MIME part references as their "src" attribute.
I have looked at the javax.swing.text.html.HTMLEditorKit apis but they don't seem to support the aleration of HTML data on the fly, only the interpretation of it.
I basically need to change the value of the src attribute for any "img" tags which use a MIME part reference as the src without altering the rest of the HTML content whatsoever.
Anyone know of a good approach and/or open source library for this type of work? I could write my own but it seems like a common sort of issue to me.
I have already looked at:
http://www.apache.org/~andyc/neko/doc/html/
http://hotsax.sourceforge.net/
http://jtidy.sourceforge.net/
http://jerichohtml.sourceforge.net/
http://tertius.org/software/javahtml/
http://htmlparser.sourceforge.net/
None of which really appeal
Thanks

If it were me I would just use JTidy to make the HTML into XHTML, then I would write an XSL transformation to do whatever it is you need done to those attributes. But that would have the side effect of cleaning up the HTML, whereas your requirements seem to require preserving its crappiness. If it were me, I would work on relaxing this part of the requirements so as to prevent me from having to find a suitable HTML parser.

Similar Messages

  • How do I modify a Html tag attribute?

    Hi.
    I tryed to modify the witdth and height attributes of <applet> tag but I have not obtained it. I run this:
    import java.io.*;
    import javax.swing.text.*;
    import javax.swing.text.html.*;
    import javax.swing.text.html.parser.*;
    class OtraPrueba{
         public static void main(String[] args){
              String infile = "c:\\Page1.htm";
              String outfile = "c:\\outPage1.htm";
              String applethtml = "<applet code=\"class1.class\" codebase=\"v_10\" width=\"100\" height=\"100\" archive=\"class1.zip\"";
              Reader r;
              Writer w;
              HTMLDocument htmldoc;
              HTMLEditorKit kit = new HTMLEditorKit();
              HTMLEditorKit.ParserCallback callback =          
                   new HTMLEditorKit.ParserCallback(){
                        public void handleText(char[] data, int pos){
                             for(int i=0;i<data.length;i++)
                                  System.out.println ("data[" + i + "]" + data);
                        public void handleStartTag(HTML.Tag t, MutableAttributeSet a, int pos){
         System.out.println ("handleStartTag " + t);
         if (t == HTML.Tag.APPLET){
              a.removeAttribute(HTML.Attribute.WIDTH);
              a.addAttribute(HTML.Attribute.WIDTH, "100");
              try{
                   r = new FileReader(infile);
                   w = new FileWriter(outfile);
                   System.out.println ("antes del parser");
                   new ParserDelegator().parse(r, callback, false);               
    Can you help me?
    Thanks.

    Hello uhilger.
    I do it what you tell me last week but I get a NullPointerException at write the document extends HTMLDocument. It seems tries to write a empty tag. this is the exception text:
    _______________________exception text_____________________________
    java.lang.NullPointerException
    at javax.swing.text.AbstractWriter.write(AbstractWriter.java:489)
    at javax.swing.text.html.HTMLWriter.emptyTag(HTMLWriter.java:315)
    at javax.swing.text.html.HTMLWriter.write(HTMLWriter.java:187)
    at javax.swing.text.html.HTMLEditorKit.write(HTMLEditorKit.java:289)
    at Editor.setAppletAttributes(Editor.java:1017)
    at Editor.saveMenuItemActionPerformed(Editor.java:535)
    at Editor.access$13(Editor.java:24)
    at Editor$14.actionPerformed(Editor.java:421)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:17
    67)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstra
    ctButton.java:1820)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
    .java:419)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257
    at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1
    092)
    at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseRelease
    d(BasicMenuItemUI.java:932)
    at java.awt.Component.processMouseEvent(Component.java:5021)
    at java.awt.Component.processEvent(Component.java:4818)
    at java.awt.Container.processEvent(Container.java:1380)
    at java.awt.Component.dispatchEventImpl(Component.java:3526)
    at java.awt.Container.dispatchEventImpl(Container.java:1437)
    at java.awt.Component.dispatchEvent(Component.java:3367)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3214
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2929)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2859)
    at java.awt.Container.dispatchEventImpl(Container.java:1423)
    at java.awt.Window.dispatchEventImpl(Window.java:1566)
    at java.awt.Component.dispatchEvent(Component.java:3367)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
    read.java:190)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
    ad.java:144)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
    ___________________end_exception text_____________________________
    I make a subclass of HTMLDocument with name EditableHTMLDocument :
    import javax.swing.event.*;
    import javax.swing.text.*;
    import javax.swing.text.html.HTMLDocument;
    class EditableHTMLDocument extends HTMLDocument{
         public void addAttributes(Element e, AttributeSet a) {
              if ((e != null) && (a != null)) {
                   try {
                        writeLock();
                        System.out.println("SHTMLDocument addAttributes e=" + e);
                        System.out.println("SHTMLDocument addAttributes a=" + a);
                        int start = e.getStartOffset();
                        javax.swing.text.AbstractDocument.DefaultDocumentEvent changes =
                        new javax.swing.text.AbstractDocument.DefaultDocumentEvent(start, e.getEndOffset() - start,
                             DocumentEvent.EventType.CHANGE);
                        AttributeSet sCopy = a.copyAttributes();
                        MutableAttributeSet attr = (MutableAttributeSet) e.getAttributes();
                        changes.addEdit(new AttributeUndoableEdit(e, sCopy, false));
                        attr.addAttributes(a);
                        changes.end();
                        fireChangedUpdate(changes);
                        fireUndoableEditUpdate(new UndoableEditEvent(this, changes));
                   }finally {
                        writeUnlock();
    And this is the method of program main class than call you addAttributes method:
         private void setAppletAttributes(){
              BufferedReader br;
              BufferedWriter bw;
              HTMLDocument htmlDoc;
              EditableHTMLDocument editHtmlDoc;
              HTMLEditorKit kit = new HTMLEditorKit();
              try{          
                   br = new BufferedReader( new FileReader( jTxtHtmlFile.getText() ) );
                   //htmlDoc = (HTMLDocument)kit.createDefaultDocument ();
                   editHtmlDoc = new EditableHTMLDocument();
                   kit.read (br, editHtmlDoc, 0);
                   br.close ();
                   javax.swing.text.Element rootElem = editHtmlDoc.getDefaultRootElement ();
                   javax.swing.text.Element elem =
                        editHtmlDoc.getElement (rootElem, HTML.Attribute.CODEBASE, jTxtCodebase.getText ());
                   SimpleAttributeSet sas = new SimpleAttributeSet();
                   sas.addAttribute ( HTML.Attribute.CODE, jTxtCode.getText () );
                   sas.addAttribute ( HTML.Attribute.CODEBASE, jTxtCodebase.getText () );
                   sas.addAttribute ( HTML.Attribute.ARCHIVE, jTxtArchive.getText () );
                   sas.addAttribute ( HTML.Attribute.WIDTH, jTxtAnchoApplet.getText () );
                   sas.addAttribute ( HTML.Attribute.HEIGHT, jTxtAltoApplet.getText () );
                   editHtmlDoc.addAttributes (elem, sas);
                   editHtmlDoc.dump (System.out);
                   bw = new BufferedWriter( new FileWriter( jTxtHtmlFile.getText() ) );
                   System.out.println ("length " + editHtmlDoc.getLength ());
                   kit.write (bw, editHtmlDoc, 0, editHtmlDoc.getLength ());
                   bw.flush ();
                   bw.close ();
              }catch(BadLocationException ble){
                   System.out.println ("BadLocationException " + ble.getMessage());     
    }catch(FileNotFoundException fnfe){
                   System.out.println ("FileNotFoundException " + fnfe.getMessage());     
              }catch(IOException ioe){
                   System.out.println ("IOException " + ioe.getMessage());
    Which you think that it is the problem?
    Thank you.
    Sergio Mart�n
    I visited your great page and download your SimplyHTML. I'll probe later.

  • Help needed in formating the text using HTML tags in reports 10g

    Hi all,
    I have a situation here. We have an application which prints out Reports with a few lines of text in it. This text is entered by the user through our forms application in a field. That particular text is stored in each row of a particular long column. Here I want to modify the text, while printing, on the report like underline, bold, italics etc,.
    As of now I am using the HTML tags, in the forms, to do so as most the times the text in the report is same.
    I want to know if this can be done by the user itself while he is entering the data in the field through the form.
    Thanks in advance . I will explain you more clearly if you need.

    Hi,
    The code did work. But I am not sucessfully able to display the values entered in 2nd page in the 3rd page.Please find the code below:
    <html>
    <head>
    <script language="LiveScript">
    function WinOpen() {
    if (document.form1.cap.value == "")
    alert("Enter value in text box");
    return;
    msg=open("","DisplayWindow","toolbar=no,directories=no,menubar=no, scrollbars=yes");
    msg.document.write("<HTML><HEAD><TITLE>Yo!</TITLE></HEAD>");
    msg.document.write("<CENTER><h1><B>This is really cool!</B></h1></CENTER>");
    msg.document.write('<BODY><form name="form2">');
    for(var i =0; i < document.form1.cap.value; i++)
    msg.document.write("<INPUT type=text name=tbAlphaNumeric>");
    msg.document.write("<br>");
    msg.document.write('<input type="button" name="Button2" value="Steal" onClick="javascript:window.opener.WinShow();">');
    msg.document.write('</form></BODY></HTML>');
    function WinShow() {
    msg=open("","DisplayWindow","toolbar=no,directories=no,menubar=no, scrollbars=yes");
    msg.document.write("<HTML><HEAD><TITLE>Great!</TITLE></HEAD>");
    msg.document.write("<CENTER><h1><B>Display of second page text elements!</B></h1></CENTER>");
    msg.document.write('<BODY><form name="form3">');
    for(var j =0; j < document.form1.cap.value; j++)
    msg.document.write(document.form2.tbAlphaNumeric[j].value);
    msg.document.write("<br>");
    msg.document.write('</form></BODY></HTML>');
    </script>
    </head>
    <body>
    <form name="form1">
    <INPUT type= "text" name=cap>
    <input type="button" name="Button1" value="Push me" onClick="WinOpen()">
    </form>
    </body>
    </html>

  • XML with HTML Tags... (easy points) 11g question

    Dear Programming Gods,
    I have been researching this for about 2 weeks now, and I have hit the final road block.
    Using BI Publisher 11.1.1
    In APEX 4.0 I have a Rich Text Field. The data from the Rich Text Field is store in CLOB. The data has HTML formatting tags. I have a data model that selects the data. I create an xml which has the html tags. I export the xml and import it into MS Word using the BI Publisher add-in. I import my subtemplate which handles almost all of the formatting tags. I apply the template to the CLOB field so that the HTML formatting tags will be rendered when printed.
    The problem is this. The subtemplate is looking for this < and / > however BI publisher convters the tags stored in the CLOB from raw html tags to this &.lt; and &.gt; so the subtemplate can not match to it.
    Here is what I need to figure out and please explain it in very novice terms.
    When I generate and export the XML from BI Publisher how do I prevent it from converting my raw tags?
    Here is some further assistance when prepairing your answer.
    My subtemplate is based on the htmlmarkup.xsl from the following blog but has been modified heavily to include support for simple tables, more formatting such as subscripts and superscripts, ect...
    http://blogs.oracle.com/xmlpublisher/2007/01/formatting_html_with_templates.html
    I am also familliar with this blog but I do not understand how to implement it using BI 11g.
    http://blogs.oracle.com/xmlpublisher/2009/08/raw_data.html
    I have tried adding this to my layout but it doesnt seem to work.
    <xsl: element name="R_CLOB" dataType="xdo:xml" value="R_CLOB" / >
    Please, help me. I have to have this working in 4 days.
    Richard

    This did not work either. Here's more infor on what I have so far.
    My data template looks like this:
    <dataTemplate name="Data" description="Template">
         <parameters>
              <parameter name="p_person_id" dataType="character" defaultValue="1"/>
         </parameters>
         <dataQuery>
              <sqlStatement name="Q1">
                                  select TEMPORARY_TEMPLATE_DATA.line_id as LABEL_line_ID,
    TEMPORARY_TEMPLATE_DATA.column_id as LABEL_column_ID,
    TEMPORARY_TEMPLATE_DATA.person_id as LABEL_PERSON_ID,
    TEMPORARY_TEMPLATE_DATA.label as LABEL_DATA
    from MY_BIO.clm_TEMPORARY_TEMPLATE_DATA TEMPORARY_TEMPLATE_DATA
    Where person_id = :p_person_id
    and style = 'L'
                             </sqlStatement>
              <sqlStatement name="Q2" parentQuery="Q1" parentColumn="LABEL_DATA">
                                  select TEMPORARY_TEMPLATE_DATA.LINE_ID as LINE_ID,
    TEMPORARY_TEMPLATE_DATA.COLUMN_ID as COLUMN_ID,
    TEMPORARY_TEMPLATE_DATA.label as COLUMN_LABEL,
    to_nclob(TEMPORARY_TEMPLATE_DATA.COLUMN_DATA) as  COLUMN_DATA,
    TEMPORARY_TEMPLATE_DATA.STYLE as STYLE,
    TEMPORARY_TEMPLATE_DATA.ATTRIBUTE as ATTRIBUTE,
    NVL(TEMPORARY_TEMPLATE_DATA.JUSTIFY,'L') as JUSTIFY
    from MY_BIO.clm_TEMPORARY_TEMPLATE_DATA TEMPORARY_TEMPLATE_DATA
    Where person_id =:p_person_id
    and label = :LABEL_DATA
    and style != 'L'
    Order by line_id, column_id
                             </sqlStatement>
         </dataQuery>
         <dataStructure>
              <group name="G_LABEL" source="Q1">
                   <element name="LColumnData" value="label_data"/>
                   <group name="G_DATA" parentGroup="G_Label" source="Q2">
                        <element name="LineID" value="line_id"/>
                        <element name="ColumnID" value="column_id"/>
                        <element name="ColumnData" value="column_data"/>
                        <element name="Style" value="style"/>
                        <element name="Attribute" value="attribute"/>
                        <element name="Justify" value="justify"/>
                   </group>
              </group>
         </dataStructure>
    </dataTemplate>
    After running this data_template there was no change in the xml file generated see partial :  Note:
    my test actually has the B with the html tags
    </G_DATA>
    - <G_DATA>
    <LINEID>20</LINEID>
    <COLUMNID>1</COLUMNID>
    <COLUMNDATA>test test <B>my test</B></COLUMNDATA>
    <STYLE>R</STYLE>
    <ATTRIBUTE />
    <JUSTIFY>C</JUSTIFY>
    </G_DATA>
    - <G_DATA>
    <LINEID>21</LINEID>
    I loaded in to MS Word but there was no change documnet still look the same. I left the commands import file command and xsl:apply-templates command in the word document template.
    I really appreciate you helpiing me.
    cheryl

  • Tablespace usage report generated with html tags instead of text

    Hi ,
    We have a unix shell script scheduled to find tablespace usage and sends the report to our mail id.
    For the past few weeks(no changes idone in the script) the report is coming with html tags instead of text as below.
    </head>
    <body>
    <p>
    <table border='1' width='90%' align='center' summary='Script output'>
    <tr>
    <th scope="col">
    TABLESPACE_NAME
    </th>
    <th scope="col">
    CUR_USE_MB
    </th>
    <th scope="col">
    CUR_SZ_MB
    </th>
    <th scope="col">
    CUR_PRCT_FULL
    </th>
    <th scope="col">
    FREE_SPACE_MB
    </th>
    <th scope="col">
    MAX_SZ_MB
    </th>
    <th scope="col">
    OVERALL_PRCT_FULL
    </th>
    </tr>
    <tr>
    <td>
    SYSTEM
    </td>
    <td align="right">
    268
    </td>
    <td align="right">
    500
    </td>
    <td align="right">
    54
    </td>
    Is this any settings issue or anything to be modified in the script.Could you please reply..
    Regards,
    Bharath.
    Edited by: 870384 on Jul 6, 2011 1:17 AM

    Hi Sven W,
    Please find the sql below that is generating the tablespace usage report. In the staring of the script markup is set to ON and at the end it is set to OFF.Do you suggest any changes to this..?
    SET ECHO OFF
    SET PAGES 999
    SET MARKUP HTML ON SPOOL ON
    col tablespace_name format a15 trunc
    col cur_use_mb for 999999999
    col cur_sz_mb for 999999999
    col free_space_mb for 999999999
    col max_sz_mb for 999999999
    compute sum of cur_use_mb on report
    compute sum of cur_sz_mb on report
    compute sum of free_space_mb on report
    compute sum of max_sz_mb on report
    break on report
    spool tablespace.html
    select tablespace_name,
    round(sum(total_mb)-sum(free_mb),2) cur_use_mb,
    round(sum(total_mb),2) cur_sz_mb,
    round((sum(total_mb)-sum(free_mb))/sum(total_mb)*100) cur_prct_full,
    round(sum(max_mb) - (sum(total_mb)-sum(free_mb)),2) free_space_mb,
    round(sum(max_mb),2) max_sz_mb,
    round((sum(total_mb)-sum(free_mb))/sum(max_mb)*100) overall_prct_full
    from (select tablespace_name,sum(bytes)/1024/1024 free_mb,0 total_mb,0 max_mb from DBA_FREE_SPACE group by tablespace_name
    union select tablespace_name,0 current_mb,sum(bytes)/1024/1024 total_mb,sum(decode(maxbytes, 0, bytes, maxbytes))/1024/1024 max_mb
    from DBA_DATA_FILES group by tablespace_name) a group by tablespace_name;
    select owner,segment_name,segment_type,bytes/(1024*1024) size_m
    from dba_segments
    where tablespace_name = 'SYSTEM' and segment_name='FGA_LOG$' order by size_m desc;
    spool off;
    SET MARKUP HTML OFF SPOOL OFF

  • Smartform with text containing html tags

    I am reading from a table that contains html tags like
    <br>
    <menu>
    <LI type="disc">This is a line which contains html tags
    that goes over to 2nd line
    <LI type="disc"> This is also another line which contains html
    tags.
    and each line is stored in a different row. The customer has agreed to use only 3 of the above html tags (
    <br>, <menu> and <LI type="disc">
    When the output is previewed in smartforms, the html tags needs to be formatted and not print in raw format as follows: 
    <LI type="disc">This is a line which contains html tags
       that goes over to 2nd line
    <LI type="disc"> This is also another line which contains html
       tags.
    How can this be done ?

    ok understood...
    you can try this
    Loop at i_html into wa_html.
    tmp = strlen( wa_html-line).
    do tmp times.
    if wa_html-line+0(1) = <
    l_start = 1.
    __elseif wa_html-line+0(1) = >
    l_start = 0.
    concatenate l_char wa_html-line+0(1) into l_char.
    endif.
    if l_start = 1.
    concatenate l_char wa_html-line+0(1) into l_char.
    wa_html-line = wa_html-line+1(l_tmp - sy-index) OR use the keyword SHIFT LEFT...plz chk the syntax
    elseif l_start = 0 and l_char = <LItype=disc>
    concatenate <BULLET>  wa_html-line into  wa_html-line separated by space.
    endif.
    enddo.
    modify i_html form wa_html.
    endloop.
    now u define two text element one with bullet and another without bullet. this is how u insert bullet:
    goto to the texteditor of a text element in smartform. Its a small button on the left hand side of.
    Then goto insert>characters>sap symbols.
    for ur requirement u can use the symbol SYM_FILLED_CIRCLE.
    Remember these icons or symbols whatever u will not be able to see in print preview....u have to take a print
    and see
    Now at the time of display check if the line contains the
    tag <BULLET> ( if wa_html-line+0(8) = '<BULLET>')
    if the line has the tag then display ur text in the text element with bullet
    otherwise
    display it in the non bullet text element..
    remeber to remove the tag before dispalying
    hope this solves ur prob...

  • Why there is a difference in a "class" attribute value of html tag when viewed in "Page Source" and using "Inspector", I am refering to new Microsoft site?

    While inspecting the new Microsoft site source, I observed that the "class" attribute value of the "html" tag when seen in Page Source the value given by Tools/Web Developer/Inspect tool. Value with the tool indicates class="en-in js no-flexbox canvas no-touch backgroundsize cssanimations csstransforms csstransforms3d csstransitions fontface video audio svg inlinesvg" while that is given in Page Source is class="en-us no-js"
    The question is why different values are shown?

    Inspector is showing you the source after it's been modified by Javascript and such.
    To see the same thing in the source viewer, press '''Ctrl+A''' to select everything on the page, then right-click the selection and choose '''View Selection Source'''.

  • Handling HTML Tags in ADOBE Forms

    Hi,
    We are trying to develop a PI  sheet in ADOBE form  using a XML file.While doing this we are facing some problems with HTML tags.
    <b>- <TEXTOUTPUT id="O.0020.0004.0003" domain="PPPI_FRAGMENT_HTML" customtype="SAPOUTPUT" format="CHAR" domformat="C" mimetype="" constant="true" position="0003">
      <LABEL>SXS documentation</LABEL>
      <TIP>HTML Fragment</TIP>
    - <VALUE>
    - <![CDATA[
    <h5><u>Remarks:</u></h5>
    The following features allow to reduce the input of invalid data:
    <ul>
    <li>Default values</li>
    <li>Input validation</li>
    <li>Error handling</li>
    </ul>
    <ul>
    <li>For the output of objects (via URL) it is necessary to adapt the XSL style sheet (so you can play AVI files, MP3, WAV files etc.):
    <ul>
    <li>In this case copy the SAP standard XSL style sheet to a Z- style sheet and modify it.</li>
    <li>At the moment the Windows Media Player is referenced in the SAP standard XSLas an example. If you want to play data files that aren't supported by the Media Player, reference a different application</li>
    <li>The current SAP style sheets support displaying of AVI files. To test it please assign an URL to an AVI file to the corresponding XStep parameter or add it directly to the output element for the object.</li>
    <li>As an example you can use the <i>SXS library.AVI</i> file of the SXS Library package. Store it in your local hard disk (C:\)</li>
    </ul>
    </li>
    <li>For the output of the JPG image you have to change the URLs that are set as a default.</li>
    </ul>
      ]]>
      </VALUE>
      </TEXTOUTPUT></b>
    Can somebody please help us in displaying this HTML in Adobe Form with effect of the above mentioned HTML tags.
    Thanks,
    Prathibha.

    Hi,
    Forms is a Java Applet on the client that doesn't knwo about html tags. If you need to upload file, then WebUtil is what you need to configure.
    Frank

  • [svn:fx-trunk] 11664: Update ASDoc comments on new MXItemRenderer classes, and fix a broken HTML tag in Range.as

    Revision: 11664
    Author:   [email protected]
    Date:     2009-11-11 11:42:00 -0800 (Wed, 11 Nov 2009)
    Log Message:
    Update ASDoc comments on new MXItemRenderer classes, and fix a broken HTML tag in Range.as
    QE notes: -
    Doc notes: -
    Bugs: -
    Reviewer: -
    Tests run: - Checkintests
    Is noteworthy for integration: No
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/dataGridClasses/MXDataGridItemRe nderer.as
        flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/listClasses/MXItemRenderer.as
        flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/treeClasses/MXTreeItemRenderer.a s
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Range.as

    Revision: 11664
    Author:   [email protected]
    Date:     2009-11-11 11:42:00 -0800 (Wed, 11 Nov 2009)
    Log Message:
    Update ASDoc comments on new MXItemRenderer classes, and fix a broken HTML tag in Range.as
    QE notes: -
    Doc notes: -
    Bugs: -
    Reviewer: -
    Tests run: - Checkintests
    Is noteworthy for integration: No
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/dataGridClasses/MXDataGridItemRe nderer.as
        flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/listClasses/MXItemRenderer.as
        flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/treeClasses/MXTreeItemRenderer.a s
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Range.as

  • [svn:fx-trunk] 5289: Fix for - HTML tags in span tags in ASdoc comments not being parsed correctly.

    Revision: 5289
    Author: [email protected]
    Date: 2009-03-12 21:09:58 -0700 (Thu, 12 Mar 2009)
    Log Message:
    Fix for - HTML tags in
    tags in ASdoc comments not being parsed correctly.
    QE Notes: Some baseline will require update.
    Doc Notes: None.
    Bugs: SDK-19815
    tests: checkintests, asdoc
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-19815
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocUtil.java

    Resize/re-scale & optimize all images for the web in your graphics editor before you insert them into your web pages.  Saves bandwidth and reduces page load.
    Cycle2 is a responsive slideshow.  If you want all images to remain 400px and not responsive to layout,  you'll need to modify the CSS code a little.
    Details on using Previous & Next links are in the documentation.
    http://jquery.malsup.com/cycle2/demo/prevnext.php
    Nancy O.

  • Replace HTML tags in RTE

    Hi All,
                   I've requirement that I need to replace the html tags in RTE, I checked find and replace plugin, which only replace the text not the tags. The CQ.form.rte.SearchableDocument returns the plain text. Can anybody tell me how to replace the tags?, is there any existing plugin's available ?
    Thanks in advance
        Ganesh

    Hi Ganesh,
        You can configure the rich text editor to use semantic markup, so that the bold=strong and italic=em will be modified in the html out. Not sure it applies for other tags. Give a try.
    http://forums.adobe.com/message/4652639#4652639
    Thanks,
    Sham

  • [svn:fx-trunk] 10157: Fixed HTML tag in ASDoc comment.

    Revision: 10157
    Author:   [email protected]
    Date:     2009-09-11 09:26:03 -0700 (Fri, 11 Sep 2009)
    Log Message:
    Fixed HTML tag in ASDoc comment.
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/events/ChannelFaultEvent.as

    Welcome back everyone.
    Hope you all had good holidays.
    Cheers
    glenn
    tinylion development & design

  • Inserting HTML tag for character style

    I want to be able to use the <DEL> HTML tag around some text:
    <p>Regular Price <del>$395</del>  Today $95</p>
    So, it should look like this:
    Regular Price $395 Today $95
    This works reliably in Dreamweaver (both preview and in various browsers). It also works on this forum page! But I can't get it to work in Muse.
    Here is my test site:
    http://musetest-dec152012.businesscatalyst.com/index.html
    I followed the instructions here:
    http://forums.adobe.com/message/4819276#4819276
    This shows how to add a scroll box using HTML. That works on the test site. I then modified the contents to add <DEL> to the second word and it isn't shown. [I also added <STRONG> to the sixth word and it doesn't show either.]
    I followed the instructions here:
    http://forums.adobe.com/message/4399108#4399108
    This shows how to use a character style. The <MARK> style seems to work, but the <STRONG> style doesn't show up in the browser. Any rate, there is no way I can find to add my own tag and the <DEL> tag is not one of those in the pull down list.

    Iain --
    Muse overrides the default styling for the 'del' and 'ins' tags. If you want to use these tags in custom HTML, and have styling applied to them, you'll have to specify the styling you want with inline CSS, like so:
    <p>Regular Price <del style="text-decoration: line-through">$395</del>  Today $95</p>

  • Help needed in adding effects of certain HTML tags in Flex spark Richtext

    I want to apply the effects of the following HTML tags/ attributes, in my HTML text rendered in Flex Spark Richtext Component.
    Superscript - <sup>
    Subscript - <sub>
    Blockquotes - <blockquotes>
    Ordered Lists - <ol><li>
    Unordered List - <ul><li>
    Horizontal Rule - <hr>
    Direction Attribute for <p> - <p dir="rtl">Hello</p>
    Background Color for <font>
    I have observed that the above tags have no effect in RichText. Is this a limitation?
    Any solutions, tweaks and tricks will be appreciated...
    Thanks,
    Mangirish

    check this out . this should be able to answer you question.
    http://livedocs.adobe.com/flex/3/html/help.html?content=textcontrols_04.html
    Miguel

  • Query to extract HTML tag with data

    Hi All,
    I have a string.
    '<HTML><HEAD>THIS IS HEAD.</HEAD><BODY>THIS IS BODY.<P>THIS IS P1.</P>NIMISH<P>THIS IS P2.</P></BODY></HTML>'
    I want to extract a html tag including its opening & closing tab with data as
    if i say P1
    then the output should be
    '<P>THIS IS P1.</P>'
    for P2
    then the output should be
    <P>THIS IS P2.</P>
    please help me in writing this query with regular expression
    i have tried it as following but it is not giving desired result:
    WITH T AS
    SELECT
        '<HTML><HEAD>THIS IS HEAD.</HEAD><BODY>THIS IS BODY.<P>THIS IS P1.</P>NIMISH<P>THIS IS P2.</P></BODY></HTML>' STR
    FROM   
        DUAL
    SELECT REGEXP_SUBSTR(STR, '<P>.+P2.+</P>') FROM T
    Thanks & Regards
    Nimish GargEdited by: Nimish Garg on May 7, 2012 5:49 PM

    Nimish Garg wrote:
    My requirement is to extract a <tag>data</tag> from a HTML/XML string
    where data contains any specified value.HTML is not XML.
    And that is a critical distinction to make. HTML parsing is horribly complex. XML is quite easy. For HTML you have to code your own parser in PL/SQL. XML can be parsed using the XMLTYPE class/data type in PL/SQL.
    So if you need to find a single specific tag in HTML - I would not try to treat it as XML. I may not even try to use regular expressions.
    I would do a basic substring search for the start of the tag. Read the data following the tag. Ensure that there are no nested or embedded tags in the data. Until the end tag is read. Because HTML is that much abused - and because that is an accepted norm as parsers used by browsers deals with that abuse without complaining.
    Proper HTML is mostly a myth in my experience of "screen scraping" web servers for data extraction as they do not have web services supplying the data.

Maybe you are looking for

  • [b]export data from a table to a csv or .txt file[/b]

    hi plz i need help in how to export data from a table to a csv or .txt file

  • Enterprise Manager 11gR1 Tutorials or Documentation?

    Dear All, Other then Metalink where can I find Oracle Enterprise Manager 11gR1 tutorials and documentation. Especially regarding setting up Streams and Advance Replication through setup option. Thanks, Imran

  • Proft centre error

    hi while goods inward im getting error 'profit centre xxx doesnt exist for 3.12.2007' we maintained profit centre in material, but error showing with other prifit centre number  doesnt exis. plz give me solution urgent, advance thanks, reddy

  • Runtime error : table_invalid_idex When VF03 for cancel billing doc. flow

    Dear Gurus, i'm facing a problem, when i want to display document flow for my cancel billing was getting error. Dump analysis : 602                     PERFORM vbfa_tab_append. 603                     EXIT. 604                   ELSE. 605            

  • Web dynpro ALV

    Hi All, I have created an editable ALV grid within my ABAP web dynpro application, but what i want to do now is make one of the editable fields a drop down of options(like UI element dropdownbyindex) rather than having to type the entry in or use the