XML text editor

hi, i have an xml-flash website i'm working on. i have lots
of texts to include dynamically. the question i have is: how can i
save an rtf file (the only html tag i need is the color of the
font) into an xml file without manually tag all words that have a
different color? (export to txt with automatic color tags)

Hello,
Welcome to Adobe Forums.
As per my understanding Prefernces are exported as an XML but you can edit them, you can only import them.
Thanks,
Vikram

Similar Messages

  • Format XMl to be read in a text editor.

    Hi,
    I'm using ixml functions to create an xml file. Each element of my document is created using :
    <cl_xml_document> ->create_simple_element
    I then export it to a file with :
    <cl_xml_document>->export_to_file
    When the created file is opened with an xml viewer, it appears well presented, every tag is displayed on a seperate line.
    However, once opened with a text editor, the whole content is displayed on one line. Is there to format the file with some sort of line seperator?
    On debugging, I found out that only one line of its internal table is used to store the data.

    Welcome to SDN
    Try this,
    data: temp_str type string.
    concatenate '>' cl_abap_char_utilities=>cr_lf '<' into temp_str .
    replace all occurrences of '><' in XML_STRING with temp_str.
    xml_string is the straing variable to hold the xml .
    now use xml_string to show it in texteditor.
    Regards
    RAja

  • XML formatting not fine in a text editor

    Hello Experts,
    am generating an xml file through a java program using javax.xml.parsers.
    Following is the format of file (say for eg) generated when i see in notepad
    <root><tag1>val1</tag1><tag2>val2</tag2></root>
    which is not required. I want the file to be in the following format.
    <root>
         <tag1>val1</tag1>
         <tag2>val2</tag2>
    </root>
    When the file is viewed in any browser, it is fine but is getting messy in a text editor.
    Please Help. It would be really appreciated.
    Regards
    Priya

    idTransform2.setOutputProperty("indent", "yes");
    "indent" property is used for that purpose,use the following program.
    import java.io.IOException;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerException;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import org.w3c.dom.Document;
    import org.w3c.dom.Node;
    public class SocketExample
         * @param args
         * @throws IOException
         * @throws ParserConfigurationException
         * @throws TransformerException
         public static void main(String[] args) throws IOException, ParserConfigurationException, TransformerException
              DocumentBuilderFactory fact = DocumentBuilderFactory.newInstance();
              DocumentBuilder parser = fact.newDocumentBuilder();
              Document doc = parser.newDocument();
              Node root = doc.createElement("request");
              doc.appendChild(root);
              Node Last_Name_Node = doc.createElement("Last_Name");
    root.appendChild(Last_Name_Node);
    Last_Name_Node.appendChild(doc.createTextNode("Last_Name"));
    Node Title_Node = doc.createElement("Title");
    root.appendChild(Title_Node);
    Title_Node.appendChild(doc.createTextNode("Title"));
    // setting Servcie Address1
    Node Service_Address1_Node = doc.createElement("Service_Address1");
    root.appendChild( Service_Address1_Node);
    Service_Address1_Node.appendChild(doc.createTextNode("Service_Address1"));
              TransformerFactory xformFactory2 = TransformerFactory.newInstance();
              Transformer idTransform2 = xformFactory2.newTransformer();
              javax.xml.transform.Source input2 = new DOMSource(doc);
              javax.xml.transform.Result output2 = new StreamResult(new java.io.FileWriter("d:/webapp.log",true));
              idTransform2.setOutputProperty("indent", "yes");
              idTransform2.transform(input2, output2);
    Message was edited by:
    BhavaniRajan

  • Rich text editor (apex 4.0)

    using blue gray theme and a page with a rich text editor. Expanding the rich text options displays the text body p below the text area that persists even if you close the rich text options. Anybody know how to get rid of that behavior?

    I think your mixing 2 technologies.
    At 1 side you have xml in combination with xsl (style sheets used in BI Publisher and FOP) to generate your pdf. And at the other side you have HTML...
    XML and HTML are 2 entirely different technologies which you can not mix this simple. I investigated the same problem as you had, and in the end I ended up using jasperreports instead of FOP.
    Maybe BI Publisher has some html regions which you could insert into your word document but I doubt it cause more people have asked the same question on this board...
    So my advice: use jasperreports (also it is free for commercial usage)
    Success
    Br,
    Nico

  • Rich Text editor in Webdynpro

    Hi,
    With the new FormattedTextView in 2004s one will be able to render xhtml compliant rich test in Webdynpro.
    This however only covers the rednering of rich text.
    There still does not seem to be a rich text editor control available for webdynpro applications, which I think might be a common requirement for document centric applications.
    I was wondering :
    1 - will there be a richt text editor control available for WDP in the forseeable future ?
    2 - if not, are there any workardounds available to allow for the generation of rich text ?

    Hi Valery,
    Well, I already thought of that kind of solution, but I do not consider it a very clean solution. I know WDP supports portal eventing. On the other side of such a scenario you could even do without a 3rd party wysiwyg editor, cause SAP does offer an html editor control in its set of HTMLB controls.
    We intend to use WDP as a UI layer on top of SAPs KM. Our scenario involves template based publishing of structured documents (we first looked at xml forms, but they showed too many limitations). The idea is to model the document structure and content at runtime as WDP context structures (based on xml schemas) and then to serialize WDP context into XML content and metadata, with KM acting as business and persistence layer. Markup and insertion of images into the different text parts of the document however has become an additional requirement, which is why we are looking for a ways to fit that in our current design.
    You could indeed think of some kind of data exchange between a regular portal component and the wdp application, but I am not too confident whether that is going to be a reliable solution.
    PS : for the serialization of WDP context, your post in a different thread on this forum helped me a lot in my first attempts to create KM documents from data wdp runtime data (context). The link provided to the online book and your little example was very welcome. Thanks for that !

  • Publisher 6.5 - unable to expand Rich Text Editor window

    Hello,
    We upgraded from publisher 6.2 to 6.5. Now when we go the Rich Text Editor - we cannot vertically expand the window. That option is gone. The problem is we have some content pages that are long, our content editors cannot view the whole screen to get a view, whereas they had the option is 6.2.
    Since this is a java app (i think) - is there something in the config that would allow that ability to come back?
    Thanks,
    <!--[if !mso]>
    <style>
    v\:* {behavior:url(#default#VML);}
    o\:* {behavior:url(#default#VML);}
    w\:* {behavior:url(#default#VML);}
    .shape {behavior:url(#default#VML);}
    </style>
    <![endif]--><!--[if gte mso 9]><xml>
    Normal
    0
    false
    false
    false
    MicrosoftInternetExplorer4
    </xml><![endif]--><!--[if gte mso 9]><xml>
    </xml><![endif]-->
    <!--[if gte mso 10]>
    <style>
    /* Style Definitions */
    table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;}
    </style>
    <![endif]-->
    <!--[if gte vml 1]>
    <![endif]-->
    (guess you can paste in images from Word....)

    We had the same problem with the Dutch Locale.
    Switching to English, German or French got us the toolbar back.
    Looking in the generated html for the Publisher Explorer:
    <script type="text/javascript" src="http://<%your server%>/imageserver/plumtree/content/private/dojo/dojo/dojo.js"></script>
    <script type="text/javascript" src="http://<%your server%>/imageserver/plumtree/content/private/dojo/dojo/nls/dojo_nl.js"></script>
    Preliminary research finds a .js file missing, namely dojo_nl.js.
    I made a copy of dojo_en.js, replaced all .en by .nl and it works.
    Also the formatting needed changes for the Dutch Locale.
    I think other files needs to be present. But i can't determine which dojo version is used.
    It got us at least the toolbar back.
    A support call was opened.

  • [How?] Text editor with hidden data

    Im looking on a good way to make an small Text editor (visually the features of a JTextPane is ok for my needs), but I need to associate metadata with words or a group or words (ex. timestamps).
    Any idea on how to accomplish this ?
    thanks

    SB. wrote:
    I think that it's too soon to think on how to store those data. Once the editor designed, I could save the information in an xml, serialized class etc.. it doesnt really matter.
    The easy part is to design all my classes to represents those Strings + metadata (my model).
    I suppose that after that I could convert them to a document which I can use to display in any gui. BUT if I can't fit all those infos in a widget, I'll have to catch all keyboards/mouse events et manually apply those modifications on my model beforce creating new document to refresh the widget ? That part seem problematic to me..Huh?
    You have a data structure. That data structure is mapped to a displayable format.
    For example you could use XML for the data structure. Thus something like the following would be in it.
           <Line font="bold">
                 <priority>3</priority>
                 <text>This is a line</text>
           </Line>You then create a mapper that takes that and displays the value of the element "text" to the screen. Nothing else is displayed from that is displayed.. Your display mechanism would need to have a link between that line and the above xml so if someone changes that line then it gets put back in the xml.
    In the above "priority" and "bold" simply represent other data type elements the rules of which depend on the needs of your application.
    Note that the above depends on rules which might or might not be represented in the data structure. Maybe because they can't be or simply because it isn't worth the effort.
    For instance what happens if the user puts a line feed in the middle of the displayed line? Does that create a new "Line" entity or is just an update to the existing "text" element?
    Keep mind that XML is nothing but an example there are other ways to do this.

  • How can i double click a box in GUI and simply open a text editor?

    My case is that in my GUI frame, i have several boxes and if i double click on them, i want to open a text editor for these boxes and write the description for them then save them, and next time when i double click again, i can reopen this editor and see the description i did.
    How can i do this? I'm stuck. If somebody can help me, i appreciate it very much!
    Thanks a lot!

    If the JOptionPane.showInputDialog is not enough then you would have to come up with your own JDialog and customize it to suit your needs.
    For the saving aspect, if the items are online strings or short items, then consider using java.util.Properties for a name=value pair saving machinism. If your strings will be multiline, then consider using a textfile for each individual string set or use XML. The java.util.Properties class in JDK 1.5 provides and very simple XML storage and load feature for storing its name=value pairs.
    Look into these and add dbulai's advice for a grand finish
    ICE

  • Text editor recording and replaying events

    Hi there.
    Ive recently started Java and am writing a text editor. I was wondering if anyone could point me in the right direction.
    I want to be able to record everything a user does to a file in an XML document and replay it later. The XML isnt the problem. I was wondering if there is an existing way of capturing all the events for replay. i would also like to be able to speed up and slow down the replay.
    any suggestions or even a point in the right direction would be great.
    Thanks.

    Hi,
    perhaps Jacareto can help you: This tool captures events and replays
    them with the robot. The events can be grouped together to structure
    the record, and you can add own structures you are interested in
    (so you may look at "MouseEvents" or at "User chose the edit menu item
    events").
    You can also add own replay modules which replay the high-level
    structures. If you do not want to replay in real-time, you can slow down
    or speed up replay by defining a delay between the events.
    The Jacareto site:
    http://www.ph-ludwigsburg.de/mathematik/personal/spannagel/jacareto/
    Hope I could help you...
    Best regards,
    Christian

  • Text Editor -options

    Hi,
    I have been using text editor control.
    In this when we click load file button...an open prompt window appears..
    there we will be finding Files of type... dropdown..containing values like text(.txt) file and All file types..
    Is there any way to restrict this dropdown to single value..i mean to .txt file..should only be viewed omitting
    All files option in dropdown..
    i am using CL_GUI_TEXTEDIT..control...
    Is there any option to do it...
    Please Help me out.
    Thanks & Regards,
    Sandy.

    Hi Sandy,
    I don't think there is any method for this. As the dialog box opened is depending on your OS.
    But, you can cross check the uploaded file for  " .txt " using CP (contains pattern) function of string.
      DATA: xl type string.
      xl = '*.txt'.
      IF not P_FILE CP xl.  "P_FILE is name of file you will get.
    "Error"
    ENDIF.
    Sachin

  • Options - Text Editor - C/C++ missing intellisense entry. Intellisense not working

    Options -> Text Editor -> C/C++ missing intellisense entry.  Intellisense not working.    Solutions to turn options for the editor off and on are not working.  The intellisense entry is present for other languages,
    such as C#, but not C/C++.
    By not working, I mean the intellisense right click menu items are grayed out, and intellisense files are not produced.

    Hi JerroldBrody,
    Thank you for posting in MSDN forum.
    >>I mean the intellisense right click menu items are grayed out, and intellisense files are not produced.
    Based on your issue, could you please share me a screen shot about the intellisense right click menu items are grayed out?
    Generally, I know that it is default that we can enable the intellisense for C/C++ by going to the TOOLS->Options -> Text Editor -> C/C++ ->Advanced-> IntelliSense like the following screen shot.
    So please try to check if you set Disable Intellisense property as False in the VS IDE.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • The text editor in release 2

    We have portal release 2 running on HP-UX.
    In release 2 there is a new text editor for publishing text. Its used for simple text and text item types.
    How is this feature implemented? Is the source code available?
    Feedback appreciated.

    Hi,
    It is called Rich Text editing. A search on google with the keywords rich text edit
    will give you links to quite a few sites, where the source is available. It uses
    a combination of DHTML and JavaScript.
    We have portal release 2 running on HP-UX.
    In release 2 there is a new text editor for publishing text. Its used for simple text and text item types.
    How is this feature implemented? Is the source code available?
    Feedback appreciated.

  • Text editor in Score module agonizingly clunky!  Fix?

    When creating scores from midi regions, the text editor drives me nuts when adding lyrics: The word/character positioning is different between text edit/create mode and what appears on the screen after editing, and different again between that and what appears in print preview mode or actual print-out. This is absolutely crazy-making when trying to line words/syllables up with their corresponding notations!
    Also the cut & paste functions don't work as in any other text editor I've seen.
    Also-also I can't get it to accept a new default font and size.
    Suggestions? Dr. Kevorkian's phone number?
    Thanks!

    Hi,
    it looks like you have some problem with RFC. It stopped on the following line:
    * Communication error in RFC-Call
    message x628(ke) with 'RFC_ERROR' subrc msg_text.
    Ask your basis guy to check it. The job on application server tried to connect to the central instance and it failed. The job run on central instance does not need to make any RFC call. Hence there is no problem in this case.
    Regards

  • Rich Text Editor Options

    I am working on a project that needs a Rich-Text Editor with
    ability to insert tables, images, and more complex editing features
    such as what FCKEditor provides but ideally that was built with
    Flex in mind. Is there such an editor available? I have seen a few
    options but nothing that really matched the functionality of
    FCKEditor for example.
    Thanks

    Hello,
    I was looking for flex version of the FCK Editor,
    unfortantly, I could not find a fully complete solution, but I
    found the following which might help you:
    1.
    http://flashtexteditor.com/flexdemo/full/
    2.
    http://drumbeatinsight.com/examples/htmlcomponent/editor/HTMLWithRTE.html
    L.L.

  • Text Editor using cl_gui_textedit

    Hi,
    I need a text editor box on selection screen in display mode. and I'm using cl_gui_textedit class to get it.. but for some reason its not working.
    Here is the code below -
    report YLTEST1
           no standard page heading line-size 255.
    DATA: g_text_editor             TYPE REF TO cl_gui_textedit,
          g_text_container          TYPE REF TO cl_gui_custom_container,
          g_gen_text_editor         TYPE REF TO cl_gui_textedit,
          g_gen_text_container      TYPE REF TO cl_gui_custom_container.
      DATA: WORDWRAP_POSITION LIKE CL_GUI_TEXTEDIT=>M_WORDWRAP_POSITION.
      data: g_gen_txt_container       TYPE scrfname VALUE  'GENERAL_TEXT_FOR_REPS'.
      DATA: TEXT_TAB      TYPE STANDARD TABLE OF LINE.
    parameters: p_check.
    at selection-screen output.
    Create sales Text container
      WORDWRAP_POSITION = 100.
      IF G_GEN_TEXT_CONTAINER IS INITIAL.
            CREATE OBJECT:
                 G_GEN_TEXT_CONTAINER EXPORTING CONTAINER_NAME = G_GEN_TXT_CONTAINER,
                 G_GEN_TEXT_EDITOR    EXPORTING PARENT = G_GEN_TEXT_CONTAINER
                 WORDWRAP_MODE =  CL_GUI_TEXTEDIT=>WORDWRAP_AT_FIXED_POSITION
                 WORDWRAP_POSITION = WORDWRAP_POSITION
                 WORDWRAP_TO_LINEBREAK_MODE = CL_GUI_TEXTEDIT=>TRUE.
      ENDIF.
      IF not G_GEN_TEXT_CONTAINER IS INITIAL.
    Set container options
      CALL METHOD: G_GEN_TEXT_EDITOR->SET_TOOLBAR_MODE
                                  EXPORTING TOOLBAR_MODE   = 0,
                   G_GEN_TEXT_EDITOR->SET_READONLY_MODE
                                  EXPORTING READONLY_MODE  = 1,
                   G_GEN_TEXT_EDITOR->SET_STATUSBAR_MODE
                                  EXPORTING STATUSBAR_MODE = 0,
                   G_GEN_TEXT_EDITOR->SET_AUTOINDENT_MODE
                                  EXPORTING AUTO_INDENT    = 1.
    Pass the text to the sales text container
      CALL METHOD G_GEN_TEXT_EDITOR->SET_TEXT_AS_STREAM
        EXPORTING
          TEXT = TEXT_TAB.
      endif.

    Try this way:
    DATA: lo_dock TYPE REF TO cl_gui_docking_container.
    DATA: lo_text_editor TYPE REF TO cl_gui_textedit.
    DATA: lt_tab TYPE STANDARD TABLE OF char80.
    DATA: la_tab LIKE LINE OF lt_tab.
    DATA: w_carrid TYPE sflight-carrid.
    ** Selection Screen
    SELECTION-SCREEN: BEGIN OF BLOCK blk1 WITH FRAME TITLE aaa.
    SELECT-OPTIONS: s_carrid FOR w_carrid.
    SELECTION-SCREEN: END   OF BLOCK blk1.
    INITIALIZATION.
    * Docking container
      CHECK lo_dock IS INITIAL.
      CREATE OBJECT lo_dock
        EXPORTING
          repid     = sy-cprog
          dynnr     = sy-dynnr
          ratio     = 80
          side      = cl_gui_docking_container=>dock_at_bottom
          name      = 'DOCK_CONT'.
      IF sy-subrc <> 0.
        MESSAGE 'Error in the Docking control' TYPE 'S'.
      ENDIF.
    * Text Editor
      CREATE OBJECT lo_text_editor
        EXPORTING
          parent                 = lo_dock
        EXCEPTIONS
          error_cntl_create      = 1
          error_cntl_init        = 2
          error_cntl_link        = 3
          error_dp_create        = 4
          gui_type_not_supported = 5
          OTHERS                 = 6
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Set text
      la_tab = 'This is test'.
      APPEND la_tab TO lt_tab.
      CALL METHOD lo_text_editor->set_text_as_r3table
        EXPORTING
          table           = lt_tab
        EXCEPTIONS
          error_dp        = 1
          error_dp_create = 2
          OTHERS          = 3.
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Regards,
    Naimesh Patel

Maybe you are looking for

  • How do I use my iPhone 4 to make calls when it is in the Dock?

    Hi, This might sound silly but how does one use the phone to make calls when it is in the dock?  Is there such a thing as an on-screen dialler or some such device to help dial the number.  I just have the headphone and mic jack - that is fine.  Just

  • How to display fixed width column in Advanced Table?

    Hi, This is probably a newbie question for OAF. My requirement is quite simple but I couldn't find the answer in either the OAF developer's guide or anywhere else so I turn to the experts here. I have a region of type Table or Advanced table with thr

  • MacBookPro5,5 upgrade and Lion

    I have a mid 200913.3" MacBookPro5,5 with Intel Core 2 Duo 2.26 GHz processor and 2*1GB DDR 31066MHz of memory. I have boughtthe mac to 2*2GB Crucial DDR3 1066MHz CT2KIT25664BC1067 memory and a 96GB Kington V+100 SATAIISSD in order to give a boost mi

  • Learned the hard way

    I am new to this - have a new iMac as of October. This morning the system crashed and when I started it up the photos that I had were gone. Can't figure why it crashed, I was typing away in Word. Any schooling on this would be appreciated. Yeah I kno

  • How to design an unclosable jfram?

    Thanks in advance! In one application, I'd create 3 jframes, jframe1 is the master, jframe2 and jframe3 are slaves. Slave windows should not be able to be closed by itself, they can be closed only by closing the master window, which ends up the whole