C Parser only Parses file?

Re the new Parser for C
I can only see a method to parse xml in a file, there doesn t
seem anyway to parse froma buffer or stream.
Is this correct or have I missed something.
Thanks
Rob
null

Currently, that is the only supported method. We will be adding
additional methods in a future release.
Oracle XML Team
http://technet.oracle.com
Oracle Technology Network
Robert Edgar (guest) wrote:
: Re the new Parser for C
: I can only see a method to parse xml in a file, there doesn t
: seem anyway to parse froma buffer or stream.
: Is this correct or have I missed something.
: Thanks
: Rob
null

Similar Messages

  • Wrong result then parsing file in applet

    My applet is parsing a 3ds-file and it's working good in both applet viewer and as a stand alone application but then i try it as an applet in a browser it sometimes parses wrong.
    This is the printout i get then parsing is correct:
    Found data/model/chest.3ds in jar file.
    main chunk
    unused chunks : 2 with length: 10
    3d editor chunk
    unused chunks : 3d3e with length: 10
    unused chunks : ffffafff with length: 170
    unused chunks : 100 with length: 10
    object chunk
    Namnet p� objektet �r inl�st: Chest01
    triangular mesh chunk
    vertices list chunk
    Antalet vertices 424
    Antalet uv-koordinater 424
    unused chunks : 4160 with length: 54
    Antalet faces 168
    unused chunks : 4130 with length: 349
    unused chunks : 4150 with length: 678
    unused chunks : ffffb000 with length: 221
    This is the printout then run in an applet:
    Found data/model/chest.3ds in jar file.
    main chunk
    unused chunks : 2 with length: 10
    3d editor chunk
    unused chunks : 3d3e with length: 10
    unused chunks : ffffafff with length: 170
    unused chunks : 100 with length: 10
    object chunk
    Namnet p� objektet �r inl�st: Chest01
    triangular mesh chunk
    vertices list chunk
    Antalet vertices 424
    Antalet uv-koordinater 424
    unused chunks : ffffed3e with length: -1572921687
    unused chunks : 7856 with length: 1381233982
    This problem only occurs in some files.
    I'm parsing it by reading in the correct number of bytes and converting them to the correct type (int, char ..ect).
    Is there any difference in parsing files in a browser than in an application? The only difference I had so far is the browser beeing case sensitive in the filenames then the appletviewer isn't.
    I can post the code if you want to.
    Please help me, thanks.
    / Robert

    Ifanyone else having the same trouble I'm publishing the wrapper I used successfully.
    private static void read(InputStream in, byte[] buffer) throws IOException
            int bytesRead = 0;
            int bytesToRead = buffer.length;
            while (bytesToRead > 0)
                int read = in.read(buffer, bytesRead, bytesToRead);
                bytesRead += read;
                bytesToRead -= read;
        }

  • Does parse file change on v3.0 ?

    Hi everybody
    I tried to create parse file on 3.0 version of Apex with the same rules as old version. It didn't work.
    Before 3.0 we had
    In the page process "Parse file", it has...
    htmldb_tools.parse_file(:P1_FILENAME,'P1_COLLECTION','P1_HEADINGS','P1_COLUMNS','P1_DDL');
    And on 3.0 ? I tried
    In the page process "Parse file", it has...
    apex_tools.parse_file(:P1_FILENAME,'P1_COLLECTION','P1_HEADINGS','P1_COLUMNS','P1_DDL');
    But It didn't work
    Please follow me the right way ^^
    Regards
    Message was edited by:
    user450801

    Hi user450801,
    you have to be a little bit more patient. It's weekend!
    The htmldb_tools package is a package written by Vikas (http://htmldb.oracle.com/pls/otn/f?p=38131:1) which doesn't have to do anything with the upgrade of APEX to 3.0.
    As long as you haven't renamed your package to APEX_TOOLS it will still be accessible as HTMLDB_TOOLS.
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

  • Error parsing file

    Hi! My program compile fine and runs fine, however on the main file it has the red exclamation mark that says error parsing file. What does that mean??
    THX
    Edited by: jjcpp on Mar 3, 2010 9:55 PM

    That probably means that the JavaFX plugin isn't perfect...
    I suppose you mean you see that in NetBeans, right?
    These IDEs are powerful but sometime confused; for example from time to time Eclipse tells me a Java class (in a big Java project) doesn't exist just because it is stale (changed by VCS) and its index isn't up to date.

  • Error message when using DOMParser.parse(file)

    When I try to use the DOMParser.parse(file) to parse an invalid XML file against a XML schema, with the schema_validation feature set on, error message saying the XML file is invalid because it violates some constraints set in the schema. But I cannot find out how the error message is print. It is not caught as exception. May I know how can I detect the error in the code instead of viewing it as output?

    The error message I got is like the followings:
    [Error] abc3.xml:2:310: cvc-pattern-valid: Value '' is not facet-valid with respect to pattern '(\(\d\d\d\)-)?[\d]{8}' for type 'phoneNoType'.
    [Error] abc3.xml:2:310: cvc-type.3.1.3: The value '' of element 'mobile' is not valid.
    [Error] abc3.xml:2:318: cvc-pattern-valid: Value '' is not facet-valid with respect to pattern '[^@]+@[^\.]+\..+' for type 'emailAddressType'.
    [Error] abc3.xml:2:318: cvc-type.3.1.3: The value '' of element 'email' is not v
    alid.
    May I know how can I catch these errors?

  • Drawing graphic component using parsed file

    hi,
    I have a problem in drawing the graphic components like rectangle,oval etc. I need to draw them on a panel after selecting a xml file from menu,parse it first, based on the contents of the parsed file the dimentions of the component should change.
    however i am able to parse the file and save the parsed contents in a separate file, but unable to draw components using its contents

    this is the module given to me where i am supposed to
    draw the graphic components using the contents of a
    xml file. I was told to parse the xml file to get
    some values that would represent parameters like
    packet size, length etc.. and using these values
    draw a data packet representation. But prob here is
    the i am able to parse file but not pass its values
    simultaneously to draw image on the panel
    immediately after parsing. i am storin the contents
    in the text format.
    ya i have good knowlege of swings,IO and awt...Parse the XML file filling a model that allows listeners (Observer/Observable is one approach). When the parsing is complete fire an event to indicate that the model has changed. Have your GUI listen to the model and when it receive the 'changed' event it updates it's display according to the content of the model.

  • DNG error parsing file (Fuji S100fs)

    Windows Vista Home Premium, DNG Converter 3.7, Fuji S100fs
    I tried to convert Raw-files into DNG-files but got an error message (literally translated from German): "error parsing file".
    The Fuji S100fs has been included in the latest RAW Update so I assume the DNG-Converter should recognize the format.
    What else could be the reason?
    Thanks.
    Hans

    The problem is DNG Converter 3.7 is NOT the most recent version of the DNG Converter. You need to use the DNG Converter that is included in the latest raw update.

  • Delete only one file from Trash

    Hello There,
    I do not want to empty my entire Trash folder but only some files which i know I am not going to use it. Is there a way to delete only selected files and not just empty trash...
    Thanks in advance for the help..
    NA

    nAyer,
    When I place files in the Trash, I expect that they will be deleted. IMHO Trash is not a good place to store files that I may have second thoughts about eliminating.
    I have created a folder which I named "B4 Trash," and placed it on my Desktop. If I really want to throw something away, I put it in the Trash and empty the Trash. If I am not sure about deletion, I place it in B4 Trash and get rid of it at my leisure.
    Why not drag all of the files in Trash to a folder you create on your Desktop called B4 Trash, and then drag the files you really want to get rid of back to the Trash. Then empty the Trash.
    ;~)

  • I download a file in the torrent site which is MP4 but unfortunately i tried to delete it but i can not. but all the files that i have is easily to delete only MP4 files i can't delete in the download foldeer please try to help dont know what to do please

    i download a file in the torrent site which is MP4 but unfortunately i tried to delete it but i can not. but all the files that i have is easily to delete only MP4 files i can't delete in the download foldeer please try to help dont know what to do please

    Well you can sync your iPod/iPhone to yur computer or laptop then take the photos off of your iPod like taking photos of of a SD card (from a normal camera) or off of a USB..! Good Luck. plz tick this saying This solved my question if it helps you.

  • How to retrieve data from a read-only Excel file

    Hi Developers,
    I'm trying to retrieve data from a read-only Excel file. I used the same code that I used to retrieve data from a normal Excel file, but it can't work.
    My code is as followed:
    try
    InputStream KpExcel = new FileInputStream("kp.xls");
    HSSFWorkbook Kpwb = new HSSFWorkbook(KpExcel);
    HSSFSheet Kpsheet = Kpwb.getSheetAt(0);
    catch(Exception e)
    e.printStackTrace();
    System.out.println("Exception: "+e.getMessage());
    The error I received is as followed:
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    at org.apache.poi.hssf.record.RecordFactory.createRecord(RecordFactory.java:224)
    at org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java:160)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:163)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:210)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:191)
    at photoproductionsystem.IncomingWIPPanel.getKp(IncomingWIPPanel.java:118)
    at photoproductionsystem.IncomingWIPPanel.<init>(IncomingWIPPanel.java:76)
    at photoproductionsystem.TabbedDisplay.<init>(TabbedDisplay.java:47)
    at photoproductionsystem.Display.create(Display.java:73)
    at photoproductionsystem.Display.init(Display.java:44)
    at photoproductionsystem.Display.main(Display.java:229)
    Caused by: java.lang.ArrayIndexOutOfBoundsException
    at java.lang.System.arraycopy(Native Method)
    at org.apache.poi.hssf.record.UnknownRecord.<init>(UnknownRecord.java:62)
    at org.apache.poi.hssf.record.SubRecord.createSubRecord(SubRecord.java:57)
    at org.apache.poi.hssf.record.ObjRecord.fillFields(ObjRecord.java:99)
    at org.apache.poi.hssf.record.Record.fillFields(Record.java:90)
    at org.apache.poi.hssf.record.Record.<init>(Record.java:55)
    at org.apache.poi.hssf.record.ObjRecord.<init>(ObjRecord.java:61)
    ... 15 more
    Can someone please help me with my problem? Thanks a lot in advance!

    Madeline wrote:
    how do I ask at Apache mailing list?I wonder why it seems to be a strange idea to some people to look at the software vendor's site for product support. :p
    http://poi.apache.org/mailinglists.html

  • Allowing only pdf files in document library using Javascript

    HI,
    I have a document library in sharepoint 2013, where i want only pdf files to get uploaded in it. I have created event receiver for the same and it is working fine. but i want to restrict the files using javascript on
    the page itself, since, In event receiver, after the file is getting uploaded, it is checking and throwing error. So, is there any way to check for the file type before uploading the file and show error message if wrong file is uploaded?
    Harikrishna Baskaran

    Bind event to the upload button and add jquery to validate the file extension. Refer to the following posts for more information
    http://stackoverflow.com/questions/13124950/change-onclick-event-input-type-button-in-ie-8-9-ff-with-jquery-won%C2%B4t-wo
    http://stackoverflow.com/questions/4234589/validation-of-file-extension-before-uploading-file
    --Cheers

  • Disable Save or Save As for Read Only mpp file

    Hi,
    I have a read only mpp file and need to make sure that it cannot be Saved / Saved As by anybody in Team. They should only have access to view the file.
    How can enable a file which does not allow save / save as?

    ihvarrived,
    You didn't mention anything about being in a Project Server environment, so I assume Shiva's response has no meaning for you.
    With regard to an approach to prevent unauthorized users from saving a file let me again stress that, in my opinion, the best approach for this issue is training. That has the great advantage of mutual respect and cooperative effort in a team environment.
    To implement a more covert approach you will need to do the following:
    1. With the file open go to Developer/Code group/Visual Basic
    2. Hit the Project Explorer icon
    3. In the Explorer hierarchy, under the VBAProject double click on the "ThisProject"
    4. In the code window, paste the following code:
    Private Sub project_open(ByVal pj As MSProject.Project)
    MsgBox "This file is write protected. You can make changes" & vbCr & _
        "for temporary what-if scenarios, but you will not be" & vbCr & _
        "able to save without the correct password", vbExclamation, "Warning!"
    End Sub
    Private Sub project_beforesave(ByVal pj As MSProject.Project)
    pass = InputBox("enter save password")
    If pass <> "xyz" Then  'string in quotes is the password you chose for saving, "xyz" is for illustration only
        SelectAll
        EditDelete
    End If
    End Sub
    5. While still in the code window, go to Tools/VBA Project Properties/Protection tab
    6. Check the "Lock this project" option
    7. Enter and confirm a password. It can be the same as your save password or a different password (This will insure that only you can view and modify the above code)
    8. Hit OK, then File/Save [your filename] to capture your macro in the file. Note, at this point you will be required to enter your save password.
    Be advised that if a user does attempt to save without the correct save password, the file will be zeroed out and saved (i.e. nothing). That means that whenever you save the file you should also save a backup under a different name, so you can restore the
    file if necessary. I couldn't figure out a good way to work around this problem. If the user always tries a "Save As" this wouldn't be an issue, but if they chose "Save" and you don't have a backup, you're screwed.
    If this answers your question or is at least helpful, please mark it accordingly.
    John

  • HT1766 How can I backup the iPad to the non-C drive of the computer that runs the itune?   I have already setup the library at a NAS and seems only media file are stored int he library.  iPad backup still need to take use my C: drive that is running out o

    How can I backup the iPad to the non-C drive of the computer that runs the itune?   I have already setup the library at a NAS and seems only media file are stored int he library.  iPad backup still need to take use my C: drive that is running out of space

    Windows - Change iPad default backup location
    http://apple-ipad-tablet-help.blogspot.com/2010/07/change-ipad-default-backup-lo cation.html
    Windows - Changing IPhone and iPad backup location
    http://goodstuff2share.wordpress.com/2011/05/22/changing-iphone-and-ipad-backup- location/
     Cheers, Tom

  • Hello everyone. As a new Mac user, I would really like to know the easiest way to move my music files from my old PC to my MacBook? Do I move only the files, the entire iTunes and how? I have a lot of music so it is not a solution with iPod/iPhone.

    Hello everyone. As a new Mac user, I would really like to know the easiest way to move my music files from my old PC to my MacBook? Do I move only the files, the entire iTunes and how? I have a lot of music so it is not a solution with iPod/iPhone.

    Your best option is to post this in the iTunes forum.
    Ciao.

  • I have some audio files on my previous phone which I would like to export to my new iPhone 5. I am told that you can only import files from iTunes. Is that true? If not, how do I import files from my phone - or my Macbook pro laptop-to my phone?  Thanks!

    I have some audio files on my previous phone which I would like to export to my new iPhone 5. I am told that you can only import files from iTunes. Is that true? If not, how do I import files from my phone - or my Macbook pro laptop-to my phone?  Thanks!

    iTunes will only import music from your phone that was purchased from the iTunes store.  To transfer music from other sources you have to use 3rd party software, such as PhoneView.

  • Sender file adapter to pick up only 2 files at a time

    Hi ,
    I need to configure my sender file adapter in a way so that it picks up only 2 files at a time even though at FTP more files are placed.
    Mudit Mehra

    Hi,
    As said above there is no such option to pick only 2 files at a time, however if possible you can create files in the sender/source directory in a manner that only two files are created at a time.
    Thanks!

