Convert document into string with unicode

I want to convert my document into string with all <,>,& to be converted into <, >, and &. When I am doing transformation, I am getting <,> etc.
Can anybody suggest me how to do that.
regards,
Ranjan

I don't know of any way to tell the parser to convert is for you, you'll have to replace the characters yourself after you got the string from the parser.
Aviran
http://www.aviransplace.com

Similar Messages

  • How do I merge multiple pdf documents into 1 with my iPad ?

    How do I merge multiple pdf documents into 1 with my iPad ? We are required by our customer 1 document that includes 4 different documents from different departments. Currently with our PC we can merge PDF files, excel or word files in to 1 PDF document. How can I do the same with our iPads and iPad minis using adobe?

    blogs.adobe.com We are excited to announce that Adobe CreatePDF application is now available on iOS. With this, Adobe brings rich, high-fidelity and Acrobat-like PDF creation to the iOS devices. You can now convert all your documents on iPad, iPhone & iPod touch devices to PDF for reliable, secure sharing and viewing across PCs, tablets & Smartphones.
    Robert Monsalve
    [signature removed by host]

  • Is there an easy way to convert from a String with a comma, ie. 1,000.00 to

    Is there an easy way to convert from a String with a comma, ie. 1,000.00 to a float or a double?
    thanks,
    dosteov

    Like DrClap said: DecimalFormat. However, make sure you understand the Locale things, as explained at http://java.sun.com/j2se/1.3/docs/api/java/text/DecimalFormat.html (which refers to NumberFormat as well) and use them explicitly. Like
    public class FormatTest
      public static void main(String args[])
        try
          // see NumberFormat.getInstance()
          DecimalFormat fmt = new DecimalFormat();
          Number num = fmt.parse("1,000.01");
          System.out.println(num.doubleValue());
        catch(ParseException pe)
          System.out.println(pe);
    }most likely seems OK on your system, but may print "1.0" (or even fail) on some non-English platforms!
    When performing calculations, also see http://developer.java.sun.com/developer/JDCTechTips/2001/tt0807.html
    a.

  • How to convert rows into columns with decode function

    Hi,
    How to convert rows into columns with the help of decode function in oracle.
    thanks and regards
    P Prakash

    say
    col1 col2
    1 10
    2 20
    3 30
    then use
    select col1,
    sum(decode(col2,10,10)) "new1"
    sum(decode(col2,20,20))"new2"
    sum(decode(col2,30,30))"new3"
    from table_name
    group by col1;
    we used sum u can use ny function if wont u have to give the column name i.e col2 name also
    so i think u got it nw
    regards

  • Formatting a timestamp into string with $ specifier

    Formatting a timestamp into string with $ specifier does not work; the formatted string is empty and no error is reported:
    I have forced the width to 10 to show that the format is at least partially scanned but when it is omitted the timestamp field is empty.
    I couldn't find this problem reported/addressed so here it is (LabVIEW 8.6)
    LabVIEW, C'est LabVIEW

    Yes, the simple work around is to put the timestamp first in both the string and the inputs.  But this is a bug.  There is no doubt about that.  A high priority?  Probably not.  Something that should be looked for when doing a revamp of the Format String?  Yep.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How to convert byte into string

    can any tell me how to convert byte into string
    when im an debugging thid code in eclipse it shows the result in integer format instead of string but in command prompt it is showing result in string format..........plz help
    package str;
    import java.io.*;
    public class Testfile {
    public static void main(String rags[])
    byte b[]=new byte[100];
    try{
    FileInputStream file=new FileInputStream("abc.txt");
    file.read(b,0,50);
    catch(Exception e)
         System.out.println("Exception is:"+e);
    System.out.println(b);
    String str=new String(b);
    System.out.println(str);
    }

    Namrata.Kakkar wrote:
    errors: count cannot be resolved and Unhandled exception type Unsupported Encoding Exception.
    If i write an integer value instead of "count" then Unhandled exception type Unsupported Encoding Exception error is left.This is elementary. You need to go back to [http://java.sun.com/docs/books/tutorial/|http://java.sun.com/docs/books/tutorial/] .

  • Convert Table into string, No FM is working good for this

    Hi all,
    i want to convert a table into string, but while convert, i found out that the string has special lenght , and i am getting only some rows of the table  wihle converting, even if i am using concatinate, i got the same problem,
    please let me know if there is a way to convert all the table into string and not a littel bit of it.
    BR

    I remember that you were facing the problem with the below function module
    types:begin of ty_string,
          field1 type char1024,
          end of ty_string.
    data:it type table of ty_string.
    data:wa type ty_string.
    data:out type string,
    line type string,
    rest type string.
    do 100 times.
      do 1024 times.
        concatenate 'A' wa-field1 into wa-field1.
      enddo.
      append wa to it.
    enddo.
    call function 'CONVERT_TABLE_TO_STRING'
      exporting
        i_tabline_length = '1024'
      importing
        e_string         = out
      tables
        it_table         = it.
    For me the variable out holds 102400 characters.

  • Convert Document to String ? (Java 1.3 compatible)

    Hi folks,
    hope you can help me out. I'm trying to convert a Document to String and my code must be compatible with Java 1.3.
    Using Java 1.5 this code is working:
    public static String string_output(Document doc){
              String content = "";
              try{
                   //Console output
                   TransformerFactory tranFactory = TransformerFactory.newInstance();
                   Transformer aTransformer = tranFactory.newTransformer();     
                   Source src = new DOMSource(doc);
                   StringWriter stringWriterOutput=new StringWriter();
                   Result dest = new StreamResult(stringWriterOutput);
                   aTransformer.transform(src,dest);
                   content = stringWriterOutput.toString();
              catch (Exception e){
                   System.out.println(e.getMessage());
              return contenat;
         }     But I can't use this code in Java 1.3. What can I do (except using a higher Java version)

    I think the default transform is the only standard way of converting a Document to a String.
    Xerces has a class that does the job: org.apache.xml.serialize.DOMSerializer

  • Last wish, preset converting RAW into JPG with more contrast, saturation & sharpening

    A close family member is dying and she has still many RAW files, which of course look slightly lifeless as all RAW files do. She asked me to look for a simple Lightroom preset which will convert her RAWs into Jpgs with more contrast, saturation and sharpening. She has Lightroom 3, but has no experience in making presets and neither do I. She needs the preset to make the RAW files as Jpgs available to her partner & children. No fancy effects; just simple. She cannot work on her computer anymore. Can you help me with a concrete preset or if not can you make one for her?

    This forum is for plugin developers - consider posting in 'Photoshop Lightroom' forum instead (at top of page, New -> Discussion -> Photoshop Lightroom).

  • Convert Inputstructure into String and store into DB2

    Hello All
    My requirement is I want to convert total input structure into string then stored into database single field as clob. Can anyone suggest me how will i retive input structor, is there any user defined function will i write or is there any inbuilt functionality in SAP PI. Plese suggest me
    Thanks&Regards,
    VenkatK

    Hi Swarup / Shamly
      My input structure is nearly 60 fields. Sample Structure
    <?xml version="1.0" encoding="utf-8"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
          <SOAP-ENV:Body>
             <create xmlns="urn:MySoapServices">
                <PurchaseOrder>
                   <BuyerDetails>
                        <Organization>University of Washington</Organization>
                        <Authorized_Person>
                             <FisrtName>Cease</FisrtName>
                             <LastName>Wayne</LastName>
                        </Authorized_Person>
                        <Street>Savery Hall</Street>
                        <City>Seattle</City>
                        <State>Wa</State>
                        <Zip>98195</Zip>
                        <Contact_Numbers>
                                  <Phone>888-846-6638</Phone>
                                  <Fax>212-629-1158</Fax>
                        </Contact_Numbers>
                        <Email>hidekiu.washington.edu</Email>
                   </BuyerDetails>
                   <SupplierDetails>
                        <Organization>Thomas Industrial Network</Organization>
                        <Authorized_Person>
                             <FisrtName>Cease</FisrtName>
                             <LastName>Wayne</LastName>
                        </Authorized_Person>
                        <Street>5 Penn Plaza, 10th Floor</Street>
                        <City>New York</City>
                        <State>NY</State>
                        <Zip> 10001</Zip>
                        <Contact_Numbers>
                                  <Phone>888-846-6638</Phone>
                                  <Fax>212-629-1158</Fax>
                        </Contact_Numbers>
                   </SupplierDetails>
                   <PurchaseOrderInformation>
                        <Order_Number>4556</Order_Number>
                        <Order_Delivery_Date>10-10-2006</Order_Delivery_Date>
                        <PO_Type>Finished</PO_Type>
                        <status>PO sent</status>
                   </PurchaseOrderInformation>
                   <Address>
                        <Shipping_Address>
                             <Organisation>University of Washington</Organisation>
                        <Authorized_Person>
                             <FisrtName>Cease</FisrtName>
                             <LastName>Wayne</LastName>
                        </Authorized_Person>
                             <Street>Savery Hall</Street>
                             <City>Seattle</City>
                             <State>Wa</State>
                             <Zip>98195</Zip>
                             <Email>hidekiu.washington.edu</Email>
                        </Shipping_Address>
                        <Billing_Address>
                             <Organisation>University of Washington</Organisation>
                        <Authorized_Person>
                             <FisrtName>Cease</FisrtName>
                             <LastName>Wayne</LastName>
                        </Authorized_Person>
                             <Street>Savery Hall</Street>
                             <City>Seattle</City>
                             <State>Wa</State>
                             <Zip>98195</Zip>
                             <Email>hideki</Email>
                        </Billing_Address>
                   </Address>
                   <Payment_Terms>
                        <Purchase_Order>
                             <PO_Number>456</PO_Number>
                             <Payment_Type>Bank</Payment_Type>
                             <Payment_Type_PO>
                                  <Bank>
                                       <BankName>Citibank</BankName>
                                       <AccountNumber>654987456</AccountNumber>
                                       <BranchCode>564</BranchCode>
                                  </Bank>
                                  <Credit_Card>
                                       <Payment_Type_CC>VISA</Payment_Type_CC>
                                       <CC_Number>1234 4567 7890 0123</CC_Number>
                                       <CC_Expire_Date>10-12-2012</CC_Expire_Date>
                                  </Credit_Card>
                             </Payment_Type_PO>
                        </Purchase_Order>
                        <Currency>USD</Currency>
                   </Payment_Terms>
                   <Purchase_Items>
                        <Item>
                             <Part_Name>6 foot wide 5 foot high cabinet</Part_Name>
                             <Quantity>9</Quantity>
                             <Description>Cabinets of systems</Description>
                        </Item>
                        <Item>
                             <Part_Name>6 foot wide shelves</Part_Name>
                             <Quantity>6</Quantity>
                             <Description>Shelves for books</Description>
                           </Item>
                   </Purchase_Items>
              </PurchaseOrder>           
             </create>
          </SOAP-ENV:Body>
       </SOAP-ENV:Envelope>
               I need to store whole XML structure (Including  XML version) into Database single field as a clob. not  field values. Please help me out from this issue.

  • Convert 0calmonth into 0calday with lookup on custom periods

    Hi All,
    I need to convert 0calmonth into 0calday and it has to lookup on my own calender month,period and year.
    The following custom objects are created based on infotype Change on Date ZIOI_CGON for inline with payroll periods.
    PY Reporting Month   ZIO_PYMM
    PY Reporting Period  ZIOI_PYPD
    PY Reporting Year    ZIO_PYYY
    so that i will get my actual correct data into infocube.
    PY Reporting Period  ZIOI_PYPD*
    Data : var_pypd type /BIC/OIZIOI_PYPD,
                var_cgon type /BIC/OIZIOI_CGON.
         var_cgon = SOURCE_FIELDS-/BIC/ZIOI_CGON.
      select single /BIC/ZIOI_PYPD into var_pypd
         from /BIC/PZIOI_PYPD
         where OBJVERS = 'A'
         and   DATEFROM <= var_cgon
         and   DATETO  >= var_cgon.
      if sy-subrc eq '0'.
         RESULT = var_pypd.
         else.
         RESULT = ''.
         ENDIF.
    PY Reporting Month ZIO_PYMM
    Data : var_pypd type /BIC/OIZIOI_PYPD,
                var_cgon type /BIC/OIZIOI_CGON,
                var_pymm type /BIC/OIZIO_PYMM.
         var_cgon = SOURCE_FIELDS-/BIC/ZIOI_CGON.
       select single /BIC/ZIOI_PYPD into var_pypd
         from /BIC/PZIOI_PYPD
         where OBJVERS = 'A'
         and   DATEFROM <= var_cgon
         and   DATETO  >= var_cgon.
       if sy-subrc eq '0'.
         var_pymm = var_pypd+4(2).
         RESULT = var_pyMM.
         else.
         RESULT = ''.
         ENDIF.
    PY Reporting Year  ZIO_PYYY
    Data : var_pypd type /BIC/OIZIOI_PYPD,
                var_cgon type /BIC/OIZIOI_CGON,
                var_pyYY type /BIC/OIZIO_PYYY.
         var_cgon = SOURCE_FIELDS-/BIC/ZIOI_CGON.
       select single /BIC/ZIOI_PYPD into var_pypd
         from /BIC/PZIOI_PYPD
         where OBJVERS = 'A'
         and   DATEFROM <= var_cgon
         and   DATETO  >= var_cgon.
      if sy-subrc eq '0'.
         var_pyYY = var_pypd+0(4).
         RESULT = var_pyYY.
         else.
         RESULT = ''.
         ENDIF.
    while converting into 0calday the record has to be look up on my reporting month and year.
    my req. is i need to get the start date from  pa9211 info type. we have our own payrol calender. so when we are extracting the data the data has to be in line with payroll calender
    let say if emp 12345 start date is 21/09/2009. then as per our payrol calender he will fall under into oct payroll bcz speptember payroll has been already ran.the dates were 22/08/2009 to 17/09/2009
    Appriciate if anybody advice me on this
    Regards
    Aravinda

    Solved my self

  • How convert integer into string

    Hi,
    I need to convert answer3 from double into String
    answer3 = Double.parseDouble(dij3)/(1 + Math.pow(( Double.parseDouble(tesside_luas_i) / Double.parseDouble(tesside_luas_j) ),0.5847));

    Now the integer value is string but why i cannot get valur from my servlet to my web page
    package net.mybizaid.isodms.servlet;
    import java.io.*;
    import java.util.*;
    import java.sql.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import net.mybizaid.isodms.*;
    public class SPLDataInputServlet extends HttpServlet {
         public void doPost (HttpServletRequest request, HttpServletResponse response)
         throws IOException, ServletException
    System.out.println( "******************** Calculation Servlet ******************" );
                   String dij     ;
                   String population_i ;
                   String population_j ;
                   String project_name = "";
                   String project_status = "";
                   double answer;
                   String handler = "";
                   String url                    = "";
                   double answer3;
                   String dij3 ="";
                   String tesside_luas_i ="";
                   String tesside_luas_j ="";
                   double answer2;
                   String dij2 ="";
                   String luas_i ="";
                   String luas_j ="";
                   String counter                    = "";
                   String i                                   = "";
                   handler                          = request.getParameter( "handler" );
                   dij                    = request.getParameter("dij");
                   population_i               = request.getParameter("population_i");
                   population_j               =     request.getParameter( "population_j");
                   project_name               =     request.getParameter( "project_name");
                   project_status               =     request.getParameter( "project_status");
                   dij2                    = request.getParameter("dij2");
                   luas_i               = request.getParameter("luas_i");
                   luas_j               =     request.getParameter( "luas_j");
                   dij3                    = request.getParameter("dij3");
                   tesside_luas_i               = request.getParameter("tesside_luas_i");
                   tesside_luas_j               =     request.getParameter( "tesside_luas_j");
                   HttpSession session = null;
                   session = request.getSession(true);
                   int cnt = counter != null && !counter.equals("") ? Integer.parseInt(counter) : 0;
                   int ii = i != null && !i.equals("") ? Integer.parseInt(i) : 0;
    //Tesside
    if (handler != null && !handler.equals( "" ) && handler.equals( "cal3" ))
                   try
    System.out.println("The DIJ3 value is :"+dij3);
    System.out.println("The tesside_luas_i value is :"+tesside_luas_i);
    System.out.println("The tesside_luas_j value is :"+tesside_luas_j);
                        answer3 = Double.parseDouble(dij3)/(1 + Math.pow(( Double.parseDouble(tesside_luas_i) / Double.parseDouble(tesside_luas_j) ),0.5847));
                        String str = String.valueOf( answer3 );
    System.out.println("The answer value is :"+str);
                         url = "/jsp/model/tessideAnswer.jsp";
                         dispatchErrorMsg( request, response, url, "" );
              catch (Exception e)
                        request.setAttribute("pd.errorMessage", e.getMessage());
                        dispatchErrorMsg( request, response, "/jsp/Error.jsp", e.getMessage() );
    //PotensiPasaran
    if (handler != null && !handler.equals( "" ) && handler.equals( "cal2" ))
                   try
    System.out.println("The DIJ2 value is :"+dij2);
    System.out.println("The luas_i value is :"+luas_i);
    System.out.println("The luas_j value is :"+luas_j);
                        answer2 = Double.parseDouble(dij2)/(1 + Math.sqrt(( Double.parseDouble(luas_i) / Double.parseDouble(luas_j) )));
    System.out.println("The answer value is :"+answer2);
                         url = "/jsp/model/potensiPasaranAnswer.jsp";
                         dispatchErrorMsg( request, response, url, "" );
              catch (Exception e)
                        request.setAttribute("pd.errorMessage", e.getMessage());
                        dispatchErrorMsg( request, response, "/jsp/Error.jsp", e.getMessage() );
    //Reilly
         if (handler != null && !handler.equals( "" ) && handler.equals( "add" ))
                   try
                        System.out.println("The DIJ value is :"+dij);
                        System.out.println("The population_i value is :"+population_i);
                        System.out.println("The population_j value is :"+population_j);
                        answer = Double.parseDouble(dij)/(1 + Math.sqrt(( Double.parseDouble(population_i) / Double.parseDouble(population_j) )));
    System.out.println("The answer value is :"+answer);
                         url = "/jsp/model/reillyAnswer.jsp";
                         dispatchErrorMsg( request, response, url, "" );
              catch (Exception e)
                        request.setAttribute("pd.errorMessage", e.getMessage());
                        dispatchErrorMsg( request, response, "/jsp/Error.jsp", e.getMessage() );
         public void doGet (HttpServletRequest request, HttpServletResponse response)
         throws IOException, ServletException
              doPost(request, response);
         }//end doGet
         public void dispatchErrorMsg(HttpServletRequest req, HttpServletResponse res,
                                                           String target, String message)
              try
                   RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(target);
                   req.setAttribute("eshop.ErrMessage",message);
                   dispatcher.forward(req, res);
              catch (Exception e)
                   System.err.println( e.getMessage() );
    }//end class

  • I have Adobe Reader XI.  Can I convert my PDF documents into Word with this?

    I need to be able to add merg fields into a pdf document, but I can't find a way to do this other than converting the pdf into a word document first.

  • How To Convert XML into String?

    Hi,
    I have a requirement in which I need to convert the data from XML file to string.
    E.g.
       <Drawing>
          <DrawingSpecification>
             <Header>
                <SoldTo>SDN</SoldTo>
                <SoldToName>SAP</SoldToName>
                <Date/>
                <Manager>CEO</Manager>
                < Plant>INDIA</Name>
                <Items>
                   <Item>
                       < MaterialNumber>MatNum12</ MaterialNumber>
                       <ProductNumber>ProName12</ ProductNumber>
                   </Item>
               </Items>
               < ClientId>ClientID123</ ClientId>
               <FileName>FileName123</FileName>
               <Type/>
               < TemplateName/>
          </DrawingSpecification>
          <Image contentType=""/>
       < /Drawing>
    Output should be like:
       < File>
          < Content> SDN SAP CEO INDIA MatNum12 ProName12 ClientID123 FileName123</Content>
       < /File>
    Please provide solution for the same.
    Thanks,
    Abhishek.

    what about something like this
    package test;
    import java.io.File;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import org.w3c.dom.Document;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    public class Test {
         public static void main(String args[]) throws Exception {
              DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
              DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
              Document doc = docBuilder.parse(new File("test.xml"));
              StringBuffer buffer = new StringBuffer();
              appendChildren(buffer, doc.getChildNodes());
              System.out.println(buffer.toString());
         private static void appendChildren(StringBuffer buffer, NodeList list) {
              for (int i = 0; i < list.getLength(); i++) {
                   Node node = list.item(i);
                   if (node.getNodeValue() != null) {
                        if (node.getNodeValue().trim().length() > 0) {
                             buffer.append(node.getNodeValue()).append("|");
                   appendChildren(buffer, node.getChildNodes());
    ...btw: IMHO the use of this forum is to get an answer to an particular question - not to ask for complete solutions - create the solution yourself an ask if you are stuck somewhere (with a bit of research (google) it is not hard to find a solution for your problem)
    regards franz
    ...close thread if question is answered

  • How to put org.w3c.dom.Document into String

    Hello!
    I have some sample xml file with xml schema (xsd file). After parsing this sample file into org.w3c.dom.Document I would like to put it into the string and print out for test purpose only. But I don't know how to do it.
    I would like to print something like
    <somebody>
    <first>First somenthing</first>
    <second>Second something</second>
    </somebody>
    Thanks for your advices.

    The function you have specified works fine and gives back the string from DOM object.But it ruins all the formatting associated with the XML (like new line character)
    Is there any way to overcome it?
    Currently if i have a xml as
    <student>
    <firstname>
    </firstname>
    </student>
    The output of the code u have sent strips off the new line characters and returns everything in a single line as below:
    <student> <firstname> </firstname> </student>
    Thanks for any help associated with above problem.

Maybe you are looking for