Re: comparing String with a NodeValue in XML

Hello Syed,
you have to do the comparison it with ".equals()" instead of "==", thus try:
if (search.equals(node.getFirstChild().getNodeValue()){
Reinhard

Thanks Reinhard
works just fine. The only thing left is
if (node.getFirstChild().getNodeValue() != search)
          System.out.println(" Search Result NOT Found ");
cus its still displaying the message "NOT Found"
cheers
Syed

Similar Messages

  • Simple question - compare Strings with SSIS expression language

    SSIS variables - strOne = YES, strTwo = YES. I want to compare strings using ssis expression language (ie inside a variable's expression box, constraint of task flow arrow etc).
    Will @strOne == @strTwo be true ? I hope its not like programming languages where you need to do
    @strOne.Equals(@strTwo) instead of ==. Also is @strOne == "YES" true ?

    ([User::strOne] == [User::Strtwo] ? True : False)
    The third variable created should be of type boolean if you're using above expression. if its of type int return 0 and 1 instead of False and true
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Comparing Strings with "If" statements : help please. :-)

    I have an assignment for class... and having lots of trouble trying to figure out what I did wrong. I cannot find a solution.. if anyone can help me with this, it'd be much appreciated.
    Assignment Write a program to allow the user to calculate the area and perimeter of a square, or the area and circumference of a circle, or the area of a triangle.
    To do this, the user will enter one of the following characters: S, C, or T. The program should then ask the user for the appropriate information in order to make the calculation, and should display the results of the calculation. See the example program execution shown in class.
    The program should use dialog boxes.
    When expecting an S, C, or T, the program should reject other characters with an appropriate message.
    Get extra points for allowing both the uppercase and lowercase versions of a valid character to work. Name the program ShapesCalc.java.My error codes are
    incomparable types: java.lang.String and Char
    cannot find symbol variable output
    incomparable types: java.lang.String and Char
    incomparable types: java.lang.String and CharI've asked a friend and they said something about Strings cannot be compared in "If" statements... if that is the case.. how is this supposed to be arranged? If you can point me in the right direction, I will be very grateful! :-)
    What I have created so far
    import javax.swing.JOptionPane;
    public class ShapesCalc {
        public static void main(String[] args) {
          //Enter S,C, or T
          String input = JOptionPane.showInputDialog("Enter S,C, or T");
          //If Statements
          //Square
          if (input == 'S'){
               String lengthu = JOptionPane.showInputDialog("Enter length of a square");
               double length = Double.parseDouble(lengthu);
               double area = length * length;
               double perimeter = length * 4;
               String ouput = "The area is " + area + " and the perimeter is " + perimeter;
               JOptionPane.showMessageDialog(null, output);}
          //Circle
          else if (input == 'C'){
               String radiusu = JOptionPane.showInputDialog("Enter the radius of a circle");
               double radius = Double.parseDouble(radiusu);
               double area = 3.14159 * radius * radius;
               double circumference = 2 * 3.14159 * radius;
               String output = "The area is " + area + " and the circumference is " + circumference;
               JOptionPane.showMessageDialog(null, output);}
          //Triangle
          else if (input == 'T'){
               String baseu = JOptionPane.showInputDialog("Enter the base of a triangle");
               double base = Double.parseDouble(baseu);
               String heightu = JOptionPane.showInputDialog("Enter the height of a triangle");
               double height = Double.parseDouble(heightu);
               String output = "The area is " + (base * height) / 2;
               JOptionPane.showMessageDialog(null,output);}
          //Error Message
          else {
               String error = "Incorrect variable please enter S,C, or T only.";
               JOptionPane.showMessageDialog(null,error);}
          //Signature
          String signature = "Rodriguez, Markos has compiled a Java program.";
          JOptionPane.showMessageDialog(null,signature);
    }Edited by: ZambonieDrivor on Feb 22, 2009 6:52 PM

    ZambonieDrivor wrote:
    How would I go about on the extration of a single char from a String to make it comparable, I don't quite understand this part.Read the [Java API|http://java.sun.com/javase/6/docs/api/] for the String class and see what methods it has.
    I will convert the == to equals() method.If you want to compare primitives (ints, chars etc) then using == is fine. Only when comparing objects do you use the equals method.

  • Compare Strings using JSTL

    How can I compare strings with JSTL? One string is a stored date and the other is a generated date. My goal is to set the correct date in a dropdown menu with date values (yyyy-MM-dd) by comparing the current date with the stored.
    Code
    <%
    Calendar cal = Calendar.getInstance(timezone, locale);
    Format fm = new SimpleDateFormat("yyyy-MM-dd");
    String date2 = (String) fm.format(cal.getTime()); %>
    <c:set var="date1" value="${mb.date}" />   // from database lookup (MySQL Date)
    <p><c:out value="${date1}"/>=<%=date2%>:<c:out value="${date1 == '<%=date2%>' }" /></p>The result is:
    2004-08-03 = 2004-08-03 : false

    well, about this:
    <%
    Calendar cal = Calendar.getInstance(timezone, locale);
    Format fm = new SimpleDateFormat("yyyy-MM-dd");
    String date2 = (String) fm.format(cal.getTime());
    pageContext.setAttribute("date2",date2);
    %>
    <c:set var="date1" value="${mb.date}" />   // from database lookup (MySQL Date)
    <p><c:out value="${date1}"/> .equals <%=date2%>:<c:out value="${date1eq date2}" /></p>I try to use the EL 'eq' like you would use '.equals()' in regular java, and EL '==' like regular java '==' And since we are comparing Strings here, which are objects, we would use .equals rather than ==, since == compares refernce and .equals compares value...

  • Parsing XML string with XPath

    Hi,-
    I am trying to parse an XML string with xpath as follows but I am getting null for getresult.
    I am getting java.xml.xpath.xpathexpressionexception at line where
    getresult = xpathexpression.evaluate(isource); is executed.
    What should I do after
    xpathexpression = xPath.compile("a/b");in the below snippet?
    Thanks
    String xmlstring ="..."; // a valid XML string;
    Xpath xpath = XPathFactory.newInstance().newPath();
    xpathexpression = xPath.compile("a/b");
    // I guess the following line is not correct
    InputSource isource = new inputSource(new ByteArrayInputStream(xmlstring.getBytes())); right
    getresult = xpathexpression.evaluate(isource);My xml string is like:
    <a>
      <b>
         <result> valid some more tags here
         </result>
      </b>
      <c> 10
      </c>
    </a>Edited by: geoman on Dec 8, 2008 2:30 PM

    I've never used the version of evaluate that takes an InputSource. The difficulty with using it is that it does not save the DOM object. Each expression you evaluate will have to create the DOM object, use it once and then throw it away. I've yet to write a program that only needs one answer from an XML document. Usually, I use XPath to locate somewhere in a document and then read "nearby" content, add new content nearby, delete content, or move content. I'd suggest you may want to parse the XML stream and save the DOM Document.
    Second, all of the XPath expressions search from a "context node". I have not had good luck searching from the Document object, so I always get the root element first. I think the expression should work if you use the root as the context node. You will need one of the versions of evaluate that uses an Object as the parameter.

  • How to compare a string with integer in jsp

    I have a field in database called as enddate
    i m trying to split the entire date and get date,month and year
    once i store the date in a variable called as fmdate which is string,
    i need to compare it with another integer.
    how can i compare it..heres my code
    stdate=RS.getString("start_date");
         fmdate=stdate.substring(8,10);
         fmmonth=stdate.substring(5,7);
         fmyear=stdate.substring(0,4);
    and this is where i want to compare the value of j to fmday...
    <td class="btext" valign="center">Day<select name="fmday">
    <%
    for(int j=1;j<=31;j++)
    String s;
    parseInt(s)=j;
    if (fmdate.equals(s))
    %>
    <option value="<%=j%>"><%=j%></option>
    <% } else { %>
    <option value="<%=j%>"><%=j%></option>
    <%
    } %>
    </select>
    pl help me...
    Thanks Srini

    j is an int, so you're just adding 0, not concatenating. Perhaps something like this would work.
    <%
      for(int j=1;j<=31;j++)
         String date = String.valueOf(j);
         if(j <= 9) {
            date = 0 + date;
         if (fmdate.equals(date)) {
    %>
      <option value="<%=date%>"><%=date%></option>
    <%
         } else {
    %>
      <option value="<%=date%>"><%=date%></option>
    <%
    %>Uhm, I assume there should be a 'selected' or something in one of the option tags?

  • How to display string with XML content in 4.6?

    Hi,
    I`d like to know how to display string with XML content in it for 4.6.
    4.6 has not method parse_string.
    And example like this is not helpful:
      DATA: lo_mxml    TYPE REF TO cl_xml_document.
      CREATE OBJECT lo_mxml.
      CALL METHOD lo_mxml->parse_string
        EXPORTING
          stream = gv_xml_string.
      CALL METHOD lo_mxml->display.
    Thank you.

    Hi,
    May be you can use fm SAP_CONVERT_TO_XML_FORMAT. But it have some issues with memory usage, the program consumed tons of memory during convert.

  • Escape XML Strings with JDK class

    Hi,
    can anyone tell me how to escape XML-Strings with classes of the JDK?
    When searching I only was pointed to StringEscapeUtils from apache.commons.lang, but we would prefer to use the JDK instead of integrating an external lib.
    Our aim is to escape an XML attribute, so a CDATA is not applicable for us in this case.
    Thanks
    Jan

    I implemented it by myself:
    public static String escapeXmlAttribute(String attributeValue) {
            StringBuffer result = new StringBuffer();
            for (int c = 0; c < attributeValue.length(); ++c) {
                if (attributeValue.charAt(c) == '"') {
                    result.append("&#34;");
                } else if (attributeValue.charAt(c) == '&') {
                    result.append("&#38;");
                } else if (attributeValue.charAt(c) == '<') {
                    result.append("<");
                } else if (attributeValue.charAt(c) == '>') {
                    result.append(">");
                } else {
                    result.append(attributeValue.charAt(c));
            return result.toString();
        }{code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • I am stumped! Can't open library module-  failure message and can't start Ligthroom 5.7 anymore: "[String "unarchived table s"]:6 : attempt to compare nil with boolean. - Nothing is working anymore! Who can help me?

    My system:
    Windows 7
    Lightroom 5.7
    I allready tried to load an older catalog backup, but that does not help.
    The failure message occurs during the starting process while trying to Open the library:
    "[String "unarchived table s"]:6 : attempt to compare nil with boolean.
    Nothing is working anymore! Who can help me?
    Thank you for your help!

    Ask on the Microsoft forums, as it's their software you're having problems with:
    http://answers.microsoft.com/en-us/mac

  • Updating an oracle table with data from an xml string

    Hi - I need help with the following problem:
    We have a table in the database with a field of xml type. We are going to take each string that gets inserted into the xml type field in the 'xml table' and parse the data into another oracle table with corresponding fields for every element.
    once the record gets inserted into the 'real table' the user might want to update this record they will then insert another record into the 'xml table' indicating an update(with a flag) and then we need to update the 'real table' with the updated values that have been sent in.
    The problem that I am having is that I do not know how to create this update statement that will tell me which fields of the table need to be updated.(only the fields that need to be updated will be in the xml string in the 'xml table').
    Please help me with this - ASAP!

    Are you wanting to upload the file through an Oracle Form or just upload a file? If it isn't via forms, then you should probably post your question here: {forum:id=732}
    You also should post the version of Forms, Database, etc...
    As far as uploading files via a text file, I personally like to use Oracle External Tables even in Forms. You can Google that and there is plenty of information. If you search this forum, then you will see lots of people use UTL_FILE in forms, but you can Google that also for more information.

  • Comparing a String with array elements

    i need some help as to how to compare an individual String with each item of a String array.
    so far i have:
    StringTokenizer drinksOrder = new StringTokenizer(orderLine, "\r");
    while (drinksOrder.hasMoreTokens())
         for (int index = 0; index < NUMBER_OF_DRINKS; index++)
                 barcode = drinksOrder.nextToken();
                        if (barcode.equals(barcodes[index]))
                                     name = drinks[index];
                                     price = prices[index];
                                     status = drinkStatus[index];
              orderedDrinkBC[j] = barcode;
                                              orderedDrinkName[j] = name;
                                              orderedDrinkPrice[j] = price;
                                              orderedDrinkStatus[j] = status;
              j++;
              break;
    [\CODE]
    At the moment, no Strings are being put in the orderedDrinkBC, orderedDrinkName, orderedDrinkPrice
    and orderedDrinkStatus arrays. the code seems to be failing on the 'barcode.equals(barcodes[index])
    part at the moment.
    any help would be appreciated
    cheers
    david                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Do this instead (next time post your code in lower case code tags):
    StringTokenizer drinksOrder = new StringTokenizer(orderLine, "\r");
    while (drinksOrder.hasMoreTokens())
      barcode = drinksOrder.nextToken();
      for (int index = 0; index < NUMBER_OF_DRINKS; index++)
        if (barcode.equals(barcodes[index]))
          name = drinks[index];
          price = prices[index];
          status = drinkStatus[index];
          orderedDrinkBC[j] = barcode;
          orderedDrinkName[j] = name;
          orderedDrinkPrice[j] = price;
          orderedDrinkStatus[j] = status;
          j++;
          break;
    }

  • How to put String with html tags as it is into xml

    I am using apache dom API to create xml from java.
    I have a string with html tags in it .when I add the string to xml, its replacing all the "<"; with &lt and ">" with > I would like the html tags to look as it is instead of the > and & lt;. How can I acheive that
    this is the code snippet of what I am doing
    In java class
    String titleString = "<font color=red>This Is an Example of a Red Subject</font>"
    Document doc = new DocumentImpl();
    Element root = doc.createElement("bulletin");
    Element item = doc.createElement("title");
    item.appendChild(doc.createTextNode(titleString));
    In Xml it looks like below
    <title><font color=red>This Is an Example of a Red Subject</font></title>
    but I would like to have the xml like below
    <title><font color="red">This Is an Example of a Red Subject</font></title>
    Can you please suggest me whats the best way to acheive this.
    I appreciate all your help
    Thank you
    Suma

    One problem is that you don't understand escaping. If you re-read what you posted you'll see that what you say you get, and what you say you want, are identical. That's because you didn't escape one of the two properly. So your first step should be to find the section about escaping in Chapter 1 of your XML book and read it carefully. Figure out what you should have done here (yes, the same rules apply).
    However, to attempt to answer what I think your question is: if you have a String which contains markup, and you want to convert that String to XML elements, then you have to feed the String into an XML parser.

  • How to handle XML string with Single Quotes as a parameter to SP dynamically?

    Hi,
    I would like to know if there is a way to handle the Single Quotes in XML value when it is passed to Stored Procedure?
    I should be able to handle it without adding another Single Quote to it.
    Thanks,
    Chandra Shekar

    Hi Chandra,
    Your requirement is not precise. Based on my understanding and guessing, are you metioning something like the below sample?
    /*If the xml is generated you have no need to escape the singe quote(')*/
    DECLARE @xmlTbl TABLE (ID INT,name VARCHAR(99));
    INSERT INTO @xmlTbl VALUES(1,'Eric''s')
    INSERT INTO @xmlTbl VALUES(2,'Zhang''s')
    DECLARE @xmlDoc1 XML
    SELECT @xmlDoc1
    FROM @xmlTbl FOR XML PATH('PERSON'),ROOT('PERSONS')
    EXEC yourProcedure @xmlDoc1
    /*If your copy and paste the xml, you have to escape the single quote(') with 2s('')*/
    DECLARE @xmlDoc2 XML
    SET @xmlDoc2 = '<PERSONS>
    <PERSON>
    <ID>1</ID>
    <name>Eric''s</name>
    </PERSON>
    <PERSON>
    <ID>2</ID>
    <name>Zhang''s</name>
    </PERSON>
    </PERSONS>'
    EXEC yourProcedure @xmlDoc2
    If that is not regarding your requirement, please elaborate with more details.
    Eric Zhang
    TechNet Community Support

  • Using a Comparable Class with Treeset, creating counter in comparable clas

    http://rafb.net/paste/results/jibQzk63.html - comparable http://rafb.net/paste/results/Noahue63.html - loading
    http://rafb.net/paste/results/re1Swn60.html - contents of .txt file * sorry the paste is weird lol.
    Trying to List word count in alphabetical order - Already did that
    Having a counter so it counts the number of time that specfic word appeared in the txt file - This is my problem I don't know where to add the counter in my comparable class so it stores a number and adds everytime that same word appears. ex. "and 7" the word "and" appeared 7 times in the .txt file
    so if some1 could help me, would be apperciated. I've like tried everything and getting the opposite results.

    That's just the issue I'm having. My sample code functions as long as the parameterized type being compared isn't Comparable. For example, changing the type to A<Integer,String> works fine.
    I think I may have discovered why this is the case. By declaring A<Comparable,String>, I am implying that the first parameterized type (call it T) is Comparable<T>. As a result, what I need is an A<Comparable<Comparable>, String>; that is, anything which is comparable must be able to be compared to the object. Since Integer is only Comparable<Integer>, it cannot be compared to all Comparable objects and therefore doesn't meet the requirements.
    I'm not used to looking the other way on the inheritance tree. :)
    The original trouble I had with this came from when I was passing a hash code generator into a piece of source and I needed to compare the hashes. The only guarantee I have regarding the hashes is that they are Comparable and I was putting them in a similar Pair structure. I then wanted to build a comparator to compare them but, since they're Comparable<?>, I can't know to what they can be compared... so I'll have to change the contract on the code. ;)
    Thanks. Cheers. :)

  • Insert numbers starting with one in each xml files sequentially

    The following is a sample of two of my xml files
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE article SYSTEM "abc.dtd">
    <article xyz>
    <front>
    <product>
    <citation citation-type="book" id="">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="">
    </citation>
    </product>
    </front>
    </article>
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE article SYSTEM "abc.dtd">
    <article xyz>
    <front>
    <product>
    <citation citation-type="book" id="">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="">
    </citation>
    </product>
    </front>
    </article>
    This is my source code
    public class ReadTexFile
         public void Go2Directory(String Directory)
                    File scan = new File(Directory);
              String DirList[] = scan.list();
              try
                   for(int i = 0; i < DirList.length; i++)
                        File ChkDir = new File((new StringBuilder()).append(scan.getPath()).append("\\").append(DirList).toString());
                        if(ChkDir.isFile())
                             dum1 = ChkDir.toString().toUpperCase();
                             if(dum1.lastIndexOf(".XML") > 0)
    String ExecFile = ChkDir.toString();
                                  File TexfileName = new File(ExecFile);
                                  ReadFileContent(TexfileName);
                                  fileCount++;
                             if(!ChkDir.exists())
                                  System.out.println((new StringBuilder()).append("NO FILES FOUND IN THE DIRECTORY").append(scan).toString());
              catch(Exception e)
                   System.out.println((new StringBuilder()).append("The Error Is in ").append(e).toString());
         public void ReadFileContent(File TexFile)
    try
                   BufferedReader br = new BufferedReader(new FileReader(TexFile));
                   String fetchline = "";
                   for(String line = ""; (line = br.readLine()) != null;)
                        fetchline = (new StringBuilder()).append(fetchline).append(line).append("00000000").toString();
                   br.close();
    cntr=1;
                   fetchline = RemoveIfAlreadyExist(fetchline);
                   fetchline = fetchline.replace("00000000", "\n");
                   File tmp = new File(TexFile.getParent(), "XmlFileTmp.xml");
                   BufferedWriter bw = new BufferedWriter(new FileWriter(tmp));
                   bw.write(fetchline);
                   bw.flush();
                   bw.close();
                   File org = new File(TexFile.getAbsolutePath());
                   System.gc();
                   tmp.renameTo(org);
              catch(IOException ioe)
                   System.out.println((new StringBuilder()).append("The IO Exception occured because ").append(ioe.getMessage()).toString());
              catch(NullPointerException npe)
                   System.out.println((new StringBuilder()).append("The Null Pointer Exception occured because ").append(npe.getMessage()).toString());
         public String RemoveIfAlreadyExist(String line)
    String res = "";
    int cc=1;
              Pattern Regex = Pattern.compile("<product>00000000<citation citation-type=\".*?\" id=\"\">");
              for(Matcher RegexMatcher = Regex.matcher(line); RegexMatcher.find();)
                   String chkEntity = RegexMatcher.group();
                   String subchkEntity1=chkEntity.substring(0,chkEntity.lastIndexOf("\">"));
                   String s1 = Integer.toString(cc);
                   if(s1.length()==1)
                        res = line.replace(subchkEntity1,subchkEntity1+"ref00"+cc+"");
                   if(s1.length()==2)
                        res = line.replace(subchkEntity1,subchkEntity1+"ref0"+cc+"");
                   if(s1.length()==3)
                        res = line.replace(subchkEntity1,subchkEntity1+"ref"+cc+"");
    cc++;
              return res;
    My output from my code is
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE article SYSTEM "abc.dtd">
    <article xyz>
    <front>
    <product>
    <citation citation-type="book" id="ref002">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="ref002">
    </citation>
    </product>
    </front>
    </article>
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE article SYSTEM "abc.dtd">
    <article xyz>
    <front>
    <product>
    <citation citation-type="book" id="ref004">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="ref004">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="ref004">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="ref004">
    </citation>
    </product>
    </front>
    </article>
    But I need my output as
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE article SYSTEM "abc.dtd">
    <article xyz>
    <front>
    <product>
    <citation citation-type="book" id="ref001">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="ref002">
    </citation>
    </product>
    </front>
    </article>
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE article SYSTEM "abc.dtd">
    <article xyz>
    <front>
    <product>
    <citation citation-type="book" id="ref001">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="ref002">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="ref003">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="ref004">
    </citation>
    </product>
    </front>
    </article>Could anyone please tell me what modifications to do in my code.

    Hi sony,
    Since you are trying to replace the pattern of subchkEntity1,
    it replaces all the lines which contain ("<citation citation-type="book" id=")
    including(...id="refxxx...)
    & not ("<citation citation-type="book" id="") alone.
    So ,to eliminate this, we have to match the string with chkEntity &
    replace only the first occurance.
    I've modified the method RemoveIfAlreadyExist.
    It works fine now.
    public String RemoveIfAlreadyExist(String line)
             int cc=1;
              Pattern Regex = Pattern.compile("<product>00000000<citation citation-type=\".*?\" id=\"\">");
              for(Matcher RegexMatcher = Regex.matcher(line); RegexMatcher.find();)
                   String chkEntity = RegexMatcher.group();
                   int lastIndex = chkEntity.lastIndexOf("\">");
                   String subchkEntity1=chkEntity.substring(0,lastIndex);
                   String s1 = Integer.toString(cc);
                   if(s1.length()==1)
                        line = line.replaceFirst(chkEntity,subchkEntity1+"ref00"+cc+"\"");
                   if(s1.length()==2)
                        line = line.replaceFirst(chkEntity,subchkEntity1+"ref00"+cc+"\"");
                   if(s1.length()==3)
                        line = line.replaceFirst(chkEntity,subchkEntity1+"ref00"+cc+"\"");
                            cc++;
              return line;
         }

Maybe you are looking for

  • Adding AirPort Extreme for a separated network?

    Hi, I'm trying to get a network setup in a small office, but the details have me swimming in the deep end with various issues (DCHP, subnet masks, etc.). Objective: Configure two separate networks that don't see each other and both provide WiFi, but

  • Problem: JSP, MySQL, UTF-8

    Hello! I use Netbeans 6.5, MySQL 5.0.67, Apache Tomcat 6.0.18, MySQL Connector J 5.1.6 to write simple web database application in JSP. Now I have problem with encoding of non-latin character strings returned from database. Database was created by qu

  • SQL Query to return all the dependent objects

    Hi, I have a question. Suppose I am creating a table with a join on 10 other tables, views etc.. And there are nested sub-queries in the CREATE statement. How can I get the list of all the dependent objects for that table without counting them manual

  • Accessing old software purchased

    I purchased CS6 in 2012 and have recently purchased a new computer that I need to put the software on. How do I access this download again? It is missing from my Adobe account.

  • Will the AIP-SSM for the ASA stop this?

    I have a client emailed me today that someone did a script injection attack on one of their web servers. It ran a backdoor Trojan virus on their web server. I know the AIP-SSM will stop the Trojan, but will it stop someone from doing the script injec