Adding Processing Instruction in the insertionpoint

Hi,
I want insert processing instruction to the insertionpoint[0], is that possible?
something like this,
var PI = app.selection[0].insertionPoints[0];
PI.xmlInstructions.add("target", "data");
Vandy

Hello Vandy,
try this:
var PI = app.selection[0].insertionPoints[0];
var xmlElementOfPI = PI.associatedXMLElements[0];
xmlElementOfPI.xmlInstructions.add("target","data", PI);
Roland

Similar Messages

  • When I import video and place it into timeline as a raw file with no fx or any added processing I get the message that the video is unrendered and therefore it doesn´t playback?

    When I import video and place it into timeline as a raw file with no fx or any added processing I get the message that the video is unrendered and therefore it doesn´t playback?

    FCE can use DV or AIC video formats natively.  Any other format will need to be converted to one of those two if you want to avoid constant rendering.  The clips you use must match the Sequence settings.
    -DH

  • Processing Instructions are not allowed in SOAP documents

    Hi, there. I am trying to integrate WS-Security into our server using the api-sample in JWSDP 1.6 as it is the one that fits into our current architecture in place.
    I have the following code:
    DOMSource domSource = new DOMSource( indoc );
    SOAPPart soapPart = msg.getSOAPPart();
    soapPart.setContent( domSource );
    ProcessingContext context = new ProcessingContext();
    context.setSOAPMessage( msg );
    where indoc is an org.w3c.dom.Document object.
    The last line throws an exception that is ultimately caused by:
    java.lang.UnsupportedOperationException: Processing Instructions are not allowed in SOAP documents
    at com.sun.xml.messaging.saaj.soap.SOAPDocumentImpl.createProcessingInstruction(SOAPDocumentImpl.java:109)
    (Please find the complete (partially edited) stack trace at the end of this message.)
    The exception is thrown even when the following very simple (unsigned) SOAP message is submitted:
    <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><requestMessage xmlns="urn:schemas-company-com:transaction-data-1.17"><merchantID>ever03</merchantID><ccAuthService run="true"/></requestMessage></soap:Body></soap:Envelope>
    As you can see, the only processing instruction is the XML processing instruction, which I don't believe is disallowed in SOAP documents, right? So, I'm not sure why it's complaining about processing instructions. I'm guessing during the transformation into whatever form ProcessingContext wants the document to be in, certain processing instructions are erroneously being inserted.
    I would appreciate any inputs. Below is the stack trace, partially edited to show only the relevant lines.
    Thanks,
    Ever
    com.sun.xml.wss.XWSSecurityException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source:
    at com.sun.xml.wss.SecurableSoapMessage.getEnvelope(SecurableSoapMessage.java:109)
    at com.sun.xml.wss.SecurableSoapMessage.init(SecurableSoapMessage.java:89)
    at com.sun.xml.wss.SecurableSoapMessage.setSOAPMessage(SecurableSoapMessage.java:400)
    at com.sun.xml.wss.ProcessingContext.setSOAPMessage(ProcessingContext.java:199)
    Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source:
    at com.sun.xml.messaging.saaj.soap.EnvelopeFactory.createEnvelope(EnvelopeFactory.java:111)
    at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPPart1_1Impl.createEnvelopeFromSource(SOAPPart1_1Impl.java:39)
    at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:98)
    at com.sun.xml.wss.SecurableSoapMessage.getEnvelope(SecurableSoapMessage.java:107)
    ... 32 more
    Caused by: javax.xml.transform.TransformerException: java.lang.UnsupportedOperationException: Processing Instructions are not allowed in SOAP documents
    at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:647)
    at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:279)
    at com.sun.xml.messaging.saaj.soap.EnvelopeFactory.createEnvelope(EnvelopeFactory.java:97)
    ... 35 more
    Caused by: java.lang.UnsupportedOperationException: Processing Instructions are not allowed in SOAP documents
    at com.sun.xml.messaging.saaj.soap.SOAPDocumentImpl.createProcessingInstruction(SOAPDocumentImpl.java:109)
    at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.createProcessingInstruction(SOAPPartImpl.java:368)
    at com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.processingInstruction(SAX2DOM.java:177)
    at com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.processingInstruction(ToXMLSAXHandler.java:583)
    at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(DOM2TO.java:224)
    at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(DOM2TO.java:121)
    at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(DOM2TO.java:85)
    at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:592)
    at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:638)
    ... 37 more

    Me again... I just realized my second post sounded like I had figured out the problem. No, I still have the problem. I just added the one line that I forgot to include in my original post.
    I would sincerely appreciate any help.
    Ever

  • Help needed on processing-instruction

    Hi,
    I need to "relay" a processing-instruction from the source-message to the target-message. In the transformation-file, I've added the code
    <xsl:processing-instruction name="integration">
    <xsl:value-of select="/processing-instruction('integration')" />
    </xsl:processing-instruction>
    When I test the map from within JDeveloper, and when I run oracle.xml.parser.v2.oraxsl from the commandprompt, it works fine, but when I deploy the project to my esb-server, the processing-instruction is lost during the transformation.
    We run the standalone esb-installation.
    Regards
    Thomas

    I tried compling servlet, but it is raising error
    that coul not find package javax.servletWhat I did not mention... you need to add those JARs in the Classpath explicitly. You will find them in %TOMCAT_HOME%\common\lib. You atleast need to add servlet-api.jar to your Classpath. :)

  • Error while creating process instruction sheet in COR2

    While creating Process instruction sheet, the following error is occuring. Please guide me to resolve the issue.
    Define variable QTYPRODUCED for default value
    Message no. CPOC110
    Diagnosis
    In the process instruction, variable QTYPRODUCED is defined for the value that you want the system to propose when data is entered in the PI sheet. This value does, however, not exist because it has not yet been defined as a variable.
    If you want to use a variable in a process instruction, however, you must first have defined it in a preceding process instruction or in the same process instruction.
    Procedure
    Define variable QTYPRODUCED in one of the preceding process instructions or in the same process instruction.
    Define Variable
    Regards
    Kumar

    1.  Assign characteristic PPPI_VARIABLE to the process instruction before the message characteristic to which the variable is to refer
    2.  Assign the required variable name to characteristic PPPI_VARIABLE.

  • Process Instructions not match

    Hi Folks,
    when i Display the process instruction in a process order using transaction co3 in operation field foun in the PO menu bar and choose the operation that contain the process instruction,it does not match when i looked the same operation using  transaction C203 (Display Control Recipe). can you please enlighten me with this.and what possible solution i can apply tomake them the same.

    Hello Allan.
    The problem may be..
    You have assigned a Control recipe destination to the Phase. & In the configuration you might have maintained some process instructions for this destination.
    And also in recipe level, you are maintaining some Process Instructions.
    So while creating process order there are something going wrong. System is attaching all the process instructions from the configuration & also the instructions attached in the recipe phase.
    So plz check the config for this.
    Still problem exists plz get back.
    Regards
    Mahesh

  • Process instructions coming automatically

    Dear Gurus
    I have assigned process instruction in a master receipe for a particular material.
    Suppose there are 4 phasesin the receipe and suppose I have assigned the instructions only in phase 1.
    Now while creating the process order for that particular material I am finding that ,the system is picking up a process
    instruction for the last phase with no 9999 and asking for values for the chrecteristics to generate the control receipe
    (it is also asking for values for the chrecteristics that I have assigned in the first phase which is normal).
    Where from the system  is picking this process instruction which I didnt assign in master reciepe.
    Regards
    Sandip Sarkar

    Hi,
    Check whether Status is PIGN is set in the order?
    If yes then those PI categories are comes with control recipe destination (o10c).Check your control recipe destination.Go to Process Instruction to be generayed tab.You will find solution of your query.
    Regards,
    Dhaval

  • Is there any way to read Processing instruction content with XMLDOM

    I am having problem to read the content of PRocessing instructions with PLSQL XMLDOM.
    Would appriciate if someone could help. with code sample.

    DOM doesn't have any direct way to select nodes. Processing-Instructions are child nodes to the corresponding node. If you know the tree structure you can traverse the tree and goto the particular PI node.
    The easiest way is to XPath expressions. The following example retrieves all the Processing Instructions in the document.
    XSLProcessor.selectNodes(document, '//processing-instruction()')

  • Processing instructions and CDATA in XSLT

    Dear all,
    my BPEL process contains a transform activity. The corresponding XSLT stylesheet supplies an output variable that I want to write to the filesystem as an XML document for use in third party applications.
    This XML document must have a few processing instructions inside. When inserting this processing instructions in the XSLT, they are not inserted into the output XML document, i.e. the processing instructions are ignored. Using CDATA sections results in the same behavior.
    Is there a workaround available for this bug in the BPEL Process Manager (without working with strings and string manipulation)?
    Thanks in advance!
    Lars

    This is how I create my DOM...
    DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
    org.w3c.dom.Document doc = builder.newDocument();
    Element docElement = doc.createElement("Document");
    docElement.setAttribute("Title", "Home");
    org.w3c.dom.ProcessingInstruction pi = doc.createProcessingInstruction("xml", "type=\"xslt\"");
    doc.appendChild( pi );
    doc.appendChild( docElement );
    And this is the output I get...
    <?xml version="1.0"?>
    <Document Title="Home"/>
    I dont get it, Im using jdk1.4.0, and you get the processing instruction coming through, but I dont...?

  • API to load Process Instruction for Recipes

    Hi All,
    We are in R12. We are implementing OPM. In that I could able to get the API to load the Recipe header and details. But I am not able to get the API for loading Process Instructions to the recipes.
    Please let me know, if there are any API available to load the 'Process Instruction' for the recipes.
    Thanks,
    Gowri

    Shalantha,
    I did come across that note and tried loading a single row. I saw that it did insert the row into per_images table, but when I went into the front-end, the image does not display for the employee. There was no error, it's just blank in the Picture screen.What is the image format? There are couple of reported bugs/issues with loading images (Search Metalink for PERWSIMG image), and review the notes.
    Note: 398926.1 - Cannot Load Images in Oracle HRMS
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=398926.1
    Note: 462967.1 - Upload Image Over 32k Into PER_IMAGES From FND_LOBS as Blobs
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=462967.1
    Also, is SQL Loading directly into per_images supported by Oracle?Yes, it is. Otherwise you would not see this suggested as per the note referenced in my previous reply.

  • JAXB: How do I add a processing instruction?

    Hi there
    I am using XML with JAXB in a client/server environment. On the response of from the server to the client, I want to include a processing instruction in the XML response to indicate a stylesheet associated for example:
    <?xml-stylesheet type="text/xsl" href="test.xsl"?>
    Does anybody have any ideas on how to include a stylesheet while constructing the jaxb object? Or must this declaration be included in the building schema???
    Please help?
    Thanks
    Glen

    this is how I do it in jwsdp 1.4:
    marshaller.setProperty("com.sun.xml.bind.xmlHeaders", "<?xml-stylesheet type=\"text/xsl\" href=\"checker.xslt\"?>");
    This constant is defined as private in the generated marshal class.
    as of now this looks like an undocumented feature.

  • How to use System Variable SY_ROW in the Process Instruction Category

    Hi ,
    I want to assign a value of System variable SY_ROW to a Normal Variable in the Process Instruction Category and use it in the formula. Please help me with the Syntax in the Process Instruction Category to get the System Variable: SY_ROW value into a Variable.
    Thanks,
    SV

    Hello,
    You can use these variables in formulas or, for example, to pass on certain pieces of information to a function module. How the function called by the function module behaves depends on the type of information passed on.
    SY_ROW is used to view the current Table line.
    Please look into the below link for more details on syntax :
    http://help.sap.com/saphelp_46c/helpdata/en/1a/514e38493e4774e10000009b38f889/frameset.htm
    http://help.sap.com/saphelp_470/helpdata/en/1a/514e38493e4774e10000009b38f889/frameset.htm
    Hope the information is helpful
    Regards

  • Process Instruction Category for the online inspection in process industry

    Dear Gurus ,
    I will have to add online quality inspection in the PI SHEET so please suggest me the process instruction category for the same .
    Abhi

    Hi,
    PPPI_INSPECTION_LOT Inspection lot
    PPPI_INSPECTION_RESULT Inspection result
    Please refer the details,
    [Process Instruction Category|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4b82b590-0201-0010-a39b-89349ba1972b]
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/277bb590-0201-0010-a992-f785fb7aa787
    Regards,
    R.Brahmankar

  • HowTo Set the xml-stylesheet processing instruction node?

    Hi,
    Can anyone tell me via PLSQL XMLDOM object what method or attribute to set or howto specify the xml-stylesheet value at the time of generation of the xml document?
    eg
    <?xml version = '1.0'?>
    <?xml-stylesheet type="text/xsl" href="reporthtml.xsl"?>
    <Report>
    <Title>ABC Report</Title>
    </Report>
    Currently my XML just comes out as
    <?xml version = '1.0'?>
    <Report>
    <Title>ABC Report</Title>
    </Report>
    and I want to add the stylesheet reference....
    <?xml-stylesheet type="text/xsl" href="reporthtml.xsl"?>
    Any help is appreciated...

    A COTS product builds the XML and inserts the respective xsl (xml:stylesheet) file name to be used for transforming the xml. I am trying to interrupt this xml and make some updations on an element and finally send the updated xml to the stream.
    For the above process, I parse the input XML using DOMParser and update the elements (some internal elements). While I view the final XML that would be passed to the stream, I found the <?xml-stylesheet... PI is missing.
    I somehow managed using a temp fix by doing the below. I manually pulled the PI using document.getFirstChild().getNodeValue() and reconstructed the PI and inserted it to the outgoing XML. This needs to be done every time. This might run into problems when more than one PI is used in the XML.
    If the parsed XML could get the PI along with it the above problem could be resolved.
    Is there any property that could be set on the parser (prior to parsing) to resolve the issue?.

  • Extract processing-instruction in workflow

    I am trying to extract an XML Processing Instruction from some input XML in a WLI
    Workflow. Using the XPATH wizard I have constructed the expression, but this just
    returns an empty string when used in the workflow.
    Has anybody successfully extracted the processing instruction? and set a workflow
    variable, or is there a different method of getting at it?
    TIA
    Dave

    Hello Vandy,
    try this:
    var PI = app.selection[0].insertionPoints[0];
    var xmlElementOfPI = PI.associatedXMLElements[0];
    xmlElementOfPI.xmlInstructions.add("target","data", PI);
    Roland

Maybe you are looking for