Document's enconding

Hi,
I am using Oracle XML Parser for C++ v2 for Linux.
I trying to parse an xml document with characters encoded in ISO-8859-1.
When I execute the following code:
ecode = xmlpar.xmlparseBuffer((oratext *)xmlbuffer, size_t)xlen,(oratext *)"ISO-8859-1", flags) )
I got the 201 error code (encoding is not valid) even though the documentation says that the Oracle XML parser supports this encoding.
Does the call to the xmlparseBuffer method is wrong?
Thanks,
Marcelo Bastos
null

Hello Jurgen
I found out that the method doesnt accept any encoding at all. It works only when a call the method with a null encoding. Any other encoding, it returns the 201 error code.
Or it is a bug, or one must specify the encoding with a special string.
Marcelo
null

Similar Messages

  • Sharepoint Workflow : how to get document full path + file name into variable?

    Hi,
    Anybody knows how to get document full path + file name into a variable in Sharepoint 2010 workflow?
    Example http://sp1:80/InvoiceQueue/Shared Documents/123.pdf
    I am using List Workflow which links to a document library.

    Hi SAMSUNG,
    According to your description, my understanding is that you want to get the full path of a document in a list workflow.
    You can set the variable to the Enconded Absolute URL of the document. The screenshot is my testing. In my testing (in the red area), when the title of a document was equal to the tile of the current item, set a variable to the Enconded Absolute URL of the
    document. I used ‘Log to history list’ to check the value of the variable in Workflow History .
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • How to insert document into xmltype column through an http post request with perl

    Oracle 11.2.0.3
    Windows server 2008r2
    Apache tomcat 7.0
    Oracle APEX 4.2.1
    Oracle APEX Listener 2.0
    I would like to insert a XML document into the database through an APEX restful web service. The POST into the web service in done with PERL. The following code will insert an empty record in a table with column of XMLType type.
    Perl Code
    use strict;
    use warnings;
    use LWP::UserAgent;
    use HTTP:Headers;
    my $headers = HTTP::Headers->new();
    my $url = "http://host:port:apex/<application_workspace>/<restfull service module>/<uri template>/
    my $sendthis = ('<?xml version="1.0" enconding="utf-8"?>
    <students>
    <row>
           <name>Mark</name>
          <age>30</age>
    </row>
    <./students>';)
    $headers -> header('Content-Type' => 'text/xml; charset=utf-8');
    my $request = HTTP:Request->new('POST', $url, $headers, $sendthis);
    $request-> protocol('HTTP/1.1');
    my $browser = LWP::UserAgent->new();
    my $response = $browser->request($request);
    my $gotthis= $response->content();
    my $the_file_data = $response->content();
    APEX restful service
    Method: POST
    Source type: PL/SQL
    MIME Types allowed: blank
    require secure access: none
    source:
    {declare
    doc varchar2(32000);
    begin
    insert into table <column name>
    values(doc);
    commit;
    end;
    Table code
    { create table <tablename>
    (column name XMLType>);
    The above code will insert an empty column into the table.
    Any ideas why?

    It's a really bad idea to assemble XML using strings and string concatenation in SQL or PL/SQL. First there is a 4K limit in SQL, and 32K limit in PL/SQL, which means you end up constructing the XML in chunks, adding uneccessary complications. 2nd you cannot confirm the XML is valid or well formed using external tools.
    IMHO it makes much more sense to keep the XML content seperated from the SQL / PL/SQL code
    When the XML can be stored a File System accessable from the database, The files can be loaded into the database using mechansims like BFILE.
    In cases where the XML must be staged on a remote file system, the files can be loaded into the database using FTP or HTTP and in cases where this is not an option, SQLLDR.
    -Mark

  • Problem with enconding

    Hi!
    I must set the enconding "ISO-8859-1" on file xml already exist.
    But my file has some elements with special text characters such as "�" and I cant' build the dom tree of this file because I receive an error. So, what can I do?
    This is the code that I use:
    org.jdom.input.SAXBuilder builder = new org.jdom.input.SAXBuilder();
    try
    format = Format.getCompactFormat().setEncoding("ISO-8859-1");
    XMLOutputter prova_out = new XMLOutputter(format);
    BufferedWriter file_out = new BufferedWriter(new FileWriter(file_inizio));
    try{
    prova = builder.build("myfile.xml");
    catch (org.jdom.JDOMException e){
    System.out.println("Errore "+e);
    prova_out.output(prova,file_out);
    Thanks!

    I must set the enconding "ISO-8859-1" on file xml
    already exist.In other words, somebody has given you an XML document that is actually encoded in ISO-8859-1 but failed to declare that in the XML prologue? If so, then that's not a well-formed XML document and they should be notified of their problem.
    However if that somebody is a customer and it is not a good idea to point out their errors, then you can fix it like this:BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(fileName), "ISO-8859-1"));
    BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(newFileName), "UTF-8"));
    String s = null;
    while ((s = br.readLine()) != null) {
      bw.write(s);
      bw.write('\n');
    br.close();
    bw.close();That reads the file assuming that its encoding is ISO-8859-1 (which you say it is) and writes out a new version that is encoded as UTF-8 (which the document says it is). The new version should be well-formed.

  • Error while resetting a cleared document

    Hi everyone,
    I am getting an error while resetting a cleared invoicing document 'Document xxxxxxxxxxx with origin R4 can not be reversed'. Please guide me how can we reset the clearing of this document.
    Thanks and Regards

    Hi,
    You need to reset all clearing for the corresponding FICA document for the print document.
    Reset the clearing for the document no. mentioned in the output for EA13 execution.
    You need to reset all the clearing for the document, before reversing the same.
    To get all the clearing document, go to DFKKOP table, enter the FICA document no. (for the print document on FPL9). Get all AUGBL documents,
    Alternatively, you can go on to FPL9 screen, double click on the consumption document, in the basic data you will see the clearing date (if it is cleared), expand the view their (click on + sign), you will se the clearing document no,
    Pass the above clearing document no, to FP07, and once all the clearing is reset for the invoice, you can reverse the corresponding invoice through EA13.
    Regards,
    Rajesh Popat

  • Filename in document

    Hi all,
    Just new to Mac so I've to learn a lot.
    How can I insert the filename (semi)automaticly into the document.
    I have a template document and save this as .... I want the filename to appear in the document.
    Is this possible?? If yes HOW

    As far as I know, we are in a forum dedicated to Numbers '09
    For Numbers v1.0.2, you take care of what was posted several times:
    go to my iDisk:
    <http://idisk.me.com/koenigyvan-Public?view=web>
    and download for free
    For_iWork:iWork '08:forNumbers:paste_thename.zip
    and or
    For_iWork:iWork '08:forNumbers:paste_thepath.zip
    Yvan KOENIG (from FRANCE mercredi 21 janvier 2009 17:56:54)

  • I can't save downloads to documents folder, only to desktop...

    Only desktop saves are allowed.  The message states, "Word cannot save or create this file.  This disk may be full or write protected..." The disk isn't full, so I'm not sure what to do.  I'm having to save everything to the desktop and then move files into document folders in Finder.  Any advice on how to save directly to documents or what may be wrong?   Thanks so much!.

    Back up all data now.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. If none of this is meaningful to you, you don't need to worry about it.
    Step 1
    If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. You can demote it back to standard status when this step has been completed.
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Drag or copy — do not type — the following line into the Terminal window, then press return:
    sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -R $UID:20 ~ $_ ; chmod -R -N ~ $_ 2> /dev/null
    Be sure to select the whole line by triple-clicking anywhere in it. You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. You don't need to post the warning. If you don’t have a login password, you’ll need to set one before you can run the command.
    The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
    Step 2
    Boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the OS X Utilities screen appears, select Utilities ▹ Terminal from the menu bar. A text window opens.
    In the Terminal window, type this:
    resetpassword
    That's one word with no spaces. Then press return. A Reset Password window opens. You’re not going to reset a password.
    Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select  ▹ Restart from the menu bar.

  • Downloads to documents folder fail due to parallel upload

    Hi, mobile documents is a great tool that I use to replicate all business relevant documents to mobile clients. However there is one great disadvantage for me. When you download a file that is a bit larger (>1 MB), during the download the client will already start uploading the temporary file. So the download then fails as it cannot convert the temporary file into the final one.
    This is something that does not happen for equivalent clients (for example skydrive). Do you think this is something that can be fixed?
    thanks,
    Heiko

    Hi Heiko,
    Let me explain again:
    You said "uploader locks the file so that it can no longer be changed". For the temporary file it is the downloader which have locked the file. Hence, the impression that file is getting uploaded because it is locked is hence not correct.
    The next version might be available in Q1\Q2 2014. We will keep everyone updated via community.
    Best Regards,
    Ashwani Kr Sharma

  • How do I use the Japanese fonts in Font Book in a Pages document?

    How does one use the Japanese fonts in Font Book in a Pages document. Pages has its own fonts but I cannot get the Japanese fonts into it.

    To type japanese on a computer you change the keyboard, not the font.  Go to system prefs/keyboard/input sources and add Japanese/Kotoeri to the list, then select Hiragana in the "flag" menu at the top right of the screen, then type.  The font will take care of itself.
    http://redcocoon.org/cab/mysoft.html
    If you have any further questions, just ask.

  • 7515 ios 8 scanning doesn't function using document feeder

    My AiO remote updated on my iPad today and i have issues scanning from the scanner. The printer and tablet functions properly when scanning using the glass however when using the document feeder, AiO remote scans the sheets then before saving it says there is a problem with the scanner, check the scanner. not sure why it works with the glass and NOT with the feeder.

    I am having the exact same problem. I will add that scanning from the document feeder to my Mac Book works fine. The problem with the document feeder is only whenn atttempting to use the AiO software on my iPad.

  • I need to convert PDF file to Word Document, so it can be edited. But the recognizing text options do not have the language that I need. How I can convert the file in the desired of me language?

    I need to convert PDF file to Word Document, so it can be edited. But the recognizing text options do not have the language that I need. How I can convert the file in the desired of me language?

    The application Acrobat provides no language translation capability.
    If you localize the language for OS, MS Office applications, Acrobat, etc to the desired language try again.
    Alternative: transfer a copy of content into a web based translation service (Bing or Google provides a free service).
    Transfer the output into a word processing program that is localized to the appropriate language.
    Do cleanup.
    Be well...

  • Previewing Pages document in Preview shows page numbers incorrectly

    Previewing Pages (5.2) document in Preview (7.0) shows page numbers incorrectly. Regardless of starting page number preview shows as Page 1.
    Suggestions appreciated...

    That appears to be YABIP5 (Yet Another Bug In Pages 5].
    Pages .09 documents are fine.
    No prizes however for finding bugs in Pages 5/5.2 it's swarming with them.
    Peter

  • Payment Program Document not automatically Cleared

    Hi,
    We created payments through F110 payment program and the vendor invoices were paid on 14th October.
    We then ran the program again on 31st October and the same invoices were paid again.
    We use the payment list to manually pay the telegraph transfer.
    On investigation I can see the the payment document for the one on the 14th didnt automatically create a clearing document and is still open. 
    Can anyone tell me how this would not clear down and how to check for such errors if they seem to go through the payment program ok.
    Thanks

    Hi,
    I could look into Tolerance Groups are proper set for the Company Codees. If the Tolerance Groups are not set properly, it would stop from clearing the documents.
    I also hope you have set the config. steps proper in FBZP.
    Regards,
    Ravi

  • Custom report to track the documents

    Hai All,
    My Client requires a custom report to track the document flow any time i.e., once the material arrives the purchase dept makes an entry like PO date the date of arrival,and Gr date the GR approval date and document handed over for  Invoice verification date and payment made date.
    How is achieve this?
    Regards
    R.Senthilnambi

    No My client requirement is not like that,suppose one fine day if he wants to track the positon of GRN document or a bill at what stagei.e.,if in FI if they say they have not received any document to process or they hold the document for days and say just today GRN has been handed over to him ,The Materials guy has to generate a report and say this is the day the document is handed over to you.
    Is this can be done.or only out of SAP.
    Regards
    Senthil

  • Possible to clear vendor open item against already posted payment document?

    Hi
    Can you advise if it is possible to clear an open item against already posted payment/clearing doc? Here is the background to the scenario:
    An invoice was posted with transaction FB60. This was subsequently picked up in the payment run F110 and cleared by payment document number 200005678. The item went to the bank on the paymnet file and was paid out to the vendor. The transaction reference, which appeared on the incoming bank statemnet was the payment document number 200005678.
    Subsequently it was discovered that the original invoice should have been posted with reference to a PO using MIRO. The requirement now is to reverse the paymnet documnet 200005678 in SAP, then reverse the document that was posted using FB60. After this the invoice will be posted using MIRO. This will create an open item on the vendor account.
    This item will not be piad out again. Therefore the requirement is to try clear that open item against the previously posted payment document 200005678.
    Is there any way to clear this vendor open item against the originally posted payment document 200005678?? Or any other advice on how this scenario can be handled in SAP?
    Thank for your help.
    Mike

    Hi,
    I tried that option in our test system. I ran FBRA and entered Paymnet Documnet Number (+Clearing Doc Number), Company Code, Fiscal Year.
    Then chose menu option Clearing -> Reset Cleared Items.
    The system pops up a window asking for a reversal reason and reversal date.  I use 01 and posting date of today.
    The system now posts another cleared document. That document places the invoice as an open item on the vendor account. It does not place the Payment Document as an open item on the account.
    When I go to F-44 only the open vendor invoice is showing there. There is no open paymnet document.
    Is there perhaps some configuration setting that stops the placement of the paymnet document as an open item when reset?
    Thanks for your help again.

Maybe you are looking for