Does parsing modify inputStream in anyhow?

Guys,
does parsing (SAX and DOM) modify InputStream in anyhow? Specially regarding to indentation?
My exact issue: If I have a digitally signed XML InputStream into my java mapping, parse it (for schema validation, for example) and just put InputStream into OutputStream, will the output's signature be still valid, for sure, or is there any possibility that it will be invalidated?
Please answer for both SAX and DOM parsers.
Thanks in advance,
Henrique.

Hi,
As explained above by Bhavesh.
See below links also.
/people/sap.user72/blog/2005/06/16/using-digital-signatures-in-xi
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/55ba9790-0201-0010-aa98-ce8f51ea93cd
Loading Invoice XML IDoc with digital signature via XI into R/3
Security Issues: SSL on SOAP Adapter and Digital Signature in BPM
http://help.sap.com/saphelp_nw04s/helpdata/en/6b/8c784226d1d242e10000000a1550b0/frameset.htm
Encryption of Data in XI3.0
Regards
Chilla

Similar Messages

  • Does db_verify modify a database?

    I'm trying to understand how db_verify uses the databases. We have a backup process that runs every night and copies the database to a different machine (using scp). While the copy is going on, we run db_verify on the database to do a health check on the database. Note that the scp and db_verify happen in parallel on the database.
    Is that something to be concerned about? My assumption is db_verify does not modify the databases in any way and so it should not interfere with the scp in any way. Let me know. Thanks!

    While it is not modifying key/value data pairs, it does open an environment.   It is not taking out any locks and it should not be run when some other process is modifying the db.  We also do not do logging as part of the verify process.  It is always that possible that the process doing the verify runs into some sort of problem (i.e. crashes for some reason), and this would leave a marker in the db environment.    If scp was happening at the same time, you could potentially get an inconsistency.     In general it is always a good practice to health check the db prior to copying it, however it is possible that doing them simultaneously could lead to an in consistency (some files copied before the db_verify crash and some after).  
    thanks
    mike

  • PLSQL XML parser modified examples

    Attachments: "1|type=application/octet-stream|desc=my personal domsample|file=domsample.sql|";"2|t
    pe=text/xml|desc=garment xml file|file=Garment.xml|";"3|type=text/xml|desc=garment xml file|file=G
    rment.xml|";"4|type=text/xml|desc=an xml file example|22661|file=Garment.xml|"
    PLSQL XML parser modified examples
    Hello Fine Folks at Oracle xml team
    Here i am again from Copenhagen Denmark.
    To day i would like to question/discuss the following things
    ItFs all about the PL/SQL XML parser which i have installed on
    my OracleServer 8i Enterprice
    Question 1
    If i want to modify DOMSAMPLE.sql or write my own program, i now
    have very few choices
    Where to look for intelligent answers to my questions.
    1. My only source here is the package body for XMLPARSER which i
    have installed under
    the user SCOTT/TIGER. I made a dump of all that code to the
    printer
    So thats my xml
    manual together with the domsample.sql
    QUESTION . Where do i find programmers reference etc. etc. etc.
    Question 2
    2. Many of the *.xml examples here on my platform have a design
    where elements have no attributes;
    But still they are "placeholders" for elemt values.
    Here is the DomSample source part iFam referring to
    -- get all elements
    nl := xmlparser.getElementsByTagName(doc, '*');
    len1 := xmlparser.getLength(nl);
    -- loop through elements
    for j in 0..len1-1 loop
    n := xmlparser.item(nl, j);
    e := xmlparser.makeElement(n);
    dbms_output.put_line(xmlparser.getTagName(e)

    Joergen Hoeyer (guest) wrote:
    : PLSQL XML parser modified examples
    : Hello Fine Folks at Oracle xml team
    : Here i am again from Copenhagen Denmark.
    : To day i would like to question/discuss the following things
    : ItFs all about the PL/SQL XML parser which i have installed on
    : my OracleServer 8i Enterprice
    : Question 1
    : If i want to modify DOMSAMPLE.sql or write my own program, i
    now
    : have very few choices
    : Where to look for intelligent answers to my questions.
    : 1. My only source here is the package body for XMLPARSER which
    i
    : have installed under
    : the user SCOTT/TIGER. I made a dump of all that code to the
    : printer
    : So thats my xml
    : manual together with the domsample.sql
    : QUESTION . Where do i find programmers reference etc. etc. etc.
    : Question 2
    : 2. Many of the *.xml examples here on my platform have a
    design
    : where elements have no attributes;
    : But still they are "placeholders" for elemt values.
    : Here is the DomSample source part iFam referring to
    : -- get all elements
    : nl := xmlparser.getElementsByTagName(doc, '*');
    : len1 := xmlparser.getLength(nl);
    : -- loop through elements
    : for j in 0..len1-1 loop
    : n := xmlparser.item(nl, j);
    : e := xmlparser.makeElement(n);
    : dbms_output.put_line(xmlparser.getTagName(e)

  • Parse an InputStream!

    Hi I have a problem with parsing an InputStream from a host.
    I allways get the a error message (stated below).
    Is there anyone who know how to solve this problem?
    Is it possible to parse the InputStream and ignore <!DOC....../> line?
    //Ante
    Error-message:
    ERROR reading URI: www.wapforum.org
    CODE:
    XMLReader parser = XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser");
    parser.setContentHandler(contentHandler);
    parser.setErrorHandler(errorHandler);
    XMLReader parser = XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser");
              parser.setFeature("http://xml.org/sax/features/validation", false);
    parser.parse(new InputSource(is));
    XML-Document:
    <?xml version="1.0"?>
    <!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 1.0//EN"
    "http://www.wapforum.org/DTD/pap_1.0.dtd">
    <pap>
    <push-response push-id="1"
         sender-address="http://"
         sender-name="HD"           reply-time="2001-08-08T11:41:06Z">
    <response-result code="1001" desc="The request accepted for processing"/>
    </push-response>
    </pap>

    If you have set the validation to false, then you do not need to reference a DTD to validate against. Try removing the DOCTYPE tag completely and see what happens.
    ML

  • DOM: parsing problem, inputstream

    Hi,
    We are developing a simple server that translates a XML query to a SQL query, sends that SQL query to the database, translates the result to a XML resultset and sends it back to the connecting client.
    We are using DOM to interpret the XML in order to build the XML query, since DOM builds a tree (that we use as a buffer), instead of SAX that has to be interpreted realtime.
    Our problem is as follows: the inputstream of the socket act as the input stream for DOM. No exception occures, but at the point when we call domParser.parse();, the thread hangs. When we close the connection, the local output (at the server) is done; the thread continues.
    We assume that the following causes the problem: the inputstream is used to read the XML from. But when the XML is sent over the stream, the stream is not closed. Somehow the parser still expects something. When the clientconnection is closed, the stream is closed and the thread can continue; the parser know that the input is ended.
    Do you know how to solve this? We cannot just close the connection, because we need to receive the result. Does the parser expects some end indicator? For the inputstream for the parser we use a BufferedReader (otherwise we are getting a NullPointerException).
    Thanks! And cheers,
    Jeroen Oosterlaar

    personaly, for doing a similar stuff, on the server I accumulate the XML lines received over the socket, until I bump into a pre-defined stop line, then I send the accumulated XML data to the parser.
    but it might not be the most elegant solution!

  • RH 9 - Why does RH modify my ssl settings?

    I'm using RH 9.0.2.271.
    The Background: We have a large help system (approx 2200 topics) that we have to generate into PDFs one per chapter. We also need to do this in various target languages as well once we get them back from our localization department. So, I created an SSL per chapter in our English project (38 in total), and each SSL is setup to output a single PDF:
    The idea is use RH's batch generate, and have all 38 PDFs get generated. We then bundle them up into a zip and provide them to our customers. It works great in the English. We sent our English RH project off for localization and the translators translated the necessary files.
    About SSL and printdoclayout.xml Files: I've looked into the SSL files in a text editor, and the SSL files for printed outputs do not specify themselves what gets sent to the .doc or .pdf. Instead, when you create the SSL, RH also creates a unique xml file with this name printdoclayout(n).xml, where n is a number that increments for each additional printable SSL you have and the SSL contains a reference to use that XML. The printdoclayout.xml actually contains the chapter structure that gets sent to the printable output:
    Within the <tocstructure> element, it contains the hierarchy of what to export. (Note that even though it has <chapter> and <page> elements, those are misnomers since they're really just topics references with <chapter> for a book-style entry that contains a subtopics. The important thing is that in this example, the xml matches what I have in the Chapter Layout list of the Print Document Content dialog box shown above:
    How We Work with Localized Files:  We send off the entire RH project to the translators. They give us back the necessary files (.htm, .hhk, .hhc and so on). This time we also asked them to translate the name attributes in each <chapter> and <page> element of each printdoclayout.xml file, because RH draws from those strings during the printable output generation, and we didn't want it to pull in the English strings from the original XML files. When we get the file's back from our localization department, we make a copy of the English RH project that was localized and we use that as a base. We then copy the files they send back to us into it, overwriting what's in the English. We then modify the RH project settings to match the target language. Then we generate the desired output.
    The Problem: Now we're getting the localized projects backs, but when we try to generate the printable outputs from a localized RH project, RH no longer respects what I originally defined in the 38 SSLs/xmls. Instead of trying to output a single chapter per SSL, it's trying to output ALL chapters in each SSL. For example, notice what happens when I open up the same layout in the localized Chinese. (Notice the blue highlight in the left side of the Print Document Content dialog box, showing that ALL the chapters are now somehow selected.)
    I don't understand why merely opening up the SSL causes it to select ALL the topics for the generation, especially when the underlying (localized) .xml file still shows the correct chapter output as shown here:
    It seems like there's another setting or file or perhaps just a bug that's telling it to grab all chapters and topics. In fact, it looks like the entire SSL is pretty much wiped out. My section layout and the style settings need to be redone as well.
    Anyway, the workaround I came up with, is we have to go back into each layout (38 of them) in each target language and select again the proper chapter per layout (as well as fix the section layout and style settings). It's a time-consuming and error-prone manual fix, especially since in some target languages, like Chinese where I don't read the characters and could easily get lost and choose the wrong chapter.
    Thanks in advance for any ideas.
    Message was edited by: Jared Hess. To resize some images and add additional info.

    Peter, thanks for responding. We ran into this problem in other languages as well. I'm just using Chinese here since that's the one I'm currently working on. I don't think the partially localized items at the bottom would cause a problem. I think those were intentionally ignored by our translators.
    Although, I wonder if modifying the underlying printdoclayout.xml file causes RH to want to reset the printable layout file (SSL). I haven't tested that theory yet.
    I also wonder if is there a file somewhere that affects how the SSL is generated? So I started looking through the different file types in my project folder and looking at them in Notepad++. The .pss file does contain references to the SSLs. For example, there's this:
    [Target:01_Getting Started]
    SSLayoutType=7
    ActionID For Generation=1013
    ResultFileName=!SSL!\printable\01_Getting_Started\01_Getting_Started.doc
    Remove Folder with prompt=1
    CreateProjectTime=14:32, September 17, 2014
    CreateProjectUser=Jared.hess
    SupportMas_MPJ=1
    ViewFileName=!SSL!\printable\01_Getting_Started\01_Getting_Started.doc
    ResultStatus=0
    BuildTimeHi=30397110
    BuildTimeLow=-2083350864
    But I don't see how this affects anything.

  • How Does One Modify Photoshop Templates in Dreamweaver

    I posted this over on the Photoshop forum, but no one has
    replied. It is a hybrid sort of question.
    I've been trying to modify the Horizontal Neutral template of
    the Web Photo Gallery in Photoshop CS using Dreamweaver MX (v.6.1)
    on my G5 running Tiger and am almost there. Aside from the overall
    design (fonts and colors) I really like the interface of this
    particular gallery with a horizontal slider to quickly scroll
    through images, that when selected, appear in large form in the
    center of the page. But I need to customize it to get it to match
    the feel of my site.
    My problem: I'm trying to point to a gif file that is part of
    my website image library as my background. I want the Horizontal
    Neutral Gallery to float in that image background. But, I can't
    seem to get the background image to appear where it is supposed to.
    I've gone into the various components of the template
    (FrameSet, SubPage, etc.) and by duplicating the files and
    modifying the code, I am able to get the background image to appear
    within the tables that make up the navigation and image gallery
    components. But, I've not been able to get the image to appear as
    the background itself.
    I'd even be happy to simply have the entire Horizontal
    Neutral Gallery float in the middle of one of my own pages with the
    image file as a background if it is possible, but can't seem to
    even get it to do that. How does one access the code that controls
    the background image in this template or the script that generates
    these galleries?
    Thanks in advance!

    The reason the that the edit button ( - ) top righthand corner had 'disappeared', was that iCloud was enabled but that the Addressbook subsetting under iCloud was set to off in the phone settings.
    Changing it to 'on' made the edit button reappear.
    Thanks to the guys in Cambridge Apple Store!!
    The reason the that the edit button ( - ) top righthand corner had 'disappeared', was that iCloud was enabled but that the Addressbook subsetting under iCloud was set to off in the phone settings.Changing it to 'on' made the edit button reappear.
    Thanks to the guys in Cambridge Apple Store!!

  • Parsing from InputStream problem

    I have a serious problem with parsing XML from an InputStream.
    It is the exact same problem other people had before in those threads :
    http://forum.java.sun.com/thread.jsp?forum=34&thread=343710
    http://forum.java.sun.com/thread.jsp?forum=34&thread=68180
    http://forum.java.sun.com/thread.jsp?forum=34&thread=68259
    I have read the FAQ at http://www.jdom.org/docs/faq.html which suggest the following :
    byte[] buf = new byte[length];
    new DataInputStream(inputStream).readFully(buf);
    InputStream in = new ByteArrayInputStream(buf);
    (Contributed by Joseph Bowbeer)
    But my problem still remains the same. What happens if more than 1 XML documents were writen in the InputStream because the writting took place very fast and the receiver could not parse the XML document fast enough so now the byte buffer 'buf' contains 2 XML documents one after the other ? What if it contains half XML document because the sender was temporarily blocked or something; and after some time it continues with the rest XML document ?
    how could I overcome those problems ?
    thanks

    The root cause of the problems reported in this and other threads seems to be the SAX parsers are buffering the entire input stream before they commence parsing (which appears to be completely contrary to the spirit of SAX). This explains the parser hanging behaviour reported by some folk. It also explains why the parsers are awaiting for some sort of EOF marker before they begin parsing.
    Maybe this buffering behaviour has been fixed in the newer releases of xerces and crimson et al, but there is a good discussion of this problem and a solution (albeit for xerces), at http://xml.apache.org.xerces-j/faq-write.html, under the section "how do I read data from a stream as it arrives?".

  • When does Date Modified field update in cmc  XI3.1

    In CMC > users and groups
    there is a Date Modified field, When does it update? Is there any document describe that?
    For example
    I have test that when I edit a user's properties the Date Modified fields update.
    When a user log onto CMC, some time the logon times is update as Date Modified
    some times is not? Why does this happen?

    Hello,
      If you update the the properties of the group or the user then the last modified date will change to the current date/time.  What kind of user do you have, Enterprise, Windows NT, Windows Active Directory or LDAP.  Sometimes a user doesn't exist until they actually log on to the CMS then their Last Modified date would change.  Have you consistantly seen this happen with a specific user, if so can you reproduce this on demand.
    Jorge

  • Modifying XMP metadata does not modify the document

    Another from couple questions which accumulated over time.
    If I modify layer in document by adding or updating XMP metadata, the document itself is not modified (does not enable save), so far if document is closed without doing some other action which marks document as modified, data are lost.
    Question: how to either force document to see changes in XMP meta or how to mark document as modified?
    Code snippet:
         activeDocument.activeLayer.xmpMetadata.rawData = meta.serialize();
    Thanks,
    --Petr

    When you ask app-specific questions, you should really specify the app you are referring to.
    I'm guessing you are talking about Photoshop. This seems to be a scripting related question, and you'll probably get better answers on the Photoshop forum: http://forums.adobe.com/community/photoshop/photoshop_scripting
    Harbs

  • What does [raidutil modify controller --writeCacheBattery] do?

    The Man Page is not clear and Google search is not yielding any clues!
    modify controller [arguments listed below]
                  This will allow the user to modify specific attributes of the targeted controller.
                  --writeCacheBattery
                  --WriteCacheEnable
    I am hoping it initiates a battery conditioning cycle for my MacPro Server running 10.8 but don't want to just type it in and see what happens.
    Thanks

    Hi Jake
    What you're planning to do concerns me because servers imply 24/7 operation and as the user guide says it's not a good idea to interrupt battery reconditioning. Top of Page 5 states:
    Important: Don’t restart or shut down your computer during conditioning. Doing so interrupts the charging cycle and delays the use of the write caches. Repeated interruptions can prevent the battery from accepting or delivering a full charge.
    However it's been a while but IIRC:
    raidutil modify controller -writeCacheBattery
    In RAID Utility GUI for the Controller's Overall Status - Write Caches • either disabled or Good
    raidutil list status
    Not sure about this one as I usually use 'system_profiler' but it might be: Battery Status • either Conditioning or Charged)
    raidutil modify controller -writeCacheEnable
    Write Cache Status • either Disabled with Force on option or Enabled
    If the GUI is not displaying the controller status as green then it won't hurt to run the commands.
    The -writeCacheBattery option is done automatically when battery reconditioning takes place and is complete. I would only use it if you're having a problem (possibly due to how you're power cycling the server?) which might be why you're exploring these options?
    HTH?
    Tony

  • Concurrent Access does not modify an attribute

    Good day,
    I'm working on a multi-process environment, whose main class could be summed up as this:
    public Class ServerCluster {
         // In reality, this attribute belongs to a superior class and is protected
         private SolverCluster solverCluster;
         public void installSolver (SolverCluster newSolverCluster){
              // Tests here to check the newSolverCluster isn't null
              sychronized (this){
                   System.out.println("A new SolverCluster is given");
                   this.SolverCluster = newSolverCluster;
         public void mainProcess(){
              while (true){
                   synchronized (this){
                        if (this.solverCluster != null){
                             System.out.println("the solverCluster isn't null");
                             //That's where we want to go
                   thread.sleep(1000);
    }Basically, a process started from another class calls the method mainProcess and then stays inside.
    Then, another Java process connects to the serverCluster (by RMI) and calls the method installSolver.
    The problem is that the message "A solverCluster is given" is displayed, but when the process leaves the method, the attribute becomes null again and therefore the message "the solverCluster isn't null" in the mainProcess method is never displayed.
    (I'm using NetBeans 4.1.).
    Thank you

    Basically, a process started from another class calls
    the method mainProcess and then stays inside.Okay it loops checking then sleeping. Fine.
    Then, another Java process connects to the
    serverCluster (by RMI) and calls the method
    installSolver.Presumably this is the same serverCluster object
    The problem is that the message "A solverCluster is
    given" is displayed, but when the process leaves the
    method, the attribute becomes null again and
    therefore the message "the solverCluster isn't null"
    in the mainProcess method is never displayed.
    (I'm using NetBeans 4.1.).My best guess would be that they are different serverCluster objects.
    Does the real code use instances or statics? If statics you'd have to watch for classes being loaded in different classloaders and therefore having their own static values.

  • How does one modify the registry entery LISTNER_STARTUP in win98

    I am getting the error 'ORA-12224: no listener' when i try to connect to the oracle8 database. Having read the replies to messages with similar problems i believe that i need to turn my Listener_startup property to auto in the registry. Is the registry in question in reference to REGEDIT, as i have tried to find the Listener_startup in here but cannot find it. can anyone tell me exactly where it is located and how i modify/check its setting.
    i would greatly appreciate any assisstance in this matter
    Sarah Louise

    Yes, the listner_startup is modified with the regedit. Go for HKEY_LOCAL_MACHINE then for Oracle, after that ALL_HOMES. you will find the Listner_startup there. Set it to AUTO.
    Hope this help you

  • 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/

  • Modifying Sales order in ECC does not modify the planned order in APO?

    Hello,
    I have the next situation, a MTO scenario, LPP material,:
    - users create a sales order, quantity 2000M, 2 individual lenghts by 1000M. In automatically, being a MTO scenario, APO generates a planned order to fulfill the requirement with 2000 M qty, individual lenght 1000.
    - users modify the sales order, the quantity 2000 M remains, but will change it in 1 individual lenght by 2000M. APO cancels the precendently created planned order and generates another one, with individual lenght 2000.This is OK.
    -users modify the sales order, the quantity remains 2000 M, but again 2 individual lenghts by 1000 M. In this case, the planned order is not cancelled, as expected, but remains with individual lenght 2000, which is not ok.
    Any idea how to fix this?
    Regards,
    Alex

    Hello again,
    while creating/changing sales order in crm,
    the user exit mv45 is called in R3.
    Problem solved.
    Thanks
    Gerd

Maybe you are looking for