formatting as HTML XML

I tried to teach/familularize me XML (signed for a class), I had a good help so far.

Is it possible to format XML in HTML.

I'll put up a web page, that will explain an actionscript, using the SPRY accordion. The code will be at the level of the label, and an explanation will be at the level of the content. the code and the explanation is stored in an XML file so that you can easily create new pages and make changes.

[will probably use a framework for future projects]

The problem I have is with line breaks

example:

I'll place the copy in the XML file in the tag

Import fl.transitions.Tween;

Fl.transitions.easing import. *;

Import fl.transitions.TweenEvent;

and get this

import fl.transitions.Tween; import fl.transitions.easing. *; import fl.transitions.TweenEvent;

How can I add line breaks or paragraph tags, so it can appear as

Import fl.transitions.Tween;

Fl.transitions.easing import. *;

Import fl.transitions.TweenEvent;

CDATA xml in html formats, so this:


This will give you:

import fl.transitions.Tween; import fl.transitions.easing.*; import fl.transitions.TweenEvent;

because there is that no html line breaks in your xml. While this:


import fl.transitions.easing.*;
import fl.transitions.TweenEvent; ]]>

This will give you:

import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;

Next time try it yourself before asking for confirmation. If there is a problem and then come back, say you tried, post what you've tried has not worked. Do not waste our time for the confirmation of something that you can check yourself. If you find any information little conclusive when you search for a term and then try a different search result. After all, there are literally millions of articles to help you understand.

Tags: Dreamweaver

