Inserting xml in sqlplus with semi colon at end of line

Hi
I'm trying to insert some generated XML. There are carriage returns in the XML and some lines have a semi colon at the end. The SQLPLUS interface is taking the semi colon as the instruction to execute. Can I mask the semi colon so it's not interpreted as the instruction to execute so the insert will work.Sample code below.
insert into mytab REQUEST_XML, XML_FLAG_YN)
values ('DS_REQUEST_HEADER;
OPERATIONAL;
SDSDL>'
'Y');
SQL> insert into mytab REQUEST_XML, XML_FLAG_YN)
2 values ('DS_REQUEST_HEADER;
ERROR:
ORA-01756: quoted string not properly terminated
SQL> OPERATIONAL;
SP2-0734: unknown command beginning "OPERATIONA..." - rest of line ignored.
SQL> SDSDL>'
SP2-0042: unknown command "SDSDL>'" - rest of line ignored.
SQL> 'Y');
SP2-0042: unknown command "'Y')" - rest of line ignored.
SQL>
Thanks

SQL> create table mytab (request_xml varchar2(2000), xml_flag_yn varchar2(1));
Table created.
SQL> insert into mytab (request_xml, xml_flag_yn)
  2  values ('DS_REQUEST_HEADER;
ERROR:
ORA-01756: quoted string not properly terminated
SQL> ed
Wrote file afiedt.buf
  1  begin
  2    insert into mytab (request_xml, xml_flag_yn)
  3    values ('DS_REQUEST_HEADER;
  4  OPERATION;
  5  <SDSDSD>',
  6  'Y');
  7* end;
SQL> /
PL/SQL procedure successfully completed.
SQL> select * from mytab;
REQUEST_XML
X
DS_REQUEST_HEADER;
OPERATION;
<SDSDSD>
Y

Similar Messages

  • How to save an excel file as CSV with semi-colon as data separator?

    We are creating a flat data file to load the flat file data to our BW system with Excel.  When we save the file, there are three kinds of CSV types for selecting from the "Save as type" list box:
    CSV (Comma delimited)
    CSV (Macintosh)
    CSV (MS-DOS)
    There is no CSV (semi colon delimited) type.  If we pick CSV (Comma delimted) as the type, then when clicking the "Preview ..." picture icon under the "DataSource/Trans. Structure" tab of the InfoSource for this flat file (with the CSV radio button checked the Data separator default is ";"), the File Upload Preview window shows the data is messed up that some columns of the excel flat file are combined into one column.
    Since the save type we picked is "CSV (Comma delimited)", then we try to change the default Data separator from ";" to "," in the preview selection screen, but still not helpful!
    How to resolve the above problem?
    Thanks

    Hi Kevin,
    This "," is defined in your windows setting. If you want to have ";" as separator then go to control Panel, select Regional Options, go to Numbers Tab and define the List separator as ";". After that when you will save your excel file as CSV(MS-DOS) it will have ";" as separator. This will make sure that the amounts are not broken in to two different fields while loading.
    Else if you keep "," as separator then you can also go into the Excel and define all number fields as Number without thousand separator.
    Let me know if you have any doubts in this.
    Regards,
    Rohit

  • Help with error message: Expected end of line but got identifier

    The following is a calculated applescript step in a Filemaker script. It tells iCal to go to the date of an iCal event that the script has previously created from Filemaker. The code below keeps generating an error message: "Expected end of line but got identifier." Note: "ACTIVITY::Date" below is Filemaker's way of indicating the file name (ACTIVITY) and the field in question (date). Help appreciated.
    "tell application \" iCal\" ¶
    activate ¶
    switch view to month view ¶
    set theDate to date \"" & ACTIVITY::Date & "\" ¶
    view calendar at theDate ¶
    end tell"

    It's not clear exactly what you're aiming for here, so it's not easy to tell you how to fix it.
    At first glance I'd say you're missing a quote symbol or two, but even then it doesn't make a lot of sense without more context - for example, 'ACTIVITY::Date' isn't valid as an AppleScript variable name (you can't have a : in a variable name), and your code isn't within a Filemaker block, so it doesn't appear to relate to Filemaker, either.
    In either case the only thing that looks remotely valid to me would be:
    set theDate to date "\"" & ACTIVITY::date & "\""
    but without knowing the context of ACTIVITY::Date it's impossible to tell if this is valid, or how it differs from:
    set theDate to date ACTIVITY::Date
    (i.e., why the quotes are needed at all)

  • SQLPLUS script execution vs semi-colon

    Hi everyone,
    is there a way to configure sqlplus such that when a statement (e.g. an INSERT) do not have a semi-colon at the end (or et / on the beginning of the next line) an error is returned?
    Here is an example:
    INSERT INTO emp (emp_no, emp_name) values (5, 'john')
    INSERT INTO emp_status (emp_no, status) values (5, 'full time');
    Running a script containing these two lines with sqlplus won't do the first insert and won't give an error.
    By default these human errors are treated silently by sqlplus.
    I am almost sure there is no mean to detect that but in case I am wrong, I ask the question.
    Best regards.
    Carl

    Hi, Carl,
    plhtyuk wrote:
    Hi everyone,
    is there a way to configure sqlplus such that when a statement (e.g. an INSERT) do not have a semi-colon at the end (or et / on the beginning of the next line) an error is returned?
    SET   SQLBLANKLINES  ONtells SQL*Plus that a single SQL statement can include lines that contain nothing but whitespace, or are completely empty.
    Here is an example:
    INSERT INTO emp (emp_no, emp_name) values (5, 'john')
    INSERT INTO emp_status (emp_no, status) values (5, 'full time');
    Running a script containing these two lines with sqlplus won't do the first insert and won't give an error.If SQLBLANKLINES is ON, then SQL*Plus will think all 3 lines above are part of the same SQL statement, and you'll get a syntax error. Neither INSERT will be done.
    By default these human errors are treated silently by sqlplus.
    I am almost sure there is no mean to detect that but in case I am wrong, I ask the question.There ought to be a more straightforward way to request warnings when you forget a ;. If it was up to me, I would have made that the default behavior.

  • Author metadata separated by semi-colons truncated in file properties and "Get Info"

    I'm using Acrobat Professional 9.0 (CS3) for Mac to edit the metadata for a collection of PDFs to be made available on the web. When I enter the data, I am inputting a list of authors separated by commas, like this: Smith J, Watson C, Brown J. If I click on "Additional metadata", the data I've already entered is transposed into the various XMP fields. And the commas separating the author names are changed to semi-colons. I gather that this happens because XMP wants to separate multiple authors with semi-colons, and Acrobat wants the metadata in XMP fields to match the metadata stored for the file properties. Fine.
    However, if I save such a PDF and then use Get Info on my Mac (OSX 10.4) to look at the file properties, the list of authors is now truncated where the first semi-colon appears. The list is also truncated in Windows XP if I right-click and select properties. The list is also truncated when I look at the file properties in Preview on my Mac, or if I look at file properties using FoxIT, or using Adobe Acrobat Reader 7 or earlier. The only way a site visitor will actually be able to view the full list of authors in a file saved this way is to use Adobe Reader version 8 or later.
    I would like to preserve XMP/Dublin Core/etc metadata in the proper format in the XMP code, but would also like users of standard, popular file viewers to be able to access the full list of authors. Is there a way to do this with Acrobat 9?
    Also, once I've saved a file and the XMP metadata has been altered, Acrobat seems to permanently change the way that the authors are listed in the file properties. I cannot manually change those settings any longer without Acrobat overriding my changes and converting commas to semi-colons, or surrounding the entire list of authors in quotation marks. Is there a way to get around these Acrobat overrides and manually take control of my metadata again?
    Does Windows Vista read the authors list correctly in the file properties if it is separated by semi-colons?
    It seems to me that in an attempt to get XMP metadata working smoothly across the entire CS line, Adobe has jumped the gun somewhat and is now forcing Acrobat users to use "file properties" metadata that is really only fully compatible with Adobe products. Is there a way I can get some backwards compatibility on this?
    Thanks for any suggestions or insight anyone can provide to this vexing issue.
    Phil.

    Bridge has some pretty powerful and helpful features. However, I am unable to figure out how to access the non-XMP "file properties" fields through Bridge, and if I add metadata via Bridge, then I run into the same problem regarding the use of semi-colons to separate authors.
    If I had more time, or a larger set of files I might investigate the use of ExtendScript to import all my metadata from an Excel file (where it already exists) into the PDF file properties and XMP metadata.
    The best solution for my case though appears to be to use Acrobat 9 and to do the double-edit process for each file. I should be able to just cut-and-paste the metadata from the Excel file, and then if I save the Authors list to the end, I can simply paste it once into the XMP field (through the Advanced metadata button) and then return to the regular file properties page and paste it again in there, where Acrobat will add quotes around it.
    Lastly, if anyone else happens to find this post and is looking for similar information, I would recommend searching in the Bridge forum as well as the Acrobat forum.
    Phil.

  • Semi-colon CSV export

    Hi all,
    the export to CSV with semi-colon is still not available?
    I tried to search on support.oracle.com but the Bug:13243267 is not accessible.
    thanks a lot

    You mean this?

  • Semi-Colon error when installing J2SE SDK

    Hello!
    When I try to install J2SE SDK I get error:
    "A path with semi-colon in it, is not supported for this product. Please select a directory path without a semi-colon."
    The path is:
    C:\j2sdk1.4.2_09\
    Please help!

    Use this installer
    http://www.microsoft.com/downloads/details.aspx?familyid=889482FC-5F56-4A38-B838-DE776FD4138C&displaylang=en
    That was usefull by me and ohters (forum where I find it), i was that problem when i re installed my XP SP2 with UE installer, any version of JSDK was fuctioning by me (1,4.. 1,6). then all was OK
    Try it
    http://www.microsoft.com/downloads/details.aspx?familyid=889482FC-5F56-4A38-B838-DE776FD4138C&displaylang=en

  • Flash Pro CS6 BUG - inconsistent end of line for xml files in library saved in xfl - MESSES UP SVN

    When saving in XFL with Flash CS6 on Mac (it also happened in CS5.5), the generated xml files in library often have inconsistend end of line, which blocks SVN commits and I have to manually go in the files and make them consistent.
    The XML nodes themselves all have \r\l as end of line, while, within <[CDATA[]]>, they only have \r.
    We think this happens only when creating new library items on mac, on windows it doesn't happen.
    This slows us down incredibly when working on a team using svn.
    SVN doesn't upload files with inconsistend line ending.
    Line ending shoul be consistent within the same xml file to make svn operations smooth.
    Check an image of the bug:
    http://www.pippoflash.com/_test/flash_bug_eof.png
    you can see clearly the differences.
    thank you
    Filippo

    Thanks Filippo, I could see that now!
    While I was investigating this, I found that this is even happening on a file created and saved on just Windows. I was able to reproduce this using the following steps
    - Create a new AS3 file on Windows
    - Drag out a component to the stage say a Button component from the User Interface section of the Components panel
    - Convert the button component to a Movie Clip Symbol
    - Save the file as XFL and examine the Library XML files (the End of Line is just 'LF' in CDATA section whereas it is 'CR LF' everywhere else)
    Since you were saying 'Items created in windows have no problem', does that means, SVN can commit those without any issues for you? And do you face problem only when the file is Created and Saved on Mac(where the end of line is just LF every where) but Modified and Re-saved on Windows(where the end of line is inconsistent)? 
    Thanks!
    Mohan

  • Applescript compile fails with "Expected end of line, etc. but found identifier"

    Hi,
    I've written my first applescript to move messages in Micorosoft Outlook to a specific folder.  It is based on existing scripts I found on the internet.  However my version keeps failing to compile with the error "Expected end of line, etc. but found identifier".  I tried the exact same script on another Mac and it works.  I created a very simple version of the script to show the error.  All I am trying to do is get the current selected messages so I can move them:
    on run {}
        tell application "Microsoft Outlook"       
            set selectedMessages to current messages
        end tell
    end run
    and I still get the same errors on the word "messages" above.
    MAC is running OSX 10.9.4
    Microsoft Outlook for Mac 2011 - version 14.4.3 (140616)
    Since the script works on other computers the only thing I can assume is something wrong with the setup.
    Any help is greatly appreciated.
    - Ben

    Frank Caggiano wrote:
    twtwtw
    Any reason that the parens would be needed on some cases and not in others? As you can see the code the OP posted compiled fine on my system with no need of the parens. Also the OP mentioned that the code did work on one machine but not another so I would assume again the parens were not needed in that case.
    JUst curious
    regards
    Parentheses have the same function here as they do in mathematical equations. They are cues to the compiler about the order in which different parts of the statement should be processed. The problem here, I think, is that the word current is part of a lot of applescript nouns: current date, current application, current messages, current user, current track, current location, etc. That's exacerbated by the fact that message is also a noun in its own right in Outlook, creating an ambiguous bit of grammar. Applescript has to interpret the presence of that word in context, and several factors - different versions of the OS or of the relevant applications, the presence of different osaxen, runtime issues that alter how the Applescript system reads in the scriptability information - could affect how that interpretation plays out.
    Context is (apparently) everything, sometimes.

  • Problem with SAX parser - entity must finish with a semi-colon

    Hi,
    I'm pretty new to the complexities of using SAXParserFactory and its cousins of XMLReaderAdapter, HTMLBuilder, HTMLDocument, entity resolvers and the like, so wondered if perhaps someone could give me a hand with this problem.
    In a nutshell, my code is really nothing more than a glorified HTML parser - a web page editor, if you like. I read in an HTML file (only one that my software has created in the first place), parse it, then produce a Swing representation of the various tags I've parsed from the page and display this on a canvas. So, for instance, I would convert a simple <TABLE> of three rows and one column, via an HTMLTableElement, into a Swing JPanel containing three JLabels, suitably laid out.
    I then allow the user to amend the values of the various HTML attributes, and I then write the HTML representation back to the web page.
    It works reasonably well, albeit a bit heavy on resources. Here's a summary of the code for parsing an HTML file:
          htmlBuilder = new HTMLBuilder();
    parserFactory = SAXParserFactory.newInstance();
    parserFactory.setValidating(false);
    parserFactory.setNamespaceAware(true);
    FileInputStream fileInputStream = new FileInputStream(htmlFile);
    InputSource inputSource = new InputSource(fileInputStream);
    DoctypeChangerStream changer = new DoctypeChangerStream(inputSource.getByteStream());
    changer.setGenerator(
       new DoctypeGenerator()
          public Doctype generate(Doctype old)
             return new DoctypeImpl
             old.getRootElement(),
                              old.getPublicId(),
                              old.getSystemId(),
             old.getInternalSubset()
          resolver = new TSLLocalEntityResolver("-//W3C//DTD XHTML 1.0 Transitional//EN", "xhtml1-transitional.dtd");
          readerAdapter = new XMLReaderAdapter(parserFactory.newSAXParser().getXMLReader());
          readerAdapter.setDocumentHandler(htmlBuilder);
          readerAdapter.setEntityResolver(resolver);
          readerAdapter.parse(inputSource);
          htmlDocument = htmlBuilder.getHTMLDocument();
          htmlBody = (HTMLBodyElement)htmlDocument.getBody();
          traversal = (DocumentTraversal)htmlDocument;
          walker = traversal.createTreeWalker(htmlBody,NodeFilter.SHOW_ELEMENT, null, true);
          rootNode = new DefaultMutableTreeNode(new WidgetTreeRootNode(htmlFile));
          createNodes(walker); However, I'm having a problem parsing a piece of HTML for a streaming video widget. The key part of this HTML is as follows:
                <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
                  id="client"
            width="100%"
            height="100%"
                  codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
                  <param name="movie" value="client.swf?user=lkcl&stream=stream2&streamtype=live&server=rtmp://192.168.250.206/oflaDemo" />
             etc....You will see that the <param> tag in the HTML has a value attribute which is a URL plus three URL parameters - looks absolutely standard, and in fact works absolutely correctly in a browser. However, when my readerAdapter.parse() method gets to this point, it throws an exception saying that there should be a semi-colon after the entity 'stream'. I can see whats happening - basically the SAXParser thinks that the ampersand marks the start of a new entity. When it finds '&stream' it expects it to finish with a semi-colon (e.g. much like and other such HTML characters). The only way I can get the parser past this point is to encode all the relevant ampersands to %26 -- but then the web page stops working ! Aaargh....
    Can someone explain what my options are for getting around this problem ? Some property I can set on the parser ? A different DTD ? Not to use SAX at all ? Override the parser's exception handler ? A completely different approach ?!
    Could you provide a simple example to explain what you mean ?
    Thanks in anticipation !

    You probably don't have the ampersands in your "value" attribute escaped properly. It should look like this:
    value="client.swf?user=lkcl&stream=...{code}
    Most HTML processors (i.e. browsers) will overlook that omission, because almost nobody does it right when they are generating HTML by hand, but XML processors won't.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Error when inserting xml with xsi:noNamespaceSchemaLocation

    Hello,
    Hopefully this isn't a stupid question....
    I am currently using Oracle 9.2.0.6.0 to try out XML.
    I haven't been able to get our DBAs to set up XML DB in its entirety so I just have the basics, i.e. I have access to the xmltype object but none of the packages like DBMS_SCHEMA and DBMS_XDB. Therefore, I haven't been able to register any schemas in the database.
    So what I'd like to know is why do I get an ORA-21700 error when I try to load an xml document which has the 'xsi:noNamespaceSchemaLocation' attribute'. If I take this out of the XML document, it loads.
    From my initial reading, I got the impression that registering a schema in order to validate documents was an optional, although probably an ideal, step to take.
    So another way of phrasing this subject might be: can one insert xml documents without the use of a schema?
    The example code is shown below.
    dbase> INSERT INTO MY_TABLE( id , message_type , status , rcvd_time, filename , xmlcol)
    2 VALUES ( 1, 0 , 'RECEIVED', sysdate , 'tempfilename' ,
    3 xmltype('<ExampleXML xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
    4 xsi:noNamespaceSchemaLocation = "ExampleXML.xsd">
    5 <tag1>
    6 <tag2 attr1="something">Some data
    7 </tag2>
    8 </tag1>
    9 </ExampleXML>')
    10 );
    xmltype('<ExampleXML xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
    ERROR at line 3:
    ORA-21700: object does not exist or is marked for delete
    ORA-06512: at "SYS.XMLTYPE", line 0
    ORA-06512: at line 1
    dbase> ed
    Wrote file afiedt.buf
    1 INSERT INTO MY_TABLE ( id , message_type , status , rcvd_time, filename , xmlcol)
    2 VALUES ( 1, 0 , 'RECEIVED', sysdate , 'tempfilename' ,
    3 xmltype('<ExampleXML xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
    4 >
    5 <tag1>
    6 <tag2 attr1="something">Some data
    7 </tag2>
    8 </tag1>
    9 </ExampleXML>')
    10* )
    dbase> /
    1 row created.
    The xmlcol column was created simply as an xmltype column.

    Basically using XMLType without XML DB is almost impossible in 9.2.x. Please have the DBA's install XML DB by running the script $ORACLE_HOME/rdbms/admin/catqm.sql. They can follow the installing XDB instuctions in the XML DB Developer's guide.
    What is actually happening here is that the PARSER is hard wired to always check is a document that contains an noNamespaceSchemaLocation or schemaLocation tag is associated with an XML Schema that has been registered with Oracle XML DB. If is is, special action is takem, if it isn't then no special action is taken. Unfortunately for various arcane technical reasons if the the XDB repository is not present the check fails totally. Even if we fixed this bug, which has been marked not feasible to fix in the past, there are many other issues with the inbuilt XML technology having dependancies on the presence of the XML DB repository and XDB database user.
    So the net/net is don't use XMLType or any XML related features in 9.2.x or later unless XML DB is installed. It is extremenly likely at this point in time that XML DB will become a mandatory component of the next release of the database. At that point you will no longer have an option. It will be automatically installed when a database is created or updated and there will be no way of un-installing it.

  • Inserting XML String into Table with help of Stored Proc

    I will be getting XML String from JAVA, which I have to insert in Table A, XML String is as follows
    <?xml version = '1.0'?>
    < TableA>
    <mappings Record="3">
    < MESSAGEID >1</ MESSAGEID >
    < MESSAGE >This  is available at your address!</ MESSAGE>
    </mappings>
    <mappings Record="3">
    < MESSAGEID >2</ MESSAGEID>
    < MESSAGE >This isn’t available at your address. </ MESSAGE>
    </mappings>
    </ TableA >
    Table Structure*
    MESSAGEID     VARCHAR2(15 BYTE)
    MESSAGE     VARCHAR2(500 BYTE)
    This is the stored procedure which I have written to insert data into TableA, V_MESSAGE will be input parameter for inserting XML String 
    create or replace procedure   AP_DBI_PS_MESSAGE_INSERT
    V_MESSAGE VARCHAR2(1024)
    AS
    declare
    charString varchar2(80);
    finalStr varchar2(4000) := null;
    rowsp integer;
    V_FILEHANDLE UTL_FILE.FILE_TYPE;
    begin
    -- the name of the table as specified in our DTD
    xmlgen.setRowsetTag('TableA');
    -- the name of the data set as specified in our DTD
    xmlgen.setRowTag('mappings');
    -- for getting the output on the screen
    dbms_output.enable(1000000);
    -- open the XML document in read only mode
    v_FileHandle := utl_file.fopen(V_MESSAGE);
    --v_FileHandle := V_MESSAGE;
    loop
    BEGIN
    utl_file.get_line(v_FileHandle, charString);
    exception
    when no_data_found then
    utl_file.fclose(v_FileHandle);
    exit;
    END;
    dbms_output.put_line(charString);
    if finalStr is not null then
    finalStr := finalStr || charString;
    else
    finalStr := charString;
    end if;
    end loop;
    -- for inserting the XML data into the table
    rowsp := xmlgen.insertXML('ONE.TableA',finalStr);
    dbms_output.put_line('INSERT DONE '||TO_CHAR(rowsp));
    xmlgen.resetOptions;
    end;Please Help
    Edited by: 846857 on Jul 18, 2011 10:55 PM

    with t as (select xmltype('<TableA >
                               <mappings Record="3">
                               <MessageId>1</MessageId>
                               <Message> This bundle is available at your address!</Message>
                               </mappings>
                               <mappings Record="3">
                               <MessageId>2</MessageId>
                               <Message>This isn’t available at your address. </Message>
                               </mappings>
                               </TableA  >') col FROM dual)
      --End Of sample data creation with subquery factoring.
      --You can use the query from here with your table and column name.
    select EXTRACTVALUE(X1.column_value,'/mappings/MessageId') MESSAGEID
          ,EXTRACTVALUE(X1.column_value,'/mappings/Message') MESSAGE
    from t,table(XMLSEQUENCE(extract(t.COL,'/TableA/mappings'))) X1;Above Code works as i get result
    MESSAGEID     MESSAGE
    1             This bundle is available at your address!
    2             This isn’t available at your address.
    _____________________________________________ now I want to insert the result into Table A... How to proceed... Please help
    Edited by: 846857 on Jul 19, 2011 12:15 AM

  • Having a spot of bother with expected semi colons

    Hello there, i am currently attempting to get snow to display on a java applet using a random number generator. When i compile the program i am getting the same error message for line 24 and 28.
    " ';' expected' " I can't figure out where the semi-colons are meant to go..i was wondering would any1 know what the matter is please...although if i do i would probably get more errors...my code is displayed below...any1 know what the matter is? thanks..i have labelled line 24 ad 28 for your benefit.
    import java.awt.geom.Ellipse2D;
    public class snow
         private int xLocation;
         private int yLocation;
         private int width;
         private int height;
         int random = randomNumberGenerator();
         public snow(int x, int y, int w, int h)
              xLocation = x;
              yLocation = y;
              width = w;
              height = h;
              drawsnow();
    public class drawsnow
         public drawsnow()
    24>          draw a snow (= randomGenerator())
              for(int i = 0; i <= 20, i++ )
    28>     public draw a snow()
              Ellipse2D.Double circle =
                   new Ellipse2D.Double( x, y, diameter, diameter);
              g.2draw(circle;)
         public static void main(String[]args)
              JFrame frame = new JFrame();
              final int FRAME_WIDTH = 300;
              final int FRAME_HEIGHT = 400;
              frame.setSize(FRAME_WIDTH, FRAME_HEIGHT);
              frame.setTitle("Snow Amigo");
              frame.set.DefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              snow component = new snow();
              frame.add(component);
              frame.setVisible(true);
    }

    Method names (any identifiers) can't have spaces in them - ie "draw a snow"
    Method declarations must have return types (eg "void")
    Your "for()" loop on 25 has no body
    Line 32 is completely up the spout :o)
    ok thanks...where do i put the void in?, how to i put a body on for on line 25 and how do i fix the spout lol???
    import java.awt.geom.Ellipse2D;
    public class snow
         private int xLocation;
         private int yLocation;
         private int width;
         private int height;
         int random = randomNumberGenerator();
         public snow(int x, int y, int w, int h)
              xLocation = x;
              yLocation = y;
              width = w;
              height = h;
              drawsnow();
         public drawsnow()
              drawsnow (= randomGenerator())
         24>     for(int i = 0; i <= 20, i++ )
         public drawasnow()
              Ellipse2D.Double circle =
                   new Ellipse2D.Double( x, y, diameter, diameter);
              g.2draw(circle;)
         public static void main(String[]args)
              JFrame frame = new JFrame();
              final int FRAME_WIDTH = 300;
              final int FRAME_HEIGHT = 400;
              frame.setSize(FRAME_WIDTH, FRAME_HEIGHT);
              frame.setTitle("Snow Amigo");
              frame.set.DefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              snow component = new snow();
              frame.add(component);
              frame.setVisible(true);
    }

  • Importing XML Text files with Indesign friendly 'Carriage Returns'

    Hi,
    I have a question wrt importing XML into Indesign.  I have my text stored in Excel (Fig A) and intend to export as an XML file where each line will represent each page.  However, my first attempt failed to treat the 'carriage returns' as I'd envisaged:
    The 'carriage returns' used within an Excel cell (ALT-ENTER) are maintained when transforming to a CSV file (Fig B).  However, when converting to an XML file, the conversion only takes place on a line by line basis and hence the XML file becomes incomplete (Fig C).
    So, it appears I need to make sure that the CSV file contains one line per entry, while also maintaining the actual carriage returns in my source spreadsheet and for Indesign to recognise them.  In order to do this, I'll need to substitute the 'carriage returns' in my excel column to be represented by a new set of characters.  My question is how can I let Indesign know to recognise this set of characters to be converted to a carriage return, when importing text.
    For example, if this set of characters was '%%%%%%', then my new csv file would look like Figure D and the XML would be produced correctly, like Figure E.  Then importing this XML file to InDesign, the carriage returns would automatically be reinstated, hopefully.
    I hope someone can help me as I am only starting out in Indesign and feel Im running before I can walk by venturing into the XML/Indesign arena too soon.
    Best Regards
    Luke

    Hi,
    Thanks for all the responses.
    With regard to XML, it could well be an issue has crept in because I am using another utility to convert my csv's to xml and maybe there are better options out there. I will take a look for other utilities and try that (Its not possible from Excel easily, even though there is an option to save as an XML file).
    Secondly, because the XML was readable by internet explorer, I assumed it had a satisfactory standard XML format which would be accepted by any program, including InDesign.  This proved true, since the XML file i generated was actually recognised by my Indesign document and populated the tags correctly, albeit without any carriage returns. 
    When I save my excel sheet as a csv, it does actually hold the carriage returns causing multiple lines per entry, hence why I need to substitute the actual carriage returns in my excel sheet to a alternative character set so that the entry remains on one line.
    Re: Double quotes on text fields.  Im sorry, I didnt realise I had commas in my sample csv example.
    I should have corrected it, but I intend on using semi-colons as my csv delimiter and don't intend on having semi-colons in my excel sheet itself, so I possibly won't need any double-quotes.
    So, it looks like this is what I need to do ;
    i)   Add a column in Excel which substitutes all the carriage returns with a line break identifier (^n).
    ii)  Convert Excel file to a semi-colon csv holding this new column,
    iii) Convert csv file to XML using a good CSV->XML utility,
    iv)  Add the respective XML tags to my INDD document,
    v)   Add a GREP rule which does a find/replace on all instances of ^n and replace with a line break,
    vi)  Import the XML file,
    vii) Apply the find/replace GREP rule on the whole document. Carriage returns on my text fields should be consistent with my original excel sheet.
    Thanks for all your help fellas.  Will report on how I get on once Im done.
    Best Regards
    L

  • Semi Colon issues

    What is wrong with my Semi Colon? I'm getting an error 102 around the ; but if I take it out,
    I'm getting the error that I need a colon. The colon is right before the WITH statement.  The Select statement looks correct.  Please help, I'm a newbie.
    Select * INTO TradesMoxyImport
    From
    ;WITH ClientsTable AS (SELECT ClientID, Autex
    FROM Clients
    WHERE (ActiveAcct = 'Active') AND (Directed = 'no') AND (Taxable LIKE '%' + '%')), AxysPal AS
    (SELECT Autex, Quantity, PctAssets
    FROM AxysPals
    WHERE (SecType = 'csus') AND (Ticker = 'ace'))
    SELECT ClientsTable_1.Autex, ClientsOnePercent.SortOrder, CASE WHEN ROUND(ClientsOnePercent.PctEqty * AxysAUM.Total * CONVERT(DECIMAL(3, 2), 5) / 100 / 113.52,
    0) > ISNULL(AxysPal_1.Quantity, 0) THEN ROUND(ClientsOnePercent.PctEqty * ROUND(AxysAUM.Total, 0) * CONVERT(DECIMAL(3, 2), 5)
    / 100 / 113.52 - ISNULL(AxysPal_1.Quantity, 0), 0) END AS BuyQty, CASE WHEN ROUND(ClientsOnePercent.PctEqty * AxysAUM.Total * CONVERT(DECIMAL(3, 2), 5)
    / 100 / 113.52, 0) < ISNULL(AxysPal_1.Quantity, 0) THEN ROUND(ISNULL(AxysPal_1.Quantity, 0)
    - ClientsOnePercent.PctEqty * AxysAUM.Total * CONVERT(DECIMAL(3, 2), 5) / 100 / 113.52, 0) END AS SellQty
    FROM ClientsOnePercent INNER JOIN
    ClientsTable AS ClientsTable_1 ON ClientsOnePercent.ClientID = ClientsTable_1.ClientID INNER JOIN
    AxysAUM ON ClientsTable_1.Autex = AxysAUM.Autex LEFT OUTER JOIN
    AxysPal AS AxysPal_1 ON ClientsOnePercent.Autex = AxysPal_1.Autex
    WHERE (ClientsOnePercent.OnePctGroupID = 1) AND (ClientsOnePercent.BuyRule IS NULL) AND (ClientsOnePercent.SellRule IS NULL)
    ORDER BY ClientsOnePercent.SortOrder
    pvong

    Hunchback,
    Thanks so much.  This fixed it.  I can not believe I screwed that up.  I am learning.  One last question, what if the table already existed and I just want to add this to the existing table?  How would I do the Insert Into?
    I tried the following and got an error.  I made sure to take out the INTO TradesMoxyImport in the middle of your answer and it didn't work.
    All the columns are set up to match the Select statement.
    Insert INTO TradesMoxyImports;WITH ClientsTable
    AS (SELECT ClientID,
    Autex
    FROM Clients
    WHERE ( ActiveAcct = 'Active' )
    AND ( Directed = 'no' )
    AND ( Taxable LIKE '%' + '%' )),
    AxysPal
    AS (SELECT Autex,
    Quantity,
    PctAssets
    FROM AxysPals
    WHERE ( SecType = 'csus' )
    AND ( Ticker = 'ace' ))
    SELECT ClientsTable_1.Autex,
    ClientsOnePercent.SortOrder,
    CASE
    WHEN Round(ClientsOnePercent.PctEqty * AxysAUM.Total * CONVERT(DECIMAL(3, 2), 5) / 100 / 113.52, 0) > Isnull(AxysPal_1.Quantity, 0) THEN Round(ClientsOnePercent.PctEqty * Round(AxysAUM.Total, 0) * CONVERT(DECIMAL(3, 2), 5) / 100 / 113.52 - Isnull(AxysPal_1.Quantity, 0), 0)
    END AS BuyQty,
    CASE
    WHEN Round(ClientsOnePercent.PctEqty * AxysAUM.Total * CONVERT(DECIMAL(3, 2), 5) / 100 / 113.52, 0) < Isnull(AxysPal_1.Quantity, 0) THEN Round(Isnull(AxysPal_1.Quantity, 0) - ClientsOnePercent.PctEqty * AxysAUM.Total * CONVERT(DECIMAL(3, 2), 5) / 100 / 113.52, 0)
    END AS SellQty
    FROM ClientsOnePercent
    INNER JOIN ClientsTable AS ClientsTable_1
    ON ClientsOnePercent.ClientID = ClientsTable_1.ClientID
    INNER JOIN AxysAUM
    ON ClientsTable_1.Autex = AxysAUM.Autex
    LEFT OUTER JOIN AxysPal AS AxysPal_1
    ON ClientsOnePercent.Autex = AxysPal_1.Autex
    WHERE ( ClientsOnePercent.OnePctGroupID = 1 )
    AND ( ClientsOnePercent.BuyRule IS NULL )
    AND ( ClientsOnePercent.SellRule IS NULL )
    ORDER BY ClientsOnePercent.SortOrder
    pvong

Maybe you are looking for

  • Issue with TS12300116 in Portal

    Hi: I am using standard workflow WS12300111 for automated leave and I have an issue with TS12300116 (Process Leave Request by Employee) in the portal.  Here is the scenario: Employee submits leave request via the portal --> Manager rejects leave requ

  • 57F4 Chalan is not coming in MIGO Header

    Dear Friend, When I am doing MIGO for a job work PO, In the Header data,  Excise invoice tab page, the option for 57F4 chalan is not coming! The material does not have a master record and and account assignment category is K. The material group is J0

  • Windows Live Movie Maker

    Anyone tried to ZAV Windows Live Movie Maker? Have found this useful on how to just install Movie Maker: AppDeploy > Package Knowledgebase > Windows Live Essential 2011 Any advice. Thanks Mark

  • String Compare

    Hi, I want to compare two strings, String1 i read from a text file and string two can be a constant. After comparing, if string from text file is matching to constant, need to do some processes. Anybody please comment on this. -mfp. Solved! Go to Sol

  • How do i speak live to support

    how do i speak to or email live supoort so i can get the answers to my questions now