XML replace method

Hi,
I have a section of an XML which I'd like to replace.  I'm using this method however it won't work.  Although both strings (myString & mystring2) are giving the expected results, the XML (XML2) remains the same after I use the replace method.  Any ideas how I can go about this? Thanks
trace ("Relevant XML part to change: ")
    var xnList:XMLList = MovieClip(root).myXML2.*.(@label== MovieClip(root).combobox.selectedItem.label);
    var mystring2:String = xnList;
trace ("New string: ")
    myString = myString + "\u0009" + "<Section label = \"" + "\u0009 </Section>";
MovieClip(root).myXML2.replace (mystring2,myString);
    XMLString = MovieClip(root).myXML2;
    trace (XMLString);

Actually both arguments of replace () are strings
Well, the first argument needs to be the name of the node (or the index number of the node, or "*"), and the second argument needs to be an XML. You cannot pass an XMLList as a string
You are basically adding a child node to a node. You can do so dynamically using E4X:
var myXML2:XML = <requirements>
                    <Section label="P">
                       <Requirement_1>
                          <Name>P1</Name>
                       </Requirement_1>
                       <Requirement_2>
                          <Name>P2</Name>
                       </Requirement_2>
                    </Section>
                    <Section label="M">
                       <Requirement_1>
                          <Name>M1</Name>
                       </Requirement_1>
                       <Requirement_2>
                          <Name>M2</Name>
                       </Requirement_2>
                    </Section>
                    <Section label="C">
                       <Requirement_1>
                          <Name>C1</Name>
                       </Requirement_1>
                       <Requirement_2>
                          <Name>C2</Name>
                       </Requirement_2>
                   </Section>
                </requirements>;
var selectedLabel:String = "M";
var n:uint = myXML2.Section.(@label == selectedLabel).children().length();
var newNode:XML = new XML("<Requirement_" + (n + 1) + "><name>" + selectedLabel + (n + 1) + "</name></Requirement_" + (n + 1) + ">");
myXML2.Section.(@label == selectedLabel).children()[n] = newNode;
trace(myXML2);
Trace
<requirements>
  <Section label="P">
    <Requirement_1>
      <Name>P1</Name>
    </Requirement_1>
    <Requirement_2>
      <Name>P2</Name>
    </Requirement_2>
  </Section>
  <Section label="M">
    <Requirement_1>
      <Name>M1</Name>
    </Requirement_1>
    <Requirement_2>
      <Name>M2</Name>
    </Requirement_2>
    <Requirement_3>
      <name>M3</name>
    </Requirement_3>
  </Section>
  <Section label="C">
    <Requirement_1>
      <Name>C1</Name>
    </Requirement_1>
    <Requirement_2>
      <Name>C2</Name>
    </Requirement_2>
  </Section>
</requirements>
Kenneth Kawamoto
http://www.materiaprima.co.uk/