Maybe you are looking for

  • Can no longer connect to shared drive for Time Machine backups

    I have  a Firewire drive connected to my iMac and sharing enabled. 2 MacBook Airs then connect wirelessly to the same network and backup to the drive. It has worked perfectly for the last couple of years with Lion and Mountain Lion. Yesterday I upgra

  • Installing Windows 7 using Bootcamp?

    I got a Macbook Alumimum 13.3", release in late 2008. It's now installed with Snow Leporand 10.6.2 OS. I'd like to know if bootcamp support installing Windows 7 as well?

  • Adding field in PDF(This form designed in Adobe Designer)

    Dear All, I use Acrobat 7.0. I created forms with Adobe Designer,then I saved this form as PDF. I want to add a few field that are; button tool,check box,Drop-down list,List box,radio button,text field,signature field, in the PDF. I can add in the bo

  • Trouble with hot keys and preferences

    Some of my hot keys decided to be a bit moody and stop working. For example: Ctrl+Space to zoom or Space for the Hand Tool. I know my spacebar still works properly and also tried restarting my computer. After searching the forums and FAQ I also tried

  • AIFF files don't play on iPod

    Why do the AIFF files that play successfully on iTunes not play at all on my iPod? My software is up to date.I'm on an iMac and use a year-old 30GB iPod. Details: The files in question are Centerpointe Holosync meditation "tapes" that depend on subtl