Xmlbeans and cdata

I have created an xmlbean, and I am storing html code in one of the elements. I am getting inconsistent results when I call the toString() method of the bean, sometimes the html is enclosed in a CDATA tag and sometimes it is not. Is there something that I can do to get consistent results. This is a critical issue for my development

It might be in response to the length of the string (HTML) you are passing. My guess is that strings over a certain length would go as CDATA whereas others would go as Text nodes.
http://www.mail-archive.com/[email protected]/msg00693.html
A (partial) workaround might be here, but I did not read it fully:
http://marc2.theaimsgroup.com/?l=xmlbeans-dev&m=111404481811361&w=2
- Saish

Similar Messages

  • Xmlbean and ws8.1 ant tasks

    hi,
    i am looking to use xmlbeans to generate stubs for the input arameters and the output returned by the webservice designed using XSD schemas.
    I am not planning to use weblogic workshop and will be using only weblogic server 8.1 sp3 server to implement the webservice.
    From the weblogic server documentation I observed that using xmlbean is not supported. is that true ?
    Please provide a sample of how to integrate xmlbean and weblogic server ant tasks to implement a webservice. The ant task <autotype> generates the types.xml to be included in the wsdl file.. is there is a similar facility in xmlbeans.
    TIA
    karthik
    [[email protected]]

    Kiran,
    Did you happen to get this solution to work?
    I'm currently trying to use XMLBeans 2.x to create web services for ws8.1. My thought is that I would need to modify the types.xml to point to the XMLBeans custom serializer/deserializer class? I would then need to run the "wsdl2service" ant task to create the web-services.xml and web service implementation skeleton.
    It appears difficult to create weblogic web services outside of Workshop that use XMLBeans! Any advice that you can offer would be appreciated.
    -Shawn

  • Xmlbeans and ws8.1 ant tasks

    hi,
    i am looking to use xmlbeans to generate stubs for the input arameters and the output returned by the webservice designed using XSD schemas.
    I am not planning to use weblogic workshop and will be using only weblogic server 8.1 sp3 server to implement the webservice.
    From the weblogic server documentation I observed that using xmlbean is not supported. is that true ?
    Please provide a sample of how to integrate xmlbean and weblogic server ant tasks to implement a webservice. The ant task <autotype> generates the types.xml to be included in the wsdl file.. is there is a similar facility in xmlbeans.
    TIA
    karthik
    [[email protected]]

    Kiran,
    Did you happen to get this solution to work?
    I'm currently trying to use XMLBeans 2.x to create web services for ws8.1. My thought is that I would need to modify the types.xml to point to the XMLBeans custom serializer/deserializer class? I would then need to run the "wsdl2service" ant task to create the web-services.xml and web service implementation skeleton.
    It appears difficult to create weblogic web services outside of Workshop that use XMLBeans! Any advice that you can offer would be appreciated.
    -Shawn

  • XMLBeans and JAXB

    Can someone from BEA explain the relationship and/or differences between the proposed
    Java standard API for XML binding, JAXB, and XMLBeans? Obviously XMLBeans offers
    additional APIs, such as cursors and XQuery support (which is neat), but it seems
    to be non-standard and BEA-specific.
    In this context, are there any clear statements from BEA product marketing how
    the technology will be productized? Without that, it seems a bit dangerous to
    use...
    Thanks,
    PM

    XMLBeans and JAX-B are complementary technologies. JAX-B is a good technology
    for loading XML documents into Java objects – in constructing XMLBeans, we have
    attempted to be compatible with JAX-B naming conventions. However, JAX-B cannot
    necessarily preserve the full fidelity of XML documents, nor does it support 100%
    of schema. This is where XMLBeans is complementary - document preservation and
    support for extensibility are explicit goals of XMLBeans. Though JAX-B does not
    make this possible today, it is conceivable that XMLBeans will be an implementation
    of a future JAX-B spec as both technologies may converge together.
    Given the above statement, one may ask then why is that preserving full fidelity
    of the original XML document may be important? Consider the following advantages:
    (1) Sequencing and interleaving information is not lost in XMLBeans. There are
    schemas where you care whether <input> comes before <output> or <buy> comes before
    <sell> or the other way around. If you just give people a Java .getBuy() and
    a .getSell(), they've lost the ability to tell which came first. In XMLBeans,
    after the .get you always have the ability to grab an XML cursor on the <buy>
    and another one on the <sell> and ask which one came first.
    (2) Information that comes into wildcards are not lost in XMLBeans. Consider
    the regularly used <xsd:any> and <xsd:anyAttribute> features of schema that allow
    any data to appear in the document. With JAX-B, for example, the specification
    does not specify how an implementation handle content that it does not know how
    to map to a Java representation. But with XMLBeans, you can see where and how
    your document has been extended at the wildcards, and change or manipulate the
    wildcarded data. Furthermore, something cool is that if you have compiled schemas
    for the wildcarded data you can even coerce the wildcards to strongly-typed XMLBeans
    and keep on drilling in conveniently. A common use case for this is processing
    WSDLs: the w3c schema for WSDL uses wildcards for nearly every interesting piece
    of data in a WSDL.
    (3) Loading, modifying, and saving an XML document using XMLBeans, you won't lose
    all the "other stuff" that human beings don't want to lose on human-readable XML
    files, namely comments and all that extra pretty white space between things.
    (Unless you want to lose it; XMLBeans can be put in a mode where it is used to
    strip extra white space too.)
    (4) The architecture is set up so that 100% of schema types can correspond one-to-one
    with a Java type. This is perhaps a subtle benefit, but it is powerful because
    it means that there are "no regrets" and "no dead-ends" later. You never run
    into a schema type that can't be subclassed because of Java problems, or some
    extension that has some data that can't be accessed from Java.
    I hope this helps shed some light on the complementary relationship between XMLBeans
    and JAX-B.
    Regards,
    Samir
    "Peter Meyer" <[email protected]> wrote:
    >
    Can someone from BEA explain the relationship and/or differences between
    the proposed
    Java standard API for XML binding, JAXB, and XMLBeans? Obviously XMLBeans
    offers
    additional APIs, such as cursors and XQuery support (which is neat),
    but it seems
    to be non-standard and BEA-specific.
    In this context, are there any clear statements from BEA product marketing
    how
    the technology will be productized? Without that, it seems a bit dangerous
    to
    use...
    Thanks,
    PM

  • Dynamic class loading issue with XmlBeans and Axis2

    Hi,
    Since support to web services is not enough in JDeveloper I am using apache axis2 to consume web services from an ADF web application.
    Everything works fine if I use jdk 1.5 but our app servers require jdk 1.4.2_08-b03 so I switched jre settings to jdk 1.4.2_08-b03 in the JDeveloper and I started to get these issues.
    I debugged the application and this line is the cause of the exception. It is in request document class.
    return (org.htng.pws._2008a.guestselfservice.name.types.FetchProfileRequestDocument)org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance(type,
    null);
    I did some further testing and found that it is happening when I call org.apache.xmlbeans.XmlBeans.getContextTypeLoader()
    The error messages that I am getting are
    1.     J*BO-29000: Unexpected exception caught: java.lang.IllegalAccessError, msg=tried to access field* org.htng.pws._2008a.guestselfservice.name.types.FetchProfileRequestDocument$1.class$org$htng$pws$_2008a$guestselfservice$name$types$FetchProfileRequestDocument from class org.htng.pws._2008a.guestselfservice.name.types.FetchProfileRequestDocument
    2.     tried to access field org.htng.pws._2008a.guestselfservice.name.types.FetchProfileRequestDocument$1.class$org$htng$pws$_2008a$guestselfservice$name$types$FetchProfileRequestDocument from class org.htng.pws._2008a.guestselfservice.name.types.FetchProfileRequestDocument
    As I understand somehow the application server is not allowing the XMLBeans APIs to dynamically load the classes ..But I couldn’t find a way to convince it..
    Does anybody have any idea by any chance?
    Thanks a lot

    Some more details ..
    I could make it work if I change the below getClassLoader with Thread.currentThread().getContextClassLoader()
    org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(FetchProfileResponseDocument.class.getClassLoader()This is a generated code and normally works fine with jdk 1.5 .. I guess there should be some setting to make it work in 1.4 as well..
    Any Idea ?

  • CREATING XML TAG W/SPACES and CDATA.  EXPORTED FROM PDF BUTTON

    Hello All,
    I was wondering if anyone could help with the following when working with livecycle Designer.
    In our current XML we use in production we have a tag that looks like
    a.       <action function='Form1650' method='Add' and Action 'Upload' />
    How do I go about making a field like this? I tried creating a text field and making in invisible and that’s fine and all BUT  when I go to make the binding name for the field it won’t let me put spaces in for the (function='Form1650' method='Add' and Action 'Upload') portion of the tag.
    2)      We currently use CDATA in our XML file to allow users to enter free form data w/ special characters like (<, &, etc) and not have our application crash. I noticed when using a exporting button in a pdf to generate a XML file it takes tags like < and converts to &lt.  Is there a way to have PDFs use CDATA embedded in the XML tag on output or some other solution?

    >when working with livecycle Designer
    This is the Acrobat forum... you need to find the forum for livecycle Designer

  • Java classgen and CDATA

    Hello,
    I am using the java classgen package to generate xml documents on the fly, and I want to include an ELEMENT, which contains CDATA. So, I have defined the element in the DTD as
    <!ELEMENT VALUE (#PCDATA)>
    When using the addData() method from the oracle.xml.classgen.CGNode class and the isValidating attribute is true, the xml generator complains about markup symbols even though I am enclosing the data within the <![CDATA[]]> construct.
    VALUE.addData("<![CDATA["+str+"]]>");
    When the validation is off, the xml generator seems to parse and modify the contents of the data (i.e. replaces < by &#60;)
    The XMLParser seems to understand the CDATA construct correctly.
    Could anybody please help me to get this straight?
    I will really appreciate some insights.

    In each of the generated classes, there is an addCDATASection() method which allows you to create CDATA inside an element.
    On the other hand, I have tried using the addData() method to create PCDATA with (ampersand)amp; (ampersand)lt; etc. to replace the characters & <, but it doesn't seem to work.
    If you have other experiences with classgen, please let me know. I'm using classgen v1.0.2.
    Thanks.

  • Workshop 10.3, Axis2 and Databinding (XMLBEANS and JIBX missing)

    In Workshop 10.3 (Windows) when I try to generate a Web Service Client (FIle -> New -> WebService Client ) from a WSDL, I see a window where I can choose Databinding from a select box, but there are ONLY "ADB" and "NONE".
    Is it possible to choose "XMLBEAN" or "JIBX" somewhere ?
    Thanks
    Andrea

    If you are using Axis, then you are using the wtp WebService tooling. You would need to check the eclipse wtp related forums.
    Is this the Web Service Client option under WebLogic WebServices ? In this case you are using the WebLogic WebService stack. This option allows for XMLBeans.

  • XmlBeans and user defined interface...Does it work within WLW?

    I'm attempting to build an xmlbean with a user defined interface that our xmlbean ( derived from our xsd) will implement.
    <br><br>
    I have tried this using the samples from the Apache Xmlbean project ( v1.0.4 ) and the BEA version; both have worked.
    <br><br>
    I was wondering if anyone has attempted this and managed to achieve success using this via the WLW build process.
    <br><br>
    I have removed the reference to the our xmlbean within the handler and used the com.bea.xml.XmlBean reference. This worked with both apache and BEA tests. This also reduces the need for a circular build process ( ugly at best! )
    <br><br>
    I get the following error message:
    <br><br>
    <b>
    ERROR: localInfo.xsdconfig:35: Interface 'com.extension.weatherExtension' not found.
    ERROR: localInfo.xsdconfig:35: Interface 'com.extension.weatherExtensionHandler' not found.
    </b>
    <br><br>
    It woud seem that i am missing the java classes fromthe classpath....however i echo out the classpath during the build and my compiled jar is there.
    <br><br>
    Any thoughts?
    <br><br>
    Thanks

    Andy,
    Let me see if I can help.
    Groups A and B and assigned to group C. That means members of group A are also members of group C. Members of group B are also members of group C.
    However members of group C are only members of group C. So any roles you assign to group A apply only to group A. Likewise with B, roles assigned to group B apply only to group B.
    Now, assign a role to group C and members of groups A, B, and C have that role. So assign general roles to group C and more specific ones to groups A and B.
       C-role 1
    A    B-role 2
    Carl is assigned to group C so he has role 1.
    Brenda is assigned to group B so she has roles 1 and 2.
    Does this help?
    -Michael
    Message was edited by: Michael Shea

  • Xmlbeans and substitution groups

    I am working with the new GoogleEarth .xsd files and I have compiled them using xmlbeans. There are a number of elements that make use of substitutiongroups. for example:
    <element name="Placemark" type="kml:PlacemarkType"
        substitutionGroup="kml:AbstractFeatureGroup"/>
      <complexType name="PlacemarkType" final="#all">
        <complexContent>
          <extension base="kml:AbstractFeatureType">
            <sequence>
              <element ref="kml:AbstractGeometryGroup" minOccurs="0"/>
            </sequence>
          </extension>
        </complexContent>
      </complexType>how do I "replace" the substitution group with the actual element so that instead of:
    <AbstractGeometryGroup>
              <Point>
                <extrude>true</extrude>
                <altitudeModeGroup>
                  <altitudeMode>relativeToGround</altitudeMode>
                </altitudeModeGroup>
                <coordinates>32.18582907768492, -107.85250271267361, 50</coordinates>
              </Point>
            </AbstractGeometryGroup>I would get just           <Point>
                <extrude>true</extrude>
                <altitudeModeGroup>
                  <altitudeMode>relativeToGround</altitudeMode>
                </altitudeModeGroup>
                <coordinates>32.18582907768492, -107.85250271267361, 50</coordinates>
              </Point>I have tried casting, the substitute method, and the replace method to no avail. I think casting is the right way to go, but I throw a class cast exception when I try to cast. Here is my code
    PointType point = (PointType)placemark.addNewAbstractGeometryGroup();
         AltitudeModeDocument altModeDoc = AltitudeModeDocument.Factory.newInstance();
         AltitudeModeEnumType.Enum altModeEnum = AltitudeModeEnumType.Enum.forString("relativeToGround");
         altModeDoc.setAltitudeMode(altModeEnum);
         point.setAltitudeModeGroup(altModeDoc);
         point.setExtrude(true);
         Vector<String> coordinates = new Vector<String>(3);
         coordinates.add("32.18582907768492,");
         coordinates.add("-107.85250271267361,");
         coordinates.add("50");
         point.setCoordinates(coordinates);With the cast exception thrown on the first line. Which I would understand, but I can call
    placemark.setNewAbstractGeometryGroup(), which takes a AbstractGeometryType as an argument and will accept a PointType as an argument which I assume means PointType isa AbstractGeometryType. Is the issue that that I am casting the wrong direction? Any help is greatly appreciated. I would much prefer to build the xml messages using the beans rather then hacking together a StringBuffer.

    Hi Pon -
    Do you mean groups of users or group of pages?
    If you mean groups of users, you can create your sub-groups as a regular groups, and then when assigning users to your Main Finance group ... add the 2 groups which are your subGroups.
    If you are talking about the Portal Page Group structure, you cannot nest page groups, but you can create pages and subpages.
    Hope this helps,
    Candace

  • SOAP and CDATA xmlnode 64k limit

    Hi,
    Version: 10.2.0.1.0.
    I have this situation. I have an xml that I am passing as a message body in a SOAP request. Since my message is an xml, we are passing it in the CDATA tag.
    Now, this xml itself is more than 64k. But, when I put it as a CDATA tag , then, it is giving me a more than 64k error.ORA-31167: XML nodes over 64K in size cannot be inserted.
    What could be the workaround for this size restriction so that I can send the XML as a message in the SOAP request?
    I hope I am clear in asking the question.
    Thank you.

    There is no work around for this problem. In 10gR2 and earlier a text node cannot be larger than 64k. This will be addressed in the next release of the data base. If you are interested in being part of the beta program please register at the following URL.
    http://otnbeta.oracle.com/bpo/prospects/index.htm.
    In you case pain is somewhat self inflicted. Why are you making the payload of your message a CDATA section. Why not simply have a single XML document that consists of the SOAP headers and the content. Doing so would avoid the problem as long as none of the text nodes in your payload exceed the 64K limit.

  • XMLDOM and CDATA

    Guru's,
    I have a requirement using PL/SQL whereby I need to store more that 32K bytes of HTML in an XML Element. Since the content is HTML, it seems to me that I have to use the CDATA method of XMLDOM
    (for example item_node := xmldom.appendChild(item_node, xmldom.makeNode(xmldom.createCDATASection(doc, p_bodycopy)));)
    My issue is that the createCDATASection can only handle a VARCHAR2, and I require it to handle (at most) 64K of information.
    I can use the AppendData procedure w/ Character data, but that creates decode,translation and transformation issues.
    Is there any light at the end of this tunnel? or should I punt.
    The following works very well for everything <= 32K
    item_elmt := xmldom.createElement(doc, 'BodyCopy');
    item_node := xmldom.appendChild(root_node, xmldom.makeNode(item_elmt));
    item_node := xmldom.appendChild(item_node, xmldom.makeNode(xmldom.createCDATASection(doc, p_bodycopy)));
    I am looking for a solution for content >32K
    Any insight is much appreciated.
    -Scot

    Hi Scot. Unfortunately most of the xml packages and functions are brain dead when it comes to handling large data. Most are implicitly tied to varchar limits and lob limitations in PL/SQL.
    To get a CDATA element exactly as you describe, I think you need to resort to building it up from 1st principles using lob methods.
    e.g.
    declare
    v_lob clob;
    v_lob_temp clob;
    begin
    v_lob := '<FamilyHistory><![CDATA[';
    select x.bigdata into v_lob_temp from x1 x where x.item='mysample';
    DBMS_LOB.APPEND(v_lob, v_lob_temp );
    DBMS_LOB.APPEND(v_lob, ']]></FamilyHistory>');
    insert into x2 values('mysample',v_lob);
    end;
    There is an approach using xmltype views based on object types, but these will implicitly xml encode your clob rather than quote it as CDATA (and I don't know a way to prevent this).
    e.g.
    CREATE TABLE x1 (item varchar(25) primary key, bigdata clob);
    -- (insert a very large record)
    CREATE OR REPLACE TYPE x1_t AS OBJECT
    (Holder varchar(25),BookData CLOB);
    CREATE OR REPLACE VIEW vx1 OF XMLTYPE
    WITH OBJECT ID (ExtractValue(sys_nc_rowinfo$, '/ROW/HOLDER')) AS
    SELECT sys_XMLGen(x1_t(x.item, x.bigdata)) from x1 x;
    Here's a sample entry:
    SELECT
         extractvalue(x.SYS_NC_ROWINFO$,'/ROW/HOLDER') as holder
         ,'xml_length: ' || dbms_lob.getlength(x.SYS_NC_ROWINFO$.getclobval()) as xml_length
    FROM vx1 x;
    HOLDER XML_LENGTH
    mysample xml_length: 324198
    Note sql*plus has a problem querying this:
    SQL> select * from vx1;
    ERROR:
    OCI-31167: XML nodes over 64K in size cannot be inserted
    Unless we just go for the clob. In this example the "BOOKDATA" is pure unencoded XML in table X1, but automatically encoded in the xmltype view vx1:
    SQL> set long 200
    SQL> select (SYS_NC_ROWINFO$).GETCLOBVAL() from vx1;
    (SYS_NC_ROWINFO$).GETCLOBVAL()
    &lt;?xml version=&quot;1.0&quot;?&gt;
    &lt;ROW&gt;
    &lt;HOLDER&gt;mysample&lt;/HOLDER&gt;
    &lt;BOOKDATA&gt;&amp;lt;books&amp;gt;
    &amp;lt;book id=&amp;quot;1&amp;quot;&amp;gt;
    &amp;lt;title&amp;gt;the book 1 title&amp;lt;/title&amp;gt;
    &amp;lt;/book&amp;gt;
    &amp;lt;book id=&amp;quot;2&amp;qu

  • XMLBeans and xsi:type overrides

    The issue is one of the split of responsibility for the XML meta-data and the XML info-set. The XMLBeans classes are allowed to choose XML namespace prefixes at will (following the usual rules about uniqueness) and drop unused namespace prefixes. However the XMLBeans are not allowed to change the values of any elements or attributes which would alter the info-set.
    The XML schema type attribute is held in the XML info-set as an attribute and therefore cannot be changed by the XMLBeans, however it also contains details of the namespace prefix.
    For example the following piece of XML shows the usage of a xsi:type qualifier :
    <v11:createOrderByValueRequest
    xmlns:v1="http://videonetworks.com/ServiceActivation/v1-0"
    xmlns:v11="http://ossj.org/xml/ServiceActivation/v1-1">
    <v11:orderValue xsi:type="v1:VNLCreateOrderValue"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <v11:description>IPTV Consumer Order for WO999</v11:description>
    </v11:orderValue>
    </v11:createOrderByValueRequest>
    If we extract the order value from the createOrderByValueRequest object as the only use of the namespace v1 is within the info-set, under the xsi:type attribute the newly created xml-fragment may look like the following :
    <xml-fragment xsi:type="v1:VNLCreateOrderValue"
    xmlns="http://ossj.org/xml/ServiceActivation/v1-1"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
    <description>IPTV Consumer Order for WO999</description> </orderValue>
    This no longer validates as the v1 namespace prefix is not defined. As a workaround we have created a method which checks for xsi:type attributes and inserts the namespaces required based on a set of types and namespaces we are using. The output would then look like :
    <xml-fragment xsi:type="v1:VNLCreateOrderValue"
    xmlns="http://ossj.org/xml/ServiceActivation/v1-1"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:v1="http://videonetworks.com/ServiceActivation/v1-0">
    <description>IPTV Consumer Order for WO999</description> </orderValue>

    Of course this is a namespace issue. But how can i solve it?
    In jdeveloper a see all the variables and just use the graphical assign.
    This writes
    <to variable="inputVariable" part="payload" query="/payload/client:Reference/client:my_nte"/>
    If i change from client: to anything else the workflow does not compile anymore...

  • Flash and CDATA

    Hi there.
    I load a text from an xml file which has a code like this:
    <?xml version="1.0" encoding="utf-8"?><xml>
    <content>
    <description><![CDATA[<br><br>
    <font color="#FFFFFF" size="20" style="font-family:Calibri">PROFILE</font><br><br><p align="justify"><font color="#FFFFFF"  size="15"><i>My company in italics  </i></font>
    <font color="#ffffff" style="font-family:Calibri" size="15"><b>my Company in bold</b></font>
    <br><br>
    <font color="#FFFFFF"  size="15" style="font-family:Calibri"my Company name with another font family </font><br><br>
    link<br><br></p>
    <br><br>
    <font color="#FFFFFF" size="15">
    <p align='right'><font color="#FFFFFF" size="20">mailto link</font></p></font>]]></description>
    </content>
    </xml>
    When i change the font size and font color i get the result i want.
    But when i try to change the font-family, or to make a part of text in italics or bold i fail to get what i want.
    I also tried this:
    <font style="font-style:italic">my text</font>
    with no success
    What should i do?
    Thank you in advance

    function loadContentText () {
        var cont:XML = new XML ();
        cont.ignoreWhite = true;
        cont.onLoad = function (success) {
            if (success) {
                var root:XMLNode = this.firstChild;
                fullText = root.childNodes[0].childNodes[0].childNodes[0].nodeValue;
                contentTextBox._visible = true;
                ZigoEngine.doTween (contentTextBox,'_alpha',100,2,"easeOutExpo",0);
                contentTextBox.contentText.txt.htmlText = fullText;
                contentTextBox.contentText.txt.autoSize = true;
                if (contentTextBox._height > contentTextArea.back._height) {
                    startFloat ();
        cont.load ("html_content_page_xml-el/contents.xml");
    This is the code its used in .fla and it takes the html data from an xml file. The code at the xml file is like the code at my first post.
    Where:
    contentTextBox is the instance name of contentText movieclip
    contentText is the instance name of the textbox movieclip
    txt is the instance name of the textbox
    (Its like you have a textbox with instance name txt, then convert it to movieclip with instance name contentText and then convert it again to movieclip with instance name contentTextBox).
    At the textbox i have chosen my font (Calibri) and at character embeding i have chosen all. I do not understand how to embed the Calibri italics for example, as font face is italics and font style is italics. I cannot find out where or how to include calibri italics font as a font and not as style.
    What am i doing wrong??

  • 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...?

Maybe you are looking for

  • Play count and display

    Since the latest upgrade of Itunes the play count of many of my tracks has automatically reset to 0 for some unknown reason.  Also I display Track Name/Artist/Album on my Itunes and on a number of occasions they display incorrect information and when

  • Lost events in calendar and add tab after 7.1 update. How can I add events?

    Need to get add tab back.

  • Do I Need Contribute

    I have been maintaining an organization's website - free. I was using FrontPage, but it - of course - is being phased out and replaced by SharePoint. I have used the trial on this, but was not overly impressed. Would Contribute be a better choice to

  • Cobro de 13 pesos a mi cuenta Creative Cloud

    Quiero saber por qué hoy se realizó un cobro de 13 pesos a mi cuenta de mi membresía de Creative Cloud y después el cobro de 665 cuando anteriormente eran 650 pesos.

  • Exporting from Entourage to Mac Mail

    I have a large Entourage inbox. Thousands of Emails. When I try to export from Entourage everything seems to work fine. But, when I import, only about a third come through. Is there a sure fire way to get all emails from Entourage to Mac Mail. I am u