Similar Messages

  • Why does a find and replace method remove whitespace?

    I have method that searches for a string in a FM document and replaces it with a variable. If for example, there was a string foobar that I wanted to replace with the variable barfoo. Then, I expect this text:
    Lorem ipsum dolor sit amet, foobar consectetur adipiscing elit. Vivamus sed purus urna, ac tristique tortor. Nam auctor tellus non enim pulvinar a vestibulum neque tincidunt.
    To be changed to this text:
    Lorem ipsum dolor sit amet, barfoo consectetur adipiscing elit. Vivamus sed purus urna, ac tristique tortor. Nam auctor tellus non enim pulvinar a vestibulum neque tincidunt.
    However, while the text does do the replace it also removes the whitespace between the variable and the text that appears right after the variable so it actually looks looks like this:
    Lorem ipsum dolor sit amet, barfooconsectetur adipiscing elit. Vivamus sed purus urna, ac tristique tortor. Nam auctor tellus non enim pulvinar a vestibulum neque tincidunt.
    Why is the find and replace method removing the whitespace and how do I prevent that from happening? The method is provided below.
    function FindAndReplaceString(pDoc, findString, replaceVariable)
        if (typeof pDoc != 'undefined'&&typeof findString != 'undefined'&&typeof replaceVariable != 'undefined'&&pDoc.ObjectValid()&&findString.length>0&&replaceVariable.length>0)
            var vVarFmtStatus=checkVarFmStatus (pDoc, replaceVariable);
            if (vVarFmtStatus=='In Doc')
                var tr = new TextRange();
                var findParams = new PropVals();
                var frame = pDoc.MainFlowInDoc.FirstTextFrameInFlow;
                var restoreTR = pDoc.TextSelection;
                tr.beg.obj = tr.end.obj = frame.FirstPgf;
                tr.beg.offset = tr.end.offset = 0;
                findParams = AllocatePropVals(1);
                findParams[0].propIdent.num = Constants.FS_FindText;
                findParams[0].propVal.valType = Constants.FT_String;
                findParams[0].propVal.sval = findString;
                tr = pDoc.Find(tr.beg, findParams);
                var vLoopCounter=0;
                while(FA_errno === Constants.FE_Success&&vLoopCounter++< 1000)
                    pDoc.TextSelection = tr;
                    pDoc.Clear(0);
                    var newVar = pDoc.NewAnchoredFormattedVar(replaceVariable, tr.beg);
                    var varLength = newVar.TextRange.end.offset - newVar.TextRange.beg.offset;
                    tr.beg.offset += varLength;
                    tr = pDoc.Find(tr.beg, findParams);
                if (vLoopCounter>0)
                    Log (vLogFileName, 'In the document \''+pDoc.Name+'\', the string \''+findString+'\' was replaced with the variable \''+replaceVariable+'\' '+vLoopCounter+' times.\n')
                if (vLoopCounter>1000)
                    recordErrors (vErrorLog, 'ERROR: In the document "'+pDoc.Name+'", the find and replace operation was stopped after executing '+vLoopCounter+' times. The term being searched for is "'+findString+'" the replacement variable is "'+ replaceVariable+'".')
                pDoc.TextSelection = restoreTR;
                pDoc.ScrollToText(restoreTR);
                } else {
                    recordErrors (vErrorLog, 'ERROR: The find and replace operation failed because the variable '+replaceVariable+' does not exist in the following doc: '+pDoc.Name)
            } else {
                recordErrors (vErrorLog,'Invalid or unitialized parameter passed to function FindAndReplaceString')

    Hi,
    Not at the moment. Please post in http://forums.adobe.com/community/muse/ideas so other users can vote on the feature request.
    Thanks,
    Abhishek

  • Need replacement method for FM: REUSE_ALV_GRID_DISPLAY.

    Hi
    i need a replacement method for FM: REUSE_ALV_GRID_DISPLAY from the class CL_GUI_ALV_GRID,
    kindly let me know if someone knows the solution for it.
    regards
    mano

    Method set_table_for_first_display, look at [ALV Grid Control (BC-SRV-ALV)|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVALV/BCSRVALV.pdf]
    Regards

  • Understanding Regex replace method call involving delegate

    Hello,
    I am trying to understand the $regex.replace static method call below (I came across this code snippet in the cookbook).
    $replacer = {
    param($match)
    $chars = $match.Groups[0].Value.ToCharArray()
    [Array]::Reverse($chars)
    $chars -join ''
    $regex = [Regex] "\w+"
    $regex.Replace("Hello World wide", $replacer)
    What I do not understand is the below overloaded definitions for replace method do not seem to match the above replace call. So how exactly is this working? The above call has 2 parameters passed where as none of the below overloads have less than
    3 parameters.
    PS C:\WINDOWS> [regex]::replace
    OverloadDefinitions
    static string Replace(string input, string pattern, string replacement)
    static string Replace(string input, string pattern, string replacement, System.Text.RegularExpressions.RegexOptions options)
    static string Replace(string input, string pattern, string replacement, System.Text.RegularExpressions.RegexOptions options, timespan matchTimeout)
    static string Replace(string input, string pattern, System.Text.RegularExpressions.MatchEvaluator evaluator)
    static string Replace(string input, string pattern, System.Text.RegularExpressions.MatchEvaluator evaluator, System.Text.RegularExpressions.RegexOptions options)
    static string Replace(string input, string pattern, System.Text.RegularExpressions.MatchEvaluator evaluator, System.Text.RegularExpressions.RegexOptions options, timespan
    matchTimeout)

    What you are looking at are the static methods ([regex]::) and their appropriate parameters which in this case have a minimum of 3 parameters to properly perform the Replace using the input, pattern and replacement
    value. If you were to use the constructor of [regex] to create a pattern like this:
    $Regex = [regex]'\w'
    You will see that the Replace method here allows for only 2 parameters because you have already satisfied the pattern when you created the Regex object.
    $Regex.Replace
    OverloadDefinitions
    string Replace(string input, string replacement)
    string Replace(string input, string replacement, int count)
    string Replace(string input, string replacement, int count, int startat)
    string Replace(string input, System.Text.RegularExpressions.MatchEvaluator evaluator)
    string Replace(string input, System.Text.RegularExpressions.MatchEvaluator evaluator, int count)
    string Replace(string input, System.Text.RegularExpressions.MatchEvaluator evaluator, int count, int startat)
    Boe Prox
    Blog |
    Twitter
    PoshWSUS |
    PoshPAIG | PoshChat |
    PoshEventUI
    PowerShell Deep Dives Book

  • SCCM Replace method migration for XP-to-W7 without creating computer associations?

    Hi all
    We want to use the Replace Method for our XP-W7 migration but do we have to create a computer association between the old and new machine name for every machine to be migrated (2500+)? If so, this does not appear to be practical because we don’t know what
    the new machine name will be for every old machine to be migrated until we image machines with Windows 7, which is likely to be on the same day.
    So, how can we use the Replace Method without creating computer associations please?
    Best regards
    Scott

    MDT 2012 SP1 is integrated with ConfigMgr 2012.
    We are testing a UDI solution, however, when we click “Preview” on the Refresh stage group we get the error “Unable to launch wizard in preview mode – OSDSetupWizard.exe was not found in the expected path”.  This is preventing us from
    checking that the changes we have made to the capture/restore settings will work or not. This error does not occur when we "Preview" the NewComputer stage group and we have checked OSDSetupWizard.exe does exist in \\<server>\MDT Toolkit\Tools\x64
    and \\<server>\MDT Toolkit\Tools\x86.
    1. How do we overcome this error to allow us to preview the Refresh stage group please?
    2. Do we need to specify the DEPLOYMENTTYPE variable in the customsettings.ini and if so, do we need 3 different customsettings.ini files for each scenario (DEPLOYMENTTYPE=NewComputer, DEPLOYMENTTYPE=Refresh and DEPLOYMENTTYPE=Replace)?
    Kind regards
    Scott

  • E-REC - WebDynpro Exception: Subclass of must overwrite/replace method

    Hi All,
    We are encountering an issue with an E-Recruiting web dynpro, hrrcf_a_candidate_registration, all of the sudden throwing the below error message:
    - WebDynpro Exception: Subclass of must overwrite/replace method
    Any thoughts/ideas would be helpful.
    Thanks!

    Hi Dhinesh,
    We found the following note:
    Note 1108840 - Error message when
    using browser that is not supported
    Regards,
    Nathan

  • GObject : Replace Method

    Hello. I am working with labview scripting in order to create a script that will replace all selected indicators with an indicator from a ctl file. However, I can't seem to figure out the GObject method "Replace". Attached is my current script. I was wondering if anyone could let me know what I am doing wrong or if what I am trying to do is even possible. Thanks.
    Solved!
    Go to Solution.
    Attachments:
    IndicatorReplace.png ‏17 KB

    A few tips.
    It looks like you are using the selection on the BD, therefore the objects you find will be ControlTerminals.  You need to get the corresponding Control property and call its replace method.
    To handle this, and allow for other random objects in your selection I would use To More Specific Class to cast each object to a ControlTerminal.  If there is no error, then get the Control Property and call the replace method.  If there is an error, simply do nothing.  This way if there is a wire or two in the selection you are ok.
    It also appears that you are using this from the Tools Menu, which is cool.  You can add a check of the VI.FPIsFrontmost property to detect if you are calling from the FP or BD.  If it is the FP, you can simply cast everything in the SelList[] to a Control and for the successful ones call the Replace method.

  • Beginner Java: Replace method solved

    Hi all,
    Having some issues in java, decided to take an intro to programming this semester
    I want to use the replace method to replace multiple integers with characters,
    public class ReplacementTester
    public static void main(String[] args)
    String greeting = "H3770, 371t3 hack3r!";
    // your work here
    // call the replace method four times
    System.out.println(modifiedGreeting);
    System.out.println("Expected: Hello, elite hacker!");
    I think I need to use
    String modifiedGreeting = greeting.replace("7", "l");
    in there, which works, but I don't know how to continue it to put more replacements in it. I cant seem to use the same argument again like this, it seems to ignore the second line.
    String modifiedGreeting = greeting.replace("7", "l");
    String modifiedGreeting = greeting.replace("3", "e");
    I know I gotta be missing something relatively simple,
    Any ideas?
    Last edited by proxima_centauri (2009-01-15 22:33:45)

    You keep recreating the modifiedGreeting reference, so the previous String objects stored their (edit: there) get deleted. I haven't used Java in a long time, but assuming your description of the replace method is correct, the following should work:
    public class ReplacementTester {
    public static void main(String[] args) {
    String greeting = "H3770, 371t3 hack3r!";
    String modifiedGreeting = greeting.replace("7", "l");
    modifiedGreeting = modifiedGreeting.replace("3", "e");
    System.out.println(modifiedGreeting);
    System.out.println("Expected: Hello, elite hacker!");
    or to be more concise:
    public class ReplacementTester {
    public static void main(String[] args) {
    String greeting = "H3770, 371t3 hack3r!";
    String modifiedGreeting = greeting.replace("7", "l").replace("3", "e");
    System.out.println(modifiedGreeting);
    System.out.println("Expected: Hello, elite hacker!");
    Last edited by dsr (2009-01-15 21:44:55)

  • What is the replacement method for preventDefault() on iOS?

    Using preventDefault() in response to orientationChanging is a well-documented technique for preventing rotation on iOS. What is the recommended replacement method for this call when manually managing device rotation events?
    From the release notes: preventDefault() is not honored for the ORIENTATION_CHANGING event on iOS. This is a behavior change from AIR 3.4 and will remain so. (3324338)

    Auto-orientation has drastically changed in iOS 6. Some of the auto-orientation callbacks have been completely deprecated in iOS 6. This change affects the screen orientation API's in AIR too and support for the new callbacks have been added in AIR 3.5 beta release. The deprecated callbacks informed the application about the new orientation it was being rotated to. Hence, application could decide whether it wanted to rotate to the new orientation or not. However, the new callbacks do not give us such information. The application is only queried about what orientations are currently supported. If this value returned by the new callbacks matches the new orientation stage is being rotated to, the stage automatically rotates. Otherwise it does not. As a result of this limitation of the new callbacks, support from preventDefault() was deprecated on iOS in AIR 3.5(built with iOS 6 SDK). The application will still receive the ORIENTATION_CHANGING event. But calling preventDefault() inside the ORIENTATION_CHANGING event handler won't prevent the stage from being rotated to the new orientation. It is important to note that apps packaged with iOS 6 and running on iOS 5.1 devices or lower will also see this behavior change of not able to control auto orientation by using preventDefault(). This was done to make this change consistent across iOS devices.

  • XML toString method not working as expected.

    Why is the XML.toString method inconsistant?
    var xml:XML = new XML( "<root/>" );
    var xml_withtext:XML = new XML( "<root>a</root>" );
    var xml_withchild:XML = new XML( "<root><child/></root>" );
    trace(xml.toString()); //traces "" (blank)
    trace(xml_withtext.toString()); //traces "a"
    trace(xml_withchild.toString()); //traces "<root><child/></root>"
    If the XML contains only a root node, toString prints nothing.  When it contains text, it prints the text.  That would make sense if toString was printing only the contents of the root node, but if the root node contains a child, it doesn't print "<child/>" as one would expect.  Instead, it suddenly includes the root node as well in the string.  That is inconsistant/unexpected.  For some reason, there is also a separate toXMLString method that consistantly prints the entire XML structure.  Was that some kind of patch since toString doesn't work in a consistant manner, instead opting to sometimes include the root node depending on whether it contains simple or complex content?

    Andrei1:
    1. No, it's not what it is.  No, there aren't hundreds of reasons/dependencies why more descriptive or intuitive conventions are not chosen. In this case, the reason (singular) is spelled out in the E4X spec, and it basically boils down to them naively thinking it would be easier for programmers if the node would just magically return text if that's all it contains.  In other words, they thought it would be simpler for a node to run specialized arbitrary logic to decide what to return, than it would for a programmer to explicitly select what they want by typing ".text".  I see no reason why XML.toString should return anything other than the underlying/original string of characters that originally represented the node in the first place.  If programmers wanted the child text of a node, they should call a method like "getTextContent".  Since an original, unaltered string of XML character had to exist in the first place in order to instantiate an XML object, anything that creates a new string based on arbitrary logic, for whatever reason, has no business existing within the toString method.  For classes that represent data that is not fundamentally a string, any string representation is by definition arbitrary and in that case they can override the universal (i.e. a member of every base Object) toString method.  But for classes that represent strings, toString should return the string they represent, unaltered.
    2.  An AS3 XML object IS an XML-type object, but the AS3 XML class is actually instantiated from String-type data or from  bytes that represent encoded String data (i.e. sequences of known  characters), because XML is very strictly and fundamentally a "markup language" which is essentially a format of a string of characters.  Its rules are based around characters, exact unicode character classes, and a logical ordering of those characters.  XML is logically and fundamentally the kind of data that a String class represents, text, so its converstion to a String instance should be straightforward.   As a string, a "toString" method for a node should return the original string representation of that node from the first character that is part of that XML node to the last character that is part of that node.  XML may contain data the represents anything, but XML itself is a string of characters.  Period.
    3.  There is a universal string method called toString and it's a member of the most basic class "Object" which all other classes inherit from.  Although the technical details are different in different object-oriented langauges, they all tend to have a method like that, whether we're talking about AS3, C#, Java, or JavaScript.  Calling toString on a String returns the string itself.  Calling toString on a class that represents a string, should return the string it represents; not some arbitrary tranformation of that string.  Calling toString on a class that doesn't represent a string, has no default string representation to return, and therefore any string returned is by definition arbitrary.
    4.
    In other words toString() does not return XML at all but an un-interpreted representation that is cast to String
    That's precisely what it DOESN'T do.  Instead of returning the original, un-interpretted representation of the string FROM WHICH THE NODE WAS CONSTRUCTED, it returns some arbitrarily interpretted represention.  It decides whether the XML string is interpretted as complex or simple content, and then it arbitrarily decides to include or not include the outermost tags representing the XML of that node.  The fact remains, the string representation PRECEDES the existance of the XML instance, so toString should not be performing arbitrary logic to construct a brand new string.
    In other languages datatype string can be a totally different animal.
    No, actually a string always refers to a secquence of characters.  Each of those character may contain one or more bytes, they may be contiguous in memory or not, they may be represented by arrays, linked lists, doubly-linked lists, etc. but their logical data is always a sequence of characters.  That is the same in every programming language, and is even codified in the Unicode standards which represents characters in hundreds of different written languages.
    5.
    Again, XML is not a string until application says so and XML in AS3 is not a String but a special object.
    XML is actually a string BEFORE the application says it is XML, since the XML is constructed FROM A STRING.  XML is a special object, which is constructed from, represents, and processes a string.
    I could very easily create a class named "AllCapsSentence" and like "XML", the class itself is not "String", but they logically represent a string of characters and any "toString" method on either of such classes should return the underlying string representation without mangling it.

  • Vendor-ejb-jar.xml to orion-ejb-jar.xml, finder methods

    Hello
    I want to convert a inprise based EJB 1.1 application from inprise to OC4J. The inprise based finder methods are quite different from the syntax of orion-ejb-jar.xml, regarding the finder methods. Does anyone know if this can be done more easily. Using JDev 903_pre does not help much. I dont have access to JBuilder either. It seems I have to write all the finder methods once more and it takes days.
    Any hints ?
    Ana Maria

    OC4J does not require all finder methods in the orion-ejb-jar.xml and it automatically generates all simple finder methods. The easiest thing to do is deploy the EJBs into OC4J and it will generate the finder methods in the $OC4J_HOME/j2ee/home/application-deployment/<application-name>/ejb-jar-name/ directory and then you can modify these per your requirement and package with your EJBs.
    hope this helps
    thanks
    Debu

  • XML replace text help

    Hi All,
    In a webservice I am getting an XML file as input. I can get the nodes info with:
    <cffunction name="insertCode" access="remote" returntype="string" output="no">
            <cfargument name="myXML" type="any" required="yes" >
            <!--- Define the local scope. --->
            <cfset var LOCAL = {} />
            <cfset LOCAL.ValueNodes = XmlParse(ARGUMENTS.myXML) />
            <!--- Check Login --->
            <cfset agency = LOCAL.ValueNodes[1].Root.Header.Agency.xmltext>
            <cfset user   = LOCAL.ValueNodes[1].Root.Header.User.xmltext>
            <cfset pwd    = LOCAL.ValueNodes[1].Root.Header.Password.xmltext>
    Now I want to do a response the same XML file structure but replace some of the data of the nodes, per example:
    <Root>
        <Header>
            <Agency>IBM</Agency>
            <User>Andrew</User>
            <Password>demo</Password>
            <Operation>SEARCH_REQUEST</Operation>
            <OperationType>Request</OperationType>
        </Header>
        <Main>
            <ReferenceName>New893</ReferenceName>
            <StatusCode>I</StatusCode>
       </Main>
    </Root>
    I want to have this as response:
    <Root>
        <Header>
            <Agency>IBM</Agency>
            <User>Andrew</User>
            <Password>demo</Password>
            <Operation>SEARCH_RESPONSE</Operation>
            <OperationType>Response</OperationType>
        </Header>
        <Main>
            <ReferenceName>New893</ReferenceName>
            <StatusCode>C</StatusCode>
       </Main>
    </Root>
    Any ideas how to do this?
    Thanks

    Lets see.
    Change the "do schell script" line to:
    do shell script "echo sed -i \"\" 's/<ACCNTTYPE>CREDITLINE/<ACCNTTYPE>CREDIT/g' " & quoted formof (POSIX pathof (itemioffs) asstring) & " > ~/Desktop/debug.txt"
    This adds "echo" to the start and "> ~/Desktop/debug.txt" to the end to create a file called debug.txt on the Desktop so that we can see if the command is correct.
    Post the contents of debug.txt
    If a debug.txt file is not created, then that means that a file with the ext .qbo was not "dropped"

  • ASP XML Replacement

    I have a little ASP code that I need to get rid of and am wondering if anyone has any ideas on how this can be done in JSP. It needs to do two thing:
    1) Read and write the HTML code from a URL.
    2) The HTML code that is written out has some fom elements. I need to be able to read send these values. In ASP this was done using Request.form("parameter_name")
    Here is the current ASP I want to replace:
    <%
    Dim xml, results
    Response.Buffer=true
    Set xml = Server.CreateObject("Microsoft.XMLHTTP")
    xml.Open "POST", "http://some_url?parameter1="&Request.form("parameter1")", false
    xml.Send
    results= xml.responseText
    Response.Write(results)
    %>

    See for example XML related tags in Coldtags suite:
    http://www.servletsuite.com/jsp.hm

  • Need advanced "Find and Replace" method

    I have bunch of pages need "Find and Replace" work in html
    coding, but I can't use DW's "Find and Replace" function to do with
    it. Here's the sample code:
    quote:
    "<tr valign="top"><td align="center"><a href="
    ../photo/ccg/pages/Columbus Grill
    M_jpg.htm"><img src="../photo/ccg/thumbnails/Columbus
    Grill M_jpg.gif" border="0" onClick="MM_openBrWindow('
    ../photo/ccg/pages/50th Yard
    M_jpg.htm','rr','width=386,height=306')"><br>
    Columbus Grill M</td>
    <td align="center"><a href="
    ../photo/ccg/pages/Columbus Grill
    W_jpg.htm"><img src="../photo/ccg/thumbnails/Columbus
    Grill W_jpg.gif" border="0" onClick="MM_openBrWindow('
    ../photo/ccg/pages/50th Yard
    M_jpg.htm','rr','width=386,height=306')"><br>
    Columbus Grill W</td>
    <td align="center"><a href="
    ../photo/ccg/pages/Cookies Lounge
    M_jpg.htm"><img src="../photo/ccg/thumbnails/Cookies
    Lounge M_jpg.gif" border="0" onClick="MM_openBrWindow('
    ../photo/ccg/pages/50th Yard
    M_jpg.htm','rr','width=386,height=306')"><br>
    Cookies Lounge M</td>
    <td align="center"><a href="
    ../photo/ccg/pages/Cookies Lounge
    W_jpg.htm"><img src="../photo/ccg/thumbnails/Cookies
    Lounge W_jpg.gif" border="0" onClick="MM_openBrWindow('
    ../photo/ccg/pages/50th Yard
    M_jpg.htm','rr','width=386,height=306')"><br>
    Cookies Lounge W</td>
    <td align="center"><a href="
    ../photo/ccg/pages/Corcorans
    M_jpg.htm"><img src="../photo/ccg/thumbnails/Corcorans
    M_jpg.gif" border="0" onClick="MM_openBrWindow('
    ../photo/ccg/pages/50th Yard
    M_jpg.htm','rr','width=386,height=306')"><br>
    Corcorans M</td>
    </tr>"
    You can see I need to use EVERY highlighted code to replace
    each NEXT bolded code, highlighted code are deffirent but bolded
    code are the same. Now I just do it manually, but there are
    thousands of them.
    Is any one has a better method using DW's "Find and Replace"
    function to do this job automatically?

    Using Templates with a 900 page site is a crime against
    humanity. You reach
    the optimal size for Templates between about 50 and 100.
    The error you are getting suggests that there are coding
    errors on the page
    (perhaps even unrelated to ANY DW Template markup). We'd need
    to see the
    page to make progress with what that might be, as Alan says.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "RyanWaters" <[email protected]> wrote in
    message
    news:ggs7fq$gnq$[email protected]..
    >I am a little green to this all. I am trying to find and
    replace a word
    >inside
    > the edit region and Dreamweaver will not change it,
    because it says its
    > inside
    > a locked region, but its a editable region?
    > I have about 900 pages I need to make this change on and
    was relying on
    > the
    > find and replace tool to do that. I tried differn't
    advanced options,
    > nothing
    > seams to change it. I am using cs3. Thanks for any help
    >

  • Interesting thing happening with document.location.replace("") method

    Does the JavaScript method document.location.replace("") expires the current session. It happened with me, but I am not very sure!!! Could anybody put some light on this point?

    Actually document.location.replace does load new URL, replacing entry in History

Maybe you are looking for

  • How to setup the oracle_base value in oraenv..?

    Hi, how to setup the oracle_base value in oraenv..? It is showing like.. [oracle@localhost ~]$ . oraenv ORACLE_SID = [orcl] ? orcl ORACLE_BASE environment variable is not being set since this information is not available for the current user ID oracl

  • Airplay mirroring in OSX Yosemite

    My Macbook Pro 15" 2011 model will not mirror to my Apple TV. It worked extremely well on Mavericks, but it doesn't work now. It works fine on my iPhone, but not my Macbook. Does anyone know how to fix this issue? I'm fully up-to-date on all my softw

  • Filtering Message based on attachment extension

    Hi All, I have task to develop a java based email client (POP3, IMAP and SMTP based) which only allows email with attachment with certain extension to be downloaded by clients. I develop it with javamail API. So far my implementation for IMAP is to r

  • Aware of Gatekeeper address lookup failures

    How can I know when a Gatekeeper send an resolution failure to gateway. thanks

  • Measuring temperature with PCI-4351 & TC-2190

    Hi, I am a new LabView developer. I have a PCI-4351 data logger card and a TC-2190 thermocouple chassis. I cannot communicate with the 4351 cuz I don't know how. I've set up a channel with MAC and the hardware test works okay, but I can't find the ri