String into un readable format

Hi all,
i have filed of 120 characters, the data in the field is passed to bar code label. and i will print this barcode.
Now i will read this bar code using scanner. at that time the data present in the label is displayed in text file, this is readable by all.
but i dont wanrt this text in readable form.
Is there any function module to make it un readable. and when i need this should be radable, how to achieve this.
Rgds
Ramesh

Hi,
If you are using BARONE for desining your barcode, it generates the printer codes in background. You can simply take the code and use it in your SAP Script as it is passing the parameters.
OR Tcode SE73 - to define BARCODE fonts and use it in your form.
Hope this solves your problem very easily.
Regards,
Gaurang

Similar Messages

  • Convert XML string into an abap format date and time

    Hi,
    Does anyone know of a method or a function module in ABAP which converts XML string into an abap format date and time.
    Here is a part of the xml that I want to convert.
    <ns2:EventDateTime>2009-07-02T10:13:45+10:00</ns2:EventDateTime>
    <ns2:EventMessageTransmissionDateTime>2009-07-02T10:13:45.987+10:00</ns2:EventMessageTransmissionDateTime>
    Currently EventDateTime and EventMessageTransmissionDateTime are type XSDDATETIME_Z and these are converted to proper dates and times. We will be changing these fields to a STRING instead of XSDDATETIME_Z. The reason for this is to make the field more versatile. The customer would be receiving dates with Zulu (2009-09-23T12:00:00Z), with offsets (2009-09-23T12:00:00+10:00/-10:00) and just local timestamp (2009-09-23T12:00:00). With this, we need to make the date fields as string
    to be able to accept the various date formats (esp. the local timestamp).
    I am looking for a standard function module or method that will convert the xml string to a proper date and time abap format.
    Would appreciate anyone's help!
    Thanks.
    Edited by: eunice ocson on Jul 13, 2009 1:49 AM
    Edited by: eunice ocson on Jul 13, 2009 1:50 AM
    Edited by: eunice ocson on Jul 13, 2009 1:51 AM
    Edited by: eunice ocson on Jul 13, 2009 1:51 AM

    Hi Eunice
    Use the FM 'SMUM_XML_PARSE'
    for more info
    [Convert XML string to ABAP|XML String to ABAP or GUI]
    hope it helps you.
    Thanks!!

  • Converting a string into mySQL date format

    I have a bit of code that collects data values from a bean and I want it to then insert this into a mySQL database. My string is in the format "23/12/1983", how can i put this into a date field in my database? The bit of code I have got so far looks like this...
    String month = formHandler.month + "/";
    String day = formHandler.day + "/";
    String year = formHandler.year ;
    StringBuffer sb = new StringBuffer();
    sb.append(day);
    sb.append(month);
    sb.append(year);
    String myDate = sb.toString();myDate is the value that I want to go into the database

    Limo2kz,
    The key to inserting a date into a database is to convert the date string into an SQL friendly format. i.e. yyyy-MM-dd.
    One way of doing this is as follows:
    SimpleDateFormat NICE_DATE_FORMAT =
    new SimpleDateFormat("dd/MM/yyyy");
    SimpleDateFormat SQL_DATE_FORMAT =
    new SimpleDateFormat("yyyy-MM-dd");
    Date date = new Date();
    try {
    date = NICE_DATE_FORMAT.parse(dateString);
    } catch (ParseException pe) {
    pe.printStackTrace();
    String sqlDate = SQL_DATE_FORMAT.format(date);
    Now it is just a matter of creating the insert statement like normal, and making sure that the date string is in quotes.
    I hope that helps.
    Damian Sutton

  • How to convert a string into orcle date format

    i need some information about converting string into date format.i have string like '20-SEP-05' .so we have to convert into date formate like yy-mm-dd' (2005-09-20).how can we do it.

    Here's some code to help. I can't remember what method uses what format though
      public static java.sql.Date sqlDateValueOf( String dateString ) {
        String stringDate = null;
        if ( dateString == null || dateString.length() < 10 ) return null;
        String strDay = "";
        String strMonth = "";
        String strYear = "";
        if ( dateString.substring(4,5).equals( "-" ) ) {
          strDay = dateString.substring(8, 10);
          if ( strDay.length() < 2 ) strDay = "0" + strDay;
          strMonth = dateString.substring(5, 7);
          strMonth = dateString.valueOf(Integer.parseInt(strMonth) - 1);
          if ( strMonth.length() < 2 ) strMonth = "0" + strMonth;
          strYear = dateString.substring(0, 4);
          stringDate = strDay + "-" + strMonth + "-" + strYear;
        else if ( dateString.substring(2,3).equals( "-" ) ) {
          strDay = dateString.substring(0, 2);
          if ( strDay.length() < 2 ) strDay = "0" + strDay;
          strMonth = dateString.substring(3, 5);
          strMonth = String.valueOf(Integer.parseInt(strMonth) - 1);
          if ( strMonth.length() < 2 ) strMonth = "0" + strMonth;
          strYear = dateString.substring(6, 10);
          stringDate = strDay + "-" + strMonth + "-" + strYear;
        Calendar cal = Calendar.getInstance();
        cal.set( Calendar.YEAR, Integer.parseInt( strYear ) );
        cal.set( Calendar.MONTH, Integer.parseInt( strMonth ) );
        cal.set( Calendar.DAY_OF_MONTH, Integer.parseInt( strDay ) );
        java.sql.Date outDate = new java.sql.Date( cal.getTimeInMillis() );
        return outDate;
      public static String toDateString( java.util.Date date) {
        if ( date == null || date.toString().length() < 10 ) return null;
        String outDate = "";
        SimpleDateFormat df = new SimpleDateFormat("dd-MM-yyyy");
        outDate = df.format( date );
        return outDate;
      public static String toDateString( java.sql.Date date) {
        if ( date == null || date.toString().length() < 10 ) return null;
        String outDate = "";
        SimpleDateFormat df = new SimpleDateFormat("dd-MM-yyyy");
        outDate = df.format( date );
        return outDate;
      public static String toDateString( java.sql.Date date, String format) {
        if ( date == null || date.toString().length() < 10 ) return null;
        String outDate = "";
        SimpleDateFormat df = new SimpleDateFormat( format );
        outDate = df.format( date );
        return outDate;
      public static String toDateString( java.sql.Timestamp date) {
        if ( date == null || date.toString().length() < 10 ) return null;
        String outDate = "";
        SimpleDateFormat df = new SimpleDateFormat("dd-MM-yyyy");
        outDate = df.format( date );
        return outDate;
      }

  • How to change in sql_text into normal readable format?

    hi all
    yesterday inour production environment the dev. did wrongly updated one query.
    they want to know who and when did the changes?
    i found some info from dba_audit_object,
    but in that table the column for sql_text is not showing the full query ,it shows the update table_name set column name=new row id where =old row id..
    by using this query i dont know how to trace the sql_query in norma readble format.
    pls help me to sort out this issue..
    Thanks
    M.Murali..

    Hi
    I am little confused with your question...
    >
    they want to know who and when did the changes?
    but in that table the column for sql_text is not showing the full query ,it shows the update table_name set column name=new row id where =old row id..
    by using this query i dont know how to trace the sql_query in norma readble format.
    >
    If you are getting back the update table_name set column name=new row id where =old row id.. statement then you can get back the values you want.so, what does by using this query i dont know how to trace the sql_query in norma readble format mean.The update statement is in readable format only.
    The answer for who and when changed it is
    select USERNAME,to_char(TIMESTAMP,'DD-MON-YY HH24:MI:SS'),USERHOST,TERMINAL,OWNER,OBJ_NAME,ACTION_NAME,SQL_TEXT from DBA_AUDIT_OBJECT;
    The username will be the database username who updated the column.Timestamp will tell you the time when it was done,terminal will give the terminal name of the PC,owner is the object's owner and sql_text is the update command fired by the username on the owner's table.
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    SQL> sho parameter audit
    NAME                                 TYPE        VALUE
    audit_file_dest                      string      C:\ORACLE\PRODUCT\10.2.0\ADMIN
                                                     \MATRIX\ADUMP
    audit_sys_operations                 boolean     FALSE
    audit_trail                          string      DB, EXTENDED
    DB,EXTENDED -- As db, but the SQL_BIND and SQL_TEXT columns are also populated.
    SQL> grant select,insert,update on scott.emp to lap;
    Grant succeeded.
    *FROM THE LAP SESSION DID*
    SQL> update scott.emp set MGR=7777 where MGR=7698;
    5 rows updated.
    SQL> commit;
    Commit complete.
    FROM THE OTHER SYS AS SYSDBA SESSION
    SQL> select count(1) from sys.aud$;
      COUNT(1)
             1
    SQL> select USERNAME,to_char(TIMESTAMP,'DD-MON-YY HH24:MI:SS'),OWNER,OBJ_NAME,ACTION_NAME,SQL_TEXT from DBA_AUDIT_OBJECT;
    USERNAME                       TO_CHAR(TIMESTAMP, OWNER
    OBJ_NAME
    ACTION_NAME
    SQL_TEXT
    LAP                            15-NOV-08 17:31:45 SCOTT
    EMP
    UPDATE
    update scott.emp set MGR=7777 where MGR=7698
    So i am getting the sql_text of the update done by LAP user on the SCOTT's  EMP table.HTH
    Anand

  • Converting a Digital Voice File (DVF) into a readable format.

    Hi there,
    I just bought a Sony digital voice recorder which records files in a format that gets tagged with the extension "DVF" and a Windows machine recognizes as "digital voice file"s. I can't seem to get iTunes to read them. I'm sure it's not a compatible format, but does anyone know of a utility or program or something that will convert DVFs into something a bit more accessible (WAV, MP3, whatever?)
    Many thanks in advance for your help.
    Josh from Dublin

    Best way to find something is google "DVF converter".
    http://ron.ozrock.net/blog/index.php/tech/sony-dvf-files/

  • Converting swing components into some readable format

    Hello all,
    A requirement for the application I'm writing is for it to email automatically generated reports to various clients. My problem is that I'm not sure what would be the best format to send the reports. The reports are attached to the email and the sent via JavaMail.
    I have 2 modes of thought at this stage:
    1. Convert a Report (Printable Swing component) to HTML and either attach this or embed it in an email. Question here is how do I convert the Report to HTML?
    2. Print the Report using Adobe Distiller. Once the pdf is created, attach it to the email and send. Problem is that it's unlikely that other users of my software have Distiller. Any Swing to PDF packages that anyone knows of?
    To give you some idea of exactly what I'm doing, please look at the following 2 links.
    1. A screen shot of the Report:
    http://www.genepi.waimr.uwa.edu.au/radar/storage/report.jpg
    2. The Report after it's been printed with Distiller:
    http://www.genepi.waimr.uwa.edu.au/radar/storage/report.pdf
    Note: The previous files will be removed from the server in a couple of days.
    Also, I'm open to any other suggestion! So if anyone has a good idea, please post it!
    Thanks,
    Muel.

    Thanks for your reply.No problem. Interesting problem, as a matter of fact.
    Those reports are created dynamically from querying a
    database. A Report itself is a JDialog, the
    content-pane of which uses a custom LayoutManager.
    The LayoutManager controls a Book and decides whether
    or not to add JLabels to the current ReportPage (a
    Printable JPanel), or to create a new ReportPage and
    add them to it.This is where I don't quite agree with your approach. I don't know if you're familiar with the MVC concept because this is typically the issue you're dealing with here. I hope I'm not misinterpreting what you said but it seems you are storing the content of your database query directly in a particular View (a violation of the MVC principle).
    What you need to do is create a true Model which will hold the logic of what your Reports really are. From what I understood with your image, this class should contain member variables such as addresses, a title, funny notes ;) ...
    Displaying your report in a JDialog is all about creating the most appropriate View for that Model. Using a custom document with its own LayoutManager, JLabels... is, IMHO, a very pragmatic, convenient choice. It is not the only possible choice however. What if, in the future, you wanted to allow the user to copy / paste the report outside your application ? What if, you wanted to allow him/her to edit it prior to printing it?
    Your other requirements involve a printable version of your report and one that can be sent by email. It turns out that HTML is a good pick. Personally, I once had to print HTML and the advices I found at http://www.fawcette.com/javapro/2002_12/online/print_kgauthier_12_10_02/ were quite precious (paging is nicely handled). Moreover, sending html in a mail is piece of cake.
    All it comes down to is how to produce that HTML. Forget about my suggestion of creating a StyledDocument. It might work but writing HTML directly is much faster and easier. The only real constraint here is that the produced HTML should be 3.2 valid. In your case, this serialization should be conducted on the Model, NOT on the View.
    I forgot to mention that once you'll have produced that "html report writer" class, you'll have to reconsider using a JTextPane for your Report display JDialog.

  • Change a string into a different format

    How do I convert this
    CN=zeeeComputerName,OU=cars,OU=sales,OU=employees,OU=Desktop,DC=carplace,DC=com
    to this
    carplace.com/desktop/employees/sales/cars/zeeeComputerName

    See the complete illustration
    --variable to hold your string
    declare @str varchar(100)
    set @str= 'CN=zeeeComputerName,OU=cars,OU=sales,OU=employees,OU=Desktop,DC=carplace,DC=com'
    --Actual solution
    ;With CTE
    AS
    select LEFT(Val,CHARINDEX('=',Val)-1) AS Grp, SUBSTRING(Val,CHARINDEX('=',Val)+1,LEN(Val)) AS Val,
    ROW_NUMBER() OVER (PARTITION BY LEFT(Val,CHARINDEX('=',Val)-1) ORDER BY CASE WHEN LEFT(Val,CHARINDEX('=',Val)-1) = 'OU'THEN ID ELSE -ID END DESC) AS Seq
    from dbo.ParseValues(@str,',')
    SELECT STUFF((SELECT '.' + Val FROM CTE WHERE Grp = 'DC' ORDER BY Seq FOR XML PATH('')),1,1,'')
    + '/' + STUFF((SELECT '/' + Val FROM CTE WHERE Grp = 'OU' ORDER BY Seq FOR XML PATH('')),1,1,'')
    + '/' + STUFF((SELECT '.' + Val FROM CTE WHERE Grp = 'CN' ORDER BY Seq FOR XML PATH('')),1,1,'')
    FROM (SELECT 1 AS n) t
    ParseValues UDF can be found here
    http://visakhm.blogspot.in/2010/02/parsing-delimited-string.html
    if string is coming from a table make query as below
    --Actual solution
    ;With CTE
    AS
    select t.ColumnName,
    LEFT(Val,CHARINDEX('=',Val)-1) AS Grp, SUBSTRING(Val,CHARINDEX('=',Val)+1,LEN(Val)) AS Val,
    ROW_NUMBER() OVER (PARTITION BY LEFT(Val,CHARINDEX('=',Val)-1) ORDER BY CASE WHEN LEFT(Val,CHARINDEX('=',Val)-1) = 'OU'THEN ID ELSE -ID END DESC) AS Seq
    from YourTableName t
    CROSS APPLY dbo.ParseValues(t.ColumnName,',')
    SELECT STUFF((SELECT '.' + Val FROM CTE WHERE Grp = 'DC'
    AND ColumnName = t.ColumnName ORDER BY Seq FOR XML PATH('')),1,1,'')
    + '/' + STUFF((SELECT '/' + Val FROM CTE WHERE Grp = 'OU' AND ColumnName = t.ColumnName ORDER BY Seq FOR XML PATH('')),1,1,'')
    + '/' + STUFF((SELECT '.' + Val FROM CTE WHERE Grp = 'CN' AND ColumnName = t.ColumnName ORDER BY Seq FOR XML PATH('')),1,1,'')
    FROM (SELECT DISTINCT ColumnName FROM CTE) t
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to convert .trc into a readable format or txt file

    Hi,
    I tried using tkprof but it output similar to this :
    TKPROF: Release 10.2.0.1.0 - Production on Sun Dec 28 13:42:39 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Trace file: C:\ababil_cjq0_1044568.trc
    Sort options: default
    count = number of times OCI procedure was executed
    cpu = cpu time in seconds executing
    elapsed = elapsed time in seconds executing
    disk = number of physical reads of buffers from disk
    query = number of buffers gotten for consistent read
    current = number of buffers gotten in current mode (usually for update)
    rows = number of rows processed by the fetch or execute call
    Trace file: C:\ababil_cjq0_1044568.trc
    Trace file compatibility: 10.01.00
    Sort options: default
    1 session in tracefile.
    0 user SQL statements in trace file.
    0 internal SQL statements in trace file.
    0 SQL statements in trace file.
    0 unique SQL statements in trace file.
    238 lines in trace file.
    0 elapsed seconds in trace file
    Is this the correct output?
    Cheers,
    Sach

    Output would very based on which file you are trying to convert.
    TKProf can be run from anywhere, even from the client (for administrator type installation AFAIK) of preferably the same Oracle version.
    Best would be to run the same from the database server itself, as there would be no conflicts about versions and interpretation of trace data by the tkprof utility. F.ex. prior to 10g, all timings in trace files were in milliseconds whereas in 10g, it is saved in microseconds.

  • String into date format

    Hi
    I was wondering if anyone knew how to convert a string into different formats,
    to enable it to be stored in a mysql db.
    I was wondering anyone you knew how to convert:
    - String into the date format yyyy-mm--dd
    - String into time format 00:00:00
    - string to double
    Ive tried:
    c_date = java.sql.Date.valueOf(f_date);
    System.out.println("conversion data: " +c_date);
    c_time = java.sql.Time.valueOf(f_time);
    System.out.println(" time converted data: "+c_time);
    // string to double conversion
    c_change = java.lang.Double.valueOf(f_change);
    System.out.println(c_change);
    My class doesnt execute this at all?
    Also,
    SimpleDateFormat sdft = new SimpleDateFormat("yyyy-MM-dd");
    c_date = sdft.format(f_date);
    System.out.println(c_date);
    .. but this method returns the error incompatible types?
    Any suggestions would be helpful.. thanks in advance..

    Friends i've got similar kind of problem...can you help me
    here is my code. When i try to print the user entered date (dd/MM/yyyy)(which i am storing in a string) the program dispalys nothing. and everey time i enter a valid date it displas "invalid From date entered ". I need to store the user entered date into a string because i need that for further use. All my intesion is to get two dates from user in dd/MM/yyyy. Strore them in certain variable. Check if they are valid or not. and make sure todate is either equal or greater than fromdate. Please help me to solve this problem.
    public class EDTDateValidation extends JFrame implements ActionListener{
    private JLabel fromlabel;
    private JLabel tolabel;
    private JTextField fromtxt;
    private JTextField totxt;
    private String fmt ="dd/MM/yyyy";
    private java.lang.String fromdate;
    private java.lang.String todate;
    private JButton buttonOK;
    private JButton buttonCancel;
    private Date theDate;
    private Date date1;
    private Date date2;
    private JPanel mainPanel;
    SimpleDateFormat dtformat = new SimpleDateFormat(fmt);
    public EDTDateValidation(){
    super("Date Validation");
    dtformat.setLenient(false);
    mainPanel=new JPanel();
    mainPanel.setLayout(null);
    fromlabel = new JLabel("From Date");
    tolabel = new JLabel("To Date");
    buttonOK = new JButton("OK");
    buttonCancel = new JButton("Cancel");
    fromdate = new String();
    todate = new String();
    fromtxt = new JTextField(10);
    totxt = new JTextField(10);
    fromdate = fromtxt.getText();
    todate = totxt.getText();
    mainPanel.add(fromlabel);
    fromlabel.setBounds(20,20,50,15);
    mainPanel.add(tolabel);
    tolabel.setBounds(20,50,50,15);
    mainPanel.add(fromtxt);
    fromtxt.setBounds(90,20,130,20);
    mainPanel.add(totxt);
    totxt. setBounds(90,50,130,20);
    mainPanel.add(buttonOK);
    buttonOK.setBounds(70,80,71,23);
    mainPanel.add(buttonCancel);
    buttonCancel.setBounds(150,80,71,23);
    buttonOK.addActionListener(this);
    buttonCancel.addActionListener(this);
    setContentPane(mainPanel);
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    setSize(247,140);
    setResizable(false);
    //pack();
    public static void main(String args[]) {
    try {
    UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
    catch(Exception e) {
    System.err.println("Could not load Look and Feel" + e);
    EDTDateValidation edtDateVal = new EDTDateValidation();
    edtDateVal.setVisible(true);
    public void actionPerformed(ActionEvent e) {
    if(e.getSource() == buttonOK){
    System.out.println(fromtxt.getText());
    System.out.println(fromdate); //THIS PRINTS BLANK
    System.out.println(todate); //THIS ASWELL
    try {
    Date date = null;
    date = dtformat.parse(fromdate);
    System.out.println("valid From date entered!");
    catch(Exception f) {
    System.out.println("Invalid From date entered!");
    // textField1.setText("");
    return;
    try {
    Date date = null;
    date = dtformat.parse(todate);
    System.out.println("valid TO date entered!");
    catch(Exception f) {
    System.out.println("Invalid To date entered!");
    // textField1.setText("");
    return;
    }

  • Converting the Opaque Element into Readable format.

    Hi,
    Right now, I am using the FTP adapter to continously poll for a new file. Whenever new file comes in, our BPEL process gets initiated. We get the contents of the file in the variable of opaque element( I have given Message Schema is Opaque in the FTP Adapter configuration).
    I have to send the content of the file as the attachment in the e-mail. So when I am using the above variable in the e-mail notification, I am getting the data in the non-readable format, since the corresponding variable is of opaque schema. Now my requirement is to convert this non-readable opaque data into the readable data.
    Any help is highly appreciatable.

    Sorry the code I gave you was decodeing a hex variable into string.
    Try this code:
    String input = (String)getVariableData("InputBinary");
    Base64Decoder Decoder = new Base64Decoder();
    String decoded = Base64Decoder.decode(input);
    setVariableData("OutputString",decoded);
    you will also need to add the java class:
    <bpelx:exec import="com.collaxa.common.util.Base64Decoder"/>
    Just looking at the Base64 string you are testing. It is missing the 'g' off 'Testing'. The correct binary string should be VGVzdGluZw==
    I'm not sure how this code is getting generated but you may need to look in that.
    If you want the code to encode into binary use this:
    String input = (String)getVariableData("InputString");
    Base64Encoder encoder = new Base64Encoder();
    byte[] barray = (new String(input)).getBytes();
    BigInteger bint = new BigInteger(barray);
    String encoded = Base64Encoder.encode(barray);
    setVariableData("OutputBinary",encoded);
    add the java class:
    <bpelx:exec import="com.collaxa.common.util.Base64Encoder"/>
    sorry for putting you wrong.
    cheers
    James

  • How do I copy/paste full numerical-only account strings into the Projects WebADI template when the account segment fields in the template require use of the dropdown because they're formatted as alpha-numeric values?

    How do I copy/paste full numerical-only account strings into the Projects WebADI template when the account segment fields in the template require use of the dropdown because they're formatted as alpha-numeric values? I'm using the Integrator named "Projects - Transaction Import" and a custom Layout created based on the seeded Layout named "Transaction Import - Accounted". Do I need to somehow change my Layout to make the Document accept numerical values instead of requiring alpha-numeric values? I need to be able to populate the Document with a large amount of transactions and cannot feasibly go through every transaction to add the alpha-valued name of the account segment to every segment that requires it. The segments in particular causing the problem are "Expnd Type" and "Organization Name" which are both alpha-numeric and as such contain the segment number and name; I need to be able to only have to enter the Natural Account Number (6-digit number only) and the Organization Number (5-digit number only).

    How do I copy/paste full numerical-only account strings into the Projects WebADI template when the account segment fields in the template require use of the dropdown because they're formatted as alpha-numeric values? I'm using the Integrator named "Projects - Transaction Import" and a custom Layout created based on the seeded Layout named "Transaction Import - Accounted". Do I need to somehow change my Layout to make the Document accept numerical values instead of requiring alpha-numeric values? I need to be able to populate the Document with a large amount of transactions and cannot feasibly go through every transaction to add the alpha-valued name of the account segment to every segment that requires it. The segments in particular causing the problem are "Expnd Type" and "Organization Name" which are both alpha-numeric and as such contain the segment number and name; I need to be able to only have to enter the Natural Account Number (6-digit number only) and the Organization Number (5-digit number only).

  • A class to format an XML string into indented xml code

    I am looking for a class or a piece of code to format an XML string into indented xml code
    for example: an XML string as follows
    <servlet><servlet-name>Login</servlet-name>servlet-class>ucs.merch.client.system.LoginServlet</servlet-class></servlet><servlet-mapping><servlet-name>Login</servlet-name>
    to format into :
    <servlet>
    <servlet-name>Login</servlet-name>
    <servlet-class>ucs.merch.client.system.LoginServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Login</servlet-name>
    <url-pattern>/Login</url-pattern>
    </servlet-mapping>
    e-mail : [email protected]

    Xerces has a class called OutputFormat
    If you have your XML document in memory, you can format it using the method setIndenting(true) on the OutputFormat class. The following is an example:
    assuming xmlDoc is our document and fileName is the name of the file we wish to write to:
    OutputFormat format = new OutputFormat(xmlDoc);
    // setup output file name
    PrintWriter printwriter = new PrintWriter(new FileWriter(fileName, false));
    // construct an XMLSerializer for writing the document
    XMLSerializer serializer = new XMLSerializer( printwriter, format );
    // Ensure output is indented correctly...
    format.setIndenting(true);
    // set serializer as a DOM Serializer
    serializer.asDOMSerializer();
    // serialize the document
    serializer.serialize(xmlDoc);
    hope this helps!
    Rob.

  • Is there a way (or a plugin) to export develop settings into a readable file format?

    For online educational/sharing purposes, I'd like to be able to export my LR develop settings into a readable text format so that if I share a before/after picture I can also include the LR develop settings that went into creating the after picture.  I've looked for 2 days and I can't find a plug-in that will do this. 

    The List View plugin can export develop settings as a CSV file for Excel or HTML for a browser.
    If you're technically minded and comfortable with scripting, it's straightforward to write a script that reads the settings from the XMP metadata stored in the .xmp sidecars (for raws) or in the XMP metadata section of JPEGs and TIFFs.   Open a .xmp sidecar in your favorite text editor to get a flavor of how the develop settings are stored there.

  • REGARDING CONVERSION OF SPOOL (XML FORMAT ) INTO READABLE FORMAT

    HELLO EVRYONE, I AM GETTING MY SMARTFORM OUTPUT IN XML FORMAT ON SPOOL, I WANT TO CHECK IT SO I NEED THAT XML OUTPUT IN TEXT FORMAT OR ANY OTHER READABLE FORMAT, PLEASE REPLY ME. ITS URGENT.
    THANKS & REGARDS,
    VIMARSH B.

    Hi Check this link..
    http://www.****************/Tutorials/Smartforms/OTF2PDF.htm
    IT contains the code to convert smartform output to PDF File
    Regards,
    Sai Ramesh

Maybe you are looking for

  • The mismatch in the S_ALR_87012028 and AR02 report

    Hi I have the difference in the S_ALR_87012028 and AR02. The current book value of the S_ALR_87012028 is not matching with the AR02. The S_ALR_87012028 report is true. The problem is only with AR02. After the analysis I found that the Revaluation val

  • Iwork08 documents as email attachments

    I have an online upgrade of iWork08. However if I try to attach any created word document to an email as an attachment it will not allow it! All the documents created since the upgrade are not highlighted for selection.

  • F110 FILEGENERATED PROBLEM

    Hi Experts, We have recently implemented E Payment through F110 PWM. We have created one Z format through DMEE and assign same to all required payment methods. While executing the F110 & selecting the create payment media check ,system authomatically

  • Mailbox Limits

    Hello , Environment : Exch 2010 sp3 ru3 Need to extract report of mailbox sizes, their limits,database default true or false. I am trying Get-Mailbox -RecipientTypeDetails UserMailbox -ResultSize Unlimited |Get-MailboxStatistics | Select-Object Displ

  • ACtiveX Control

    Error message when starting Quicktime after installation. "Could not load or find Quicktime ActiveX control" Running Vista 64 bit