Similar Questions

  • pdf to txt/html/xml export

    Hello

    I downloaded "acrobat adobe x pro" to try the "save under" / text/xml/htm etc export capability and the result was exactly what I was looking for in terms of production, keeping formatting etc.

    However, I am building an application that need to have a bookcase to the pdf with the conversion of xml/txt/html on the fly keeping the formatting.

    I tried a number of libraries for pdf to xml/txt/html conversion a none of them offer anything near what acrobat from adobe pro x done in terms om keeping format/tables etc.

    So my question is how to get to the "save under" / export feature in adobe acrobat x pro in any library official adobe, sdk, service, product, etc. because I assume that acrobat x pro does not expose an api for the feature to convert or can be used on the server side?

    Best regards

    Rick

    Looks like you want to use Acrobat as a web service. Rather than continue this way, you can see that such use of Acrobat is prohibited under the terms of the license. Thus, it cannot merit to be pursued. Why convert to HTML is a possible question in any case, at least on a regular basis? Occasions, I can understand the need.

    For programmable functions, you should probably check into the SDK forum.

  • I wrote the software for 33 years. I have a lot of apps. I would use html/xml to replace my aging FDI. Firefox is no longer execuate a binary file called directly to Hypertext on the local system. Why?

    I would rather not re - write the old of the IDE I have used for years but rather replace them with the style sheets for xml/html/web. Konqueror is running locally the binary with a launcher script. Firefox, Chrome, re-Konq, WebPositive and IE Explorer will not. If Firefox or SeaMonkey should run my binary that I could easily replace the old of the IDE and myself and my customers save a lot of time and money.

    Firefox does not execute binary files for security reasons. In other words, to prevent novice users to install malicious software.

  • Formatting of HTML reports

    Hello

    I use LabVIEW to generate reports using HTML file. These reports contain plots, images, tables and text blocks. Ideally, I would like all in LabVIEW format so I can't do any post processing of the document. I would like to make some parts bold, underline and vary the size of the font. I can align parts such as headers at the top of the page and footers, but it's her. I would like to have more control on alignment of words, titles, images and paragraphs in the report. However, I was not able to understand this. I feel that I need 'Add user in HTML format in Report VI', but I was not able to use this good apparently.

    Any ideas?

    Thank you

    Try adjusting the text input HTML to add the user as HTML on Report.vi

    [text to write here.]

    Which should right align text in your report.

    There is no move to learn some CSS. The previous link I gave would be very useful.

  • BI Publisher Format maximum number (xml tag)

    Hi guys,.

    I have a problem with finding how to use Number Format for Maximum function so that it can be displayed in Excel.

    Example: -.

    Except output:- (-186.98)

    Here is an example of XML code: -.

    rowset <>

    < ROW > < A11 > - 186.98 < / A11 > < / ROW >

    < ROW > < A11 > - 89.54 < / A11 > < / ROW >

    < ROW > < A11 > - 54.56 < / A11 > < / ROW >

    < ROW > < A11 > - 184.24 < / A11 > < / ROW >

    < / LINES >

    In RTF from now I use <? xdoxslt:maximum (A11)? > and it gives desired result output Excel when I changed the format number in the form field to #, ###.00;(#,###.00)

    Question:- but trying Preview of another PC, is to show the result with media - 186.98 even if the above stated number format.

    So I think to use something like this in the form field:- < fo:bidi -substitute direction = "ltr" unicode-bidi = "bidi-override" > <? format - number:xdoxslt:maximum (A11); ' 0D999PT'? >< / substitute fo:bidi - >

    Please suggest and also let me know if I'm not clear. Thank you much in advance.

    -Raj

  • Excel output format in the xml editor question field

    Hi all

    I have a problem with the release of excel as below.

    I developed a report to xml editor having exit excel, I designed the layout to the rtf model.

    one of the parameters in the report as 11000048,11000050

    so when I check the output excel the above setting is displayed as below.

    1,100,004,811,000,050

    But I need the parameter will be displayed in the format 11000048,11000050 , as written, please help me.

    Thank you

    Please try this

  • Generate the HTML XML table

    Hi all

    In the Sub function I need to add the HEAD and STYLE for HTML tags, but when I try to encode hard, it, it gives me an error of XML parsing.

    Please can you let me know how I can make?

    < html >

    < head >

    < style >

    table, th, td

    {

    border: 1px solid black;

    border-collapse: collapse;

    }

    < / style >

    < / head >

    < body >

    < table style = ' width: 300px ">

    create or replace FUNCTION get_html_report (p_query IN VARCHAR2) IS BACK CLOB

    ctxh dbms_xmlgen.ctxhandle;

    xslt_tranfsorm XMLTYPE.

    l_mail_body CLOB.

    BEGIN

    ctxh: = dbms_xmlgen.newcontext (p_query);

    -XSLT Transformation to HTML

    xslt_tranfsorm: = NEW XMLTYPE (')

    "< xsl: stylesheet xmlns: xsl ="http://www.w3.org/1999/XSL/Transform"version ="1.0">"

    < xsl: template match = "/ rowset" >

    < table >

    < b >

    < xsl: for-each select = "ROW [1] / *" >

    < th > < xsl: value - of select = "name ()" / > < /th > ""

    < / xsl: foreach >

    < xsl: apply-templates / >

    < /tr >

    < /table >

    < / xsl: template >

    < xsl: template match = "ROW" >

    < tr > < xsl: apply-templates / > < /tr >

    < / xsl: template >

    < xsl: template match = "ROW / *" >

    < style td = "" text-align: left; "" > < xsl: value-of select = "'." / > < table > "

    < / xsl: template >

    (< / xsl: stylesheet > ');

    dbms_xmlgen.setnullhandling (ctxh, dbms_xmlgen.empty_tag);

    dbms_xmlgen.setxslt (ctxh, xslt_tranfsorm);

    l_mail_body: = dbms_xmlgen.getxml (ctxh);

    dbms_xmlgen.closecontext (ctxh);

    RETURN l_mail_body;

    END get_html_report;

    First the function doesn't compile, for this reason:

    Given that the style sheet is declared inline literal string, apostrophes must be escaped, or use double quotes:

    Then you get the actual error:

    LPX-00225: element end tag ' xsl: template ' does not match start tag "html" element

    I find it quite explicit, not you?

    You have not closed theTag:

  • Formatting data as xml to consume more time

    Hello

    Database worm: 11.2.0.2.0

    I have a procedure that reads almost 10 000 records of the PL/SQL using the table looping and formatted in XML format using the soap_api package. Add_parameter and is assigned to a variable of clob which works very well. The problem that I'm having, is that it takes more time for the formatting that affects performance. Is there a better way to do to make it faster.

    Any help would be much appreciated.

    Thank you

    Mhand

    OK, thanks for explaining with SAMPLES.

    I may have missed a few rules, but here's how I'd do it.
    The idea is to maximize the use of SQL to benefit from the optimizations based on a game and the recovery of the data.

    create table Table1 (
      col1 varchar2(80)
    , col2 varchar2(80)
    , col3 varchar2(80)
    );
    
    create table Table2 (
      col1 varchar2(80)
    , col2 varchar2(80)
    , col3 varchar2(80)
    , col4 varchar2(80)
    , col5 varchar2(80)
    );
    
    create table Table3 (
      col1 varchar2(80)
    , col2 varchar2(80)
    , col3 varchar2(80)
    , col4 varchar2(80)
    , col5 varchar2(80)
    , col6 varchar2(80)
    );
    
    insert into table1 values( 'in_global_supplier_id',       'number-val', '1001' );
    insert into table1 values( 'in_global_text_suppliertype', 'text-val',   'WS' );
    insert into table1 values( 'in_global_date_created',      'date-val',   '2012-01-03' );
    insert into table1 values( 'in_global_date_salestarted',  'date-val',   '2012-01-15' );
    insert into table1 values( 'in_global_text_active',       'text-val',   'A' );
    
    insert into table2 values( 'entity_supplier',      'supplieritempreference',  'in_supplieritempreference_text_option',      'text-val',   'Y' );
    insert into table2 values( 'entity_supplier',      'supplieritempreference',  'in_supplieritemdiscount_text_option',        'text-val',   'Y' );
    insert into table2 values( 'entity_supplier',      'supplieritempreference',  'in_supplieritemspecialdiscount_text_option', 'text-val',   'N' );
    insert into table2 values( 'entity_supplier', 'supplierauthorizedterms', 'in_suppliercreditperiod_text_option',        'number-val', '60' );
    insert into table2 values( 'entity_supplier', 'supplierauthorizedterms', 'in_supplierpayment_text_option',             'text-val',   'CHQ' );
    insert into table2 values( 'entity_supplier', 'supplierauthorizedterms', 'in_supplierbankcertified_text_option',       null,         'on-approval' );
    
    insert into table3 values( 'col1_supplier1', 'SupplierReq1', 'ratechangeRequest_boolean_supplier_1',        'boolean-val', 'false', null );
    insert into table3 values( 'col1_supplier1', 'SupplierReq1', 'ratechangeRequest_number_times_1',            'number-val',  null,    null );
    insert into table3 values( 'col1_supplier1', 'SupplierReq1', 'ratechangeRequest_author_mgr_1',              'text-val',    'Y',     null );
    insert into table3 values( 'col1_supplier1', 'SupplierReq1', 'ratechangeRequest_manager_approved_amount_1', 'number-val',  null,    'on-approval' );
    insert into table3 values( 'col1_supplier2', 'SupplierReq2', 'ratechangeRequest_supplierCommission_2',      'number-val',  null,    'on-approval' );
    insert into table3 values( 'col1_supplier2', 'SupplierReq2', 'ratechangeRequest_boolean_supplier_2',        'boolean-val', 'false', null );
    
    with all_data as (
      -- data from table1 :
      select 1 as numset
           , xmlagg(
               xmlelement("attribute",
                 xmlattributes(col1 as "id")
               , xmlelement(evalname(col2), col3)
               )
             ) as xmlset
      from table1
      union all
      -- data from table2 :
      select 2
           , xmlagg(
               xmlelement("col1",
                 xmlattributes(col1 as "id")
               , xmlagg(col2)
               )
             )
      from (
        select col1
             , xmlelement("col2",
                  xmlattributes(col2 as "id")
                , xmlagg(
                    xmlelement("attribute",
                      xmlattributes(
                        col3 as "id"
                      , nvl2(col4, null, col5) as "column6"
                      )
                    , case when col4 is not null then xmlelement(evalname(col4), col5) end
                    )
                  )
                ) as col2
        from table2
        group by col1, col2
      )
      group by col1
      union all
      -- data from table3 :
      select 3
           , xmlagg(
               xmlelement("col1",
                 xmlattributes(col1 as "id")
               , xmlagg(col2)
               )
             )
      from (
        select col1
             , xmlelement("col2",
                  xmlattributes(col2 as "id")
                , xmlagg(
                    xmlelement("attribute",
                      xmlattributes(
                        col3 as "id"
                      , col6 as "column6"
                      )
                    , case when col5 is null and col6 is null then xmlelement("unknown-val")
                           when col6 is null then xmlelement(evalname(col4), col5)
                      end
                    )
                  )
                ) as col2
        from table3
        group by col1, col2
      )
      group by col1
    )
    select xmlserialize(document
             xmlelement("global-instance",
               xmlagg(xmlset order by numset)
             )
             as clob indent
           ) as result
    from all_data
    ;
    
    RESULT
    --------------------------------------------------------------------------------
    
      
        1001
      
      
        WS
      
      
        2012-01-03
      
      
        2012-01-15
      
      
        A
      
      
        
          
            Y
          
          
            N
          
          
            Y
          
        
        
          
            60
          
          
          
            CHQ
          
        
      
      
        
          
            false
          
          
          
            Y
          
          
            
          
        
      
      
        
          
          
            false
          
        
      
    
    
  • Video formats with html 5 are like days VHS and Beta

    Hi once more;

    I always try to get my site submitted to nine to work with video examples. The first site I made in 2009 was with Dreamweaver CS3 when video was not a big deal and all my examples worked fine, but now it's different.

    In old messages I was told to flash video getaway because it was not used in the video most for most devices.  I should do more in html 5 and make your MP4 video.  Got it, but, still problems with some of the video of loading another story but they don't work in Firefox.  This browser requires ogg.  OK, changed it in ogg.  My questions are, if I have to put each format on a page that has 4 examples of my work, how the container so that it can understand what browser is being used and play this format? too many screens.

    I got it this way;

    < div class = 'video' >

    "< video src="video/imagerepair_1.mp4.mp4 "width ="400"height ="400"controls > < / video >

    "< video src="video/imagerepair_1.mp4.oggtheora.ogv "width ="400"height ="400"controls > < / video >

    < / div >

    I have two screens for a film.  We'll play in Firefox with the other saying screen "video format or mime is not supported.

    Second question;  If I have 4 different videos make a container for each?  I use "insert a div tag" to make the container.

    Thanks for your time.

    Tom

    Download the Pickle player.  I use it for 2 video sites. Pickle works in all browsers and web devices with a type of file (MP4 or M4V for the web).  Pickle also supports playlists and poster frames.   You can customize the skin with the CSS code or just use one of the default ones. It's super simple to deploy with a few lines of HTML code.  A ++

    http://www.pickleplayer.com/

    Nancy O.

  • Formatting with HTML and CSS issues

    When I have upgraded to Dreamweaver CS5.5, make simple changes to a website has become more complicated.

    Let's say I want to Center a line of text. Before I could just press the center alignment button in the "Shortcut" pane at the bottom.

    Now, I find 2 choices in the "Properties" pane to see how to format a web page:

    One choice is HTML, I know. But there is no central alignment button here.

    The other choice is CSS, which I am not familiar with. There is a center alignment button, but when I hit him, he asked me to create a "new CSS rule" with a strong name as "style130."

    I worked on this site for many months without understanding what it means...

    http://www.brasstackspress.host-Ed.me/

    Now if I format anything (Center, "BOLD", etc.), some unrelated page will also get to the format.

    What should I do?

    Learn CSS.

    http://www.html.NET/

    Adobe dropped deprecated HTML tags "align" DW interface, so your code will not throw validation errors.

    HTML - http://validator.w3.org/

    To center the text, create a reusable class name called .center.

    . Center {text-align: center}

    Apply this class to your paragraph or the position since the HTML by clicking the drop-down list properties panel class.  See screenshot.

    class = "center"> this paragraph is centered

    This paragraph is not centered

    Centering of Pages, Images and other elements with CSS

    http://cookbooks.Adobe.com/post_Centering_web_pages_and_other_elements_with_CSS-16640.html

    Nancy O.

  • Logic print data in the format required for XML

    Hello

    Please find the xml format:

    < ListOf_ssFsInvoice >
    < ssFsInvoice >
    < ListOf_ssFsInvoiceLineItems >
    < ssFsInvoiceLineItems >
    < ListOf_ssFsInvoiceLineItemDetails >
    < ssFsInvoiceLineItemDetails >
    Paid < ssDnrmPartBillingType > < / ssDnrmPartBillingType >
    < ListOf_ssFsInvoiceLineItemDetailTaxes >
    < ssFsInvoiceLineItemDetailTaxes >
    < ssTaxName > VAT < / ssTaxName >
    < ssAmount > 1000 < / ssAmount >
    < / ssFsInvoiceLineItemDetailTaxes >
    < ssFsInvoiceLineItemDetailTaxes >
    < ssTaxName > input < / ssTaxName >
    < ssAmount > 2000 < / ssAmount >
    < / ssFsInvoiceLineItemDetailTaxes >
    < ssFsInvoiceLineItemDetailTaxes >
    < ssTaxName > XYZ < / ssTaxName >
    < ssAmount > 500 < / ssAmount >
    < / ssFsInvoiceLineItemDetailTaxes >
    < / ListOf_ssFsInvoiceLineItemDetailTaxes >
    < / ssFsInvoiceLineItemDetails >
    < / ListOf_ssFsInvoiceLineItemDetails >
    < / ssFsInvoiceLineItems >
    < / ListOf_ssFsInvoiceLineItems >
    < / ssFsInvoice >
    < / ListOf_ssFsInvoice >

    Requirement:
    1 paid in total = ssDnrmPartBillingType print ssAmount for the ssTaxName and similar ssTaxName to appear only once in the report for each ssTaxName.
    2.e.g.
    Section 1:
    VAT paid 1000
    Admission fees 200
    XYZ paid 100
    Section 2:
    VAT paid 100
    Admission fees 100
    Paid XYZ 50

    -------------------------
    The report output
    VAT 1100
    Entry 300
    XYZ 150

    and so on.
    How to use for each loop and the sum function so that for all the grouped items summation can be printed and repeated element appears only once that too in the hierarchical structure as shown above.
    Any suggestion?

    Thanks in advance.

    Try this:



    This should give you the appropriate quantities.

    If it solves your problem, please give points and mark the thread as answered.

    Thank you
    BIPuser

  • Internal dynamic text formatting using HTML tags in As3... Help!

    I'm for a solution of navigation for about 2 hours, but I can't find anything that could help. I have a dynamic text field, and I want to format it, (to highlight the first 2 words in red and the rest in italics). Usually, I load external .txt files and I use HTML tags to format the text inside. But this time I have to do internally.

    Is it possible to do?

    Kind regards!

    You mean you want to format your text in the textfield with html like tags for example this one?

    yourtextfield. htmlText = "Hello it!"

    This underlines the 'Hello' and bolden ' here! You can add the css inline style too to add the colors of the background also.

  • Rendering HTML XML correctly in XSL

    Hi people,

    Using DW8 tutorials and the help of Lynda.com, I successfully built a xsl fragment for a client that takes in an xml that feed on the outside. I joined this fragment in a php file using the XSL Transformation of DW8, and php is displayed inside an < iframe > on the Web site. Everything works and displays on the site of my client very well, except the html code in the xml file. "" For example, instead of a hyperlink in the xml stream as "click here", he appears in the form < a href = " http://someurl.com/" > click here < /a >.

    As this is my first time doing XSL, recessed, etc, I wonder if it is my problem or the question xml stream? Is there something that I can fix it, or I have to go to the people generating the xml stream that I am pulling? Thanks in advance for any thoughts.

    FWIW, I finally had this figured out. The origianl created by DW8 xsl was:

    What was supposed to be added to avoid html rendered bad was:

  • How to display the string XML formatted as an XML way?

    How to render an XML string in the component textArea (or suggest another component) so that it is readable as XML (although indented) and I should be able to copy it to the Clipboard.

    http://www.mail-archive.com/[email protected]/msg78030.html - contains the answer. toXMLString() worked...

  • HTTPService with XML format errors when XML is empty. How can I test the value?

    I have a simple HTTPService that returns XML code. 99% of the time there are values and all is right with the world, but sometimes there is no values and my xml looks like this

    <?xml version="1.0" encoding="UTF-8" ?> 
      <node /> 
    
    

    It is quite valid. How can I test this and avoid

    ReferenceError: Error #1069: node not found property on flash.xml.XMLNode and there is no default value.

    I tried

    If

    Normally the XML with the look as values

    (event.result.node == null)

    <node>
    -     <node label="MYLABEL1" id="231" type="O" />
          <node label="MYLABEL2" id="263" type="O" />
      </node>
    
    
    
    

    This Punch and see what happens:

    var xml =

    ;

    If (xml.hasOwnProperty ("node"))

    {

    trace ("neat!");

    }

    var xmlList1:XMLList = xml.node.attribute ("attribute1");

    If (xmlList1.length () > 0)

    {

    trace ("attribute1 found.');

    }

    var xmlList3:XMLList = xml.node.attribute ("attribute3");

    If (xmlList3.length () > 0)

    {

    trace ("attribut3 found!'); This will not be found

    }

    Of course, the try-catch blocks are my usual method of getting XML incorrect, but it's a little hokey.

Maybe you are looking for