Structured Search/Replace

Greetings:
I have been given an xml file that originated in a low cost xml editor. When I open the document in Frame 9, the document has extraneous spaces before and after various tags.
The most bothersome are those that appear after start tags. For example:
<para> Now is the time ....
Other editors I've worked with allow you to search for a "<para> " and replace it with "<para>", the text representation of the tag.
I see Frame supports regular expressions in Find/Replace but I can't find any documentation to describe how to use it.
Anyone have any idea how I can elminate rogue spaces before and after various start/end tags in Frame?
thanks in advance.
Baejc

Hi Baejc...
In FM, you can't search on tags .. you can search for a tag, but not the actual tag markup. I actually don't know of a way to fix the problem you're seeing once the file has been opened in FM (aside from developing a custom plugin or script that would clean it up). This problem is caused because the XML file you're opening has been pretty-printed (I'm guessing). FM treats all space within a tag as "content" .. this includes whitespace in parent tags as well .. this ends up typically being NOT what you want.
One solution is to open the XML file in a plain text editor or an tag-based XML editor and "un-pretty-print" the file by removing the leading tabs or spaces on all lines. If this isn't a viable solution, you will need to introduce an import XSLT script to your structured application. This will cleanse your file of the unwanted whitespace before it's opened in FM. For an excellent discussion of this subject, visit the following URL ..
     http://www.scriptorium.com/whitepapers/whitespace/
Good luck!
...scott

Similar Messages

  • Search / Replace in Acrobat Pro 9 ??

    I have a PDF that needs some significant editing.   I can't go back to the source. I could accomplish a lot with a search / replace tool.  I've been searching through the help files and information online and I can't figure out if there is a search/replace tool in this product.  I have found the search / redact tool, but no search / replace.    Does anyone know if Acro Pro 9 has this feature?  If not, is there a free plugin that could do this...?  and in which version of Acrobat did they introduce search/replace?
    Thanks

    Yes there is search replace in newer versions, at least according to Adobe.  see here:
    Acrobat Help | Searching PDFs
    Find and replace text in PDFs
    Find and replace text in a PDF
    The Find toolbar searches the currently open PDF. You can selectively replace the search term with alternative text. You replace text one instance at a time. You cannot make a global change throughout a PDF or across multiple PDFs.
    Choose Edit > Find (Ctrl/Command+F). 
    Type the text you want to search for in the text box on the Find toolbar. 
    To replace text, click Replace With to expand the toolbar, then type the replacement text in the Replace With text box. 

  • Logical Database - PNPCE - Hide 'Org Structure' 'Search Help' etc buttons

    Hi,
    We have created a report by making a z copy of RCATS_APPROVE_ACTIVITIES. In the Z version we need to hide the buttons on the titlebar of the selection screen.
    Buttons are
    - Org Structure
    - Search Help
    - Dynamic Selection
    - Selection Fields.
    Can you please suggest if I can do something from the code ?
    Regards,
    Chiranjeevi.

    Hi,
    Thanks for your suggestion. However, there is no title bar method that we can modify to remove the buttons. I have created a Z report Category by copying the existing one and made the modifications.
    In that we can hide/display UI elements which are displayed by Logical Database.
    Regards,
    Chiranjeevi.

  • Replace words with images, in a table, using the search/replace tool

    Hello everybody
    I have a question:
    Is it possible to replace words with images, in a table, using the search/replace tool?
    My case:
    I have a table with about 9000 articles on about 400 pages. In this table there are words which I like to replace with Logos.
    Example: The word "DM" should be the Logo "DM" (.eps). This word is about 1200 times in this table.
    Is it possible to replace it automatically?
    Thank you very much for your helb.
    Kind regards Alex

    Hello Mr. Werner
    Thank you for your reply.
    Can I ask you which Version of InDesign do you use?
    I use CS 5.5 and there I can't find the change field "other" you told me.
    Can you see it on the screenshot? (Sorry it is german...)
    Thank you very much for your support.
    Kind regards Alex

  • Organizational Structure Search Help in Webdynpro ABAP

    Hi,
    I need an organizational structure search help in webdynpro abap.
    It should list the organizational structure in tree view like RH_OBJID_REQUEST lists.
    I tried to use RH_OBJID_REQUEST function in webdynpro but I got " A RAISE statement in the program
    "CL_GUI_CUSTOM_CONTAINER=======CP" raised theexception condition "CNTL_ERROR" short dump.
    Is there such a function for webdynpro abap and  how can I achive this with select options?
    Thanks in advance..
    MERAL

    Great article.  I also had this probelm a year ago. My problems questions are:
    Is it possible to select more then one entry in the tree?
    What about selecting all childrens with one click?
    In my solution I inserted this tree, into a table and the table had a checkbox, row, so the user can check the required org units, (more then one) and there was a separate button, for "select all children"

  • Organisational Unit Structure Search

    Hello,
    As used in transaction PPOSE and PPO1. I would like to add this structure tree search to an ABAP WD View fields. The transaction used the function module RH_OBJID_REQUEST.
    Can anyone tell me how this can be done?
    Alternately is there another suitable user friendly structure search help I could use in ABAP WD view?
    How can I create a search help structure in ABAP WebDynpro? Have you got a example?
    Thanks for your help.
    Regards,
    Mathieu

    hi,
    For Freely Programmed Search Help Check this out.
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/wdabap/freely%252bprogrammed%252binput%252bhelp
    http://help.sap.com/saphelp_nw04s/helpdata/en/47/9ef8cc9b5e3c5ce10000000a421937/frameset.htm
    I hope it helps.
    Thanx.
    Saurav.

  • Search & replace text programmatically in pdf file

    I need to search & replace text programmatically (preferably in .NET c#) in existing pdf file.
    Does anyone know how to do it (maybe with with Acrobat SDK) ?
    Thanks in advance!
    A.
    PS: Well done working example :-)

    Searching APIs are provided, but there no APIs for replacing since that's not a standard operation on a PDF (given the rendering model).

  • Search & Replace in Formulas

    Hello,
    I'm busy with a complex 'Numbers' file containing a lot of sheets & tables with many routines formulas.
    So basically the major differences between tables are minor changes in the formulas (*'table 1':: M2* becomes *'table 1" :: M3*, etc).
    My question is: is it possible to "Search & Replace" in "Formulas" all at once... BUT _in the active sheet ONLY_!
    Because up to now the only thing I can to is to "Search & Replace" step by step for each cell (which is taking ages!)... if I choose "Replace all" Numbers is doing it for the all document, not for the active sheet!
    Any idea?

    Can you copy the sheet to a new file - search and replace - then copy back?

  • Search & Replace in LabVIEW

    Hello All
    Is there a way to do a "Search & Replace" in LabVIEW as in other e.g. text based programming languages?
    In LabVIEW you can right click at the object and select replace. But when I have many of instances this procedure is getting long.
    I know I can save other vi as the given vi, but this will replace also other instances in other projects, which I do not want.
    Thanks in advance.
    Pawel

    This could have partial usefulness for sub VIs, but not for plain LabVIEW items (who would want to do a global replace of all "add" with a "multiply"... ;-)
    Unlike in text based languages, "replace" is not such a clear cut operation. What do do if the terminals don't match? Often, it requires a manual cleanup.
    There are a few workarounds, depending on how your VIs are organized. Are both in user.lib?
    For example, if you really need to replace a subVI in a complex application, save it as development distribution, quit LabVIEW, then use explorer to temporarily rename the obsolete subVI and replace it with the new VI using the old name. Now re-open the toplevel VI, doubleclick any instance of your new subVI and give it the new more appropriate name. Save e
    verything again and all will be updated to call the new subVI using the new name.
    Now rename the old subVI back to what it was so other projects that use it don't choke.
    LabVIEW Champion . Do more with less code and in less time .

  • To hide /deactivate Structural search in E recruitment ?

    Hi all,
    Could anybody tell me how to hide deactivate the structural search on the organization subtab of organization data in the requisition.
    But we don't want it to be deactivated in SAP R/3.
    thanks and best regards
    Rajeev

    Dear Madhusudhan,
    Can you please tell me how you solved the Http error . I am facing the same problem.
    thanks.
    Rgds,
    Sofia

  • Organize Bookmarks: I want to rename a batch of ~100 bookmarks with search-replace

    Organize Bookmarks:
    I want to rename a batch of ~100 bookmarks
    changing words in the "name" field with search-replace
    Please
    (a) tell me a work-around, or
    (b) program a plugin for a more advanced bookmarks editor.
    thanks a lot!

    You will have to export the bookmarks to an HTML file and edit that file to make the change. You need to remove all existing bookmarks before re-importing that changed file or you will have to remove all duplicates. If all the bookmarks that need to be changed are in one folder then you can remove the other bookmarks while editing.
    See http://kb.mozillazine.org/Backing_up_and_restoring_bookmarks_-_Firefox

  • ABOUT STRUCTURE SEARCH

    HOW TO INCORPORATE STRUCTURE SEARCH FOR THE FIELD POSITION IN ONE OF MY REPORT SELECTION SCREEN.CAN ANY ONE GIVE SAMPLE CODE FOR THIS.
    THANKS.

    Vadivel,
    Do you mean Search Help?
    If so, then this is an example:
    PARAMETERS: p_vbeln LIKE vbak-vbeln MATCHCODE OBJECT vmva.
    vmva is a search help (have a look at it using se11).
    You can easily create your own search helps...
    Thanks,
    Wojtek
    Message was edited by: Wojtek Haase

  • "Structure search" and "free search" in input help

    I need to have an input help for my PERNR field, right now i am using search help PREMN and calling FM F4IF_FIELD_VALUE_REQUEST inorder to display the input help. But, in addition to this, i wnat the tabs "Structure search " , "Free search" to be displayed in teh input help pop up screen.
    How can i achieve this?
    Thanks,
    Vasuki

    Hi Vasuki,
    Just write it this way
    parameters:p_pernr type pa0001-pernr matchcode object PREM.
    Now once you hit f4 help. The search help will be displayed with all tabs, once you choose the free search tab the respective screen will be displayed.Now if you want to return to other tabs you must choose the button in bottom of the free search screen which is in between "Green tick mark" and "Close button".

  • Structure Search-PPOME

    Hi,
    I assigned a new object type A (Work Center) in Find By area (left hand side of PPOME) of PPOME.
    I configured Structure Search using table T77FSEAT. When I click on Structure Search( in PPOME) I am getting a message u201CNo Structure Existsu201D.
    Please Help in making the Structure Search functional.
    Regards,
    Ghanapriya

    I used the following:-
    Obj. Manager Scenario: - OMEOO0
    Search Node Key: - A
    Search tool:- CL_HR_OM_SEAT_STRUCTUAL_SEARCH
    Interaction tool: - CL_HR_OM_IAT_ORGP_GOS_CD
    Please Help as I am not able to see any data when I click on structure search for object type A in PPOME
    Regards,
    Ghanapriya

  • [CC] Search&Replace: Bug only with Regular Expressions

    Can you confirm the following behaviour/bug?
    Steps to reproduce:
    1 Create a new document in DW CC
    2 Enter that text in the source code view:
    <p>&euro;</p>
    3 Open Search&Replace
    Field Search in: Current document
    Field Search: Text
    Field Search (3rd Field): €
    Start Search
    Result: As expected the "€" is found.
    4 [x] Regular Expressions
    Start Search
    Result: "€" isn't found
    Can you reproduce that?
    Do you regard that as a bug like me?
    If not, why please?
    Do you think it is technically impossible for the developers to solve the task?
    Do you think the developers forgot to gray out "text" in the choice box and allow regular expressions only in source code?
    Thanks.

    Nice that you like the nick
    Sure, I know that I can file a feature wish.
    But my main interest in this forum is to know, what other users think about certain features, why they think so, which they miss, which they regard as a bug, ...
    When I remember it right, you told me some time ago, that you don't use RegEx.
    Than I understand, that everything around that feature is not important for you.
    What I like to understand is, why you think the behaviour is logically.
    For me it is the opposite.
    You get a result with "Scope: Text", "[ ]RegEx".
    And you get no result with "Scope: Text", "[x]RegEx".
    Incredible strange.
    I would appreciate, if you could explain more detailed your view.

Maybe you are looking for