Work with xml dom

this is a javascript problem(sorry, not suitable here)
i notice that we got 'microsoft.xmldom' to enable us to work with xmldom under IE, but do we had similiar thing for us to work with xmldom under netscape or mozilla? cause i'm using linux.
thanks for helping.

If you know the question is not suitable here, then why do you ask the question?
Search for an answer on Netscape's website.
Jesper

Similar Messages

  • How to work with xml in java ?

    Hello everybody. I am trying to read, write and modify xml file in java. But i don't know what is the best method for work with xml file ? Please give me some examples for read, write and modify it.
    Thanks in advance.

    >
    Hello everybody. I am trying to read, write and modify xml file in java. But i don't know what is the best method for work with xml file ?>'It depends'. I saw some discussions of XML parsing using different J2SE core XML APIs (the J2SE has a selection of ways to deal with XML) where one API was 20 times faster than the other.
    >
    ... Please give me some examples for read, write and modify it. >Please give me a ponie. ;-)
    You will probably need to do a lot of reading, as well as some experimentation, before you decide which XML API is best suited to the particular task you are facing.
    >
    Thanks in advance.>No worries.

  • Problem when load more swf files work with xml files into my movie

    hi ;
    I have one flash file & more of swf files which work with xml files .
    when I load one swf file into my flash file  and remove it and load anther one on the same movieclip in my flash file it load the old swf file.
    when i load one on movieclip and remove it and load anther swf  on anther movieclip the file doesn`t work  and stoped.
    when test my flash file to load and remove swf files without xml file it work fine but when repleaced the swf files with other work with xml files the problem hapend.
    thanks;

    YOu should trace the names of the files that are being targeted for loading to see if they agree with what you expect.  If you want help with the coding you will need to show the code that is relevant to your problem (not all of it)

  • Anyone working with XML in portlets? How?

    Do you work with XML/XSL in a JSP Portlet to build your presentation?
    We are having trouble with german Umlauts and want to know a way for XML in portlets in general.
    Thomas

    Hallo Ingo !
    We use the Oracle XML Parser and XSL transformer in a JSP Portlet. The XML is referenced throu a URL from our XML server.
    The XSL file is in the portlet directory.
    Our Problem is:
    Even if we use encoding attributes set to UTF-8 we are not able to display Umlauts correctly. They are not encoded to HTML Umlauts (e.g. ü to ü).
    We tested our code with Apache Xalan and Xerces and everything works fine.
    I think that Oracle XML parser treats things not as they are recommended by W3C.
    Finally we gave up parsing XML with oracle Parser and now use Apache XML/XSL Parsers.
    Or do you know a better way?
    Thomas

  • Working with XML and Button

    Hi,
    How are all of you. Well I am new to Flex. But I have started
    building simple applications. One of the top most problem I am
    facing is working with XML and Button. Can you please assist me in
    this. I am explaining my problem:
    I have an external XML file like this:
    <Menu>
    <button>
    <idnt>0</idnt>
    <label>General Health</label>
    <text>General Health pages is currently under
    construction</text>
    </button>
    <button>
    <idnt>1</idnt>
    <label>Mental Health</label>
    <text>Mental Health pages is currently under
    construction</text>
    </button>
    </Menu>
    Now I want to generate Buttons Dynamically from this XML. And
    the second thing which is the most problematic is that how I code
    it so that when I press the Button labled "General Health", it will
    show the same text as in the XML tag coresponding to tag
    "<label>General Health</label>" ?
    I badly need this. I am realy confused on this. Kindly help
    me.
    Regards
    ..::DeX

    Let's assume that variable "node" contains one element of the
    XML. For example,
    <button>
    <idnt>0</idnt>
    <label>General Health</label>
    <text>General Health pages is currently under
    construction</text>
    </button>
    such that node.label would be "General Health", node.idnt
    would be 0, etc.
    You can build a Button like this:
    var b:Button = new Button();
    b.label = node.label;
    b.data = node; // more on this later
    b.width = 60;
    b.height = 26;
    addChild(b); // critical - adds the button to the display
    list so you can see it
    b.addEventHandler( MouseEvent.CLICK, handleClick );
    You must set the button's width and height unless the button
    will be in a container that will size its own children (like Tile).
    Every Flex component has a data property. You can set it to
    whatever you like. For your needs it makes sense to set each
    Button's data property to the node it relates to.
    Now suppose that code above is in a function, createButton:
    private function createButton( node:XML ) : void {
    // code from above
    Here's how to make all the buttons where "menu" is a variable
    that contains your XML:
    for(var k:int=0; k < menu.button; k++) { // menu.button is
    an XMLList
    createButton( menu.button[k] );
    Now to handle the event:
    private function handleEvent( event:MouseEvent ) : void
    var b:Button = event.currentTarget as Button;
    trace( b.data.text);
    When a button is picked, the description element will print
    in the debug console. Replace the trace with whatever code you
    need.

  • Learning to work with XML

    Hello!
    Can anyone point me to some resources/turtorials/books etc from where to learn more about working with XML in indesign?
    So far all I found on the net are some simple tutorials to make business cards and the like..
    I need to make large books (for example, right now i'm working on a cookbook), and i'we seen some amazing examples of what can be achieved using a XML workflow.
    Related question: where can i find some documentation about the "aid" namespace (i think that's the correct term? for example: <element aid:pstyle="blahblah">
    thanks all.

    InDesign CS5: Dynamic Publishing Workflows in XML with Jim Maivald (the author of the book mentioned by Steve)
    XML Publishing with Adobe InDesign by Dorothy Hoskins
    Related question: where can i find some documentation about the "aid" namespace (i think that's the correct term? for example: <element aid:pstyle="blahblah">
    Adobe InDesign CS3 and XML: A Technical Reference -- Page 20

  • Can't get out.print to work with XML jsp tags

    <jsp:scriptlet>
    if(ErrorTrap == true) {
         out.println("<tr><td colspan=\"center\" align=\"center\">There was" an error while processing the form</td></tr>");
         ErrorTrap = false;
    </jsp:scriptlet>
    I can't get this script to work with the XML stype jsp tags. It keeps telling me the <jsp> tags are untermintaed. Is there a special trick to fix this or do I have to use the non-XML type tags?

    Sorry, I didn't mean to put the extra " in the out.println text string. :-/

  • Jbuilder compiler problem with xml DOM - please help.

    my problem is that I am using jbuilder 4 professional to compile/run my code.
    However I want to use the XML DOM but jbuilder does not appear to support the necessary packages for use with XML.
    How can I get round this.
    Can I compile instead from the command line - I am using JDK1.4 which supports the java xml packages necessary. Or is there a way of adding the necessary files to my project?
    thanks, B

    Add the required jar files to your project properties->classpath in JBuilder
    The only problem is that. I have been using JBuilder without any problems.

  • Working with xml in Oracle

    Hi All,
    I am new to programming with XML in Oracle.
    Please help me with this requirement.
    Please consider a sample data
    <BSGDocs><Doc Id='562' Archive='1'></Doc><Doc Id='563' Archive='0'></Doc></BSGDocs> from this clob data I need to extract the doc_id and archive values and insert into a new table
    here it should return
    Doc_id Archive
    562 1
    563 0
    Please let me know How I can achieve this.
    Thanks & Regards,
    Vikas

    Just add INSERT INTO your-table:
    select  id,
            archive
      from  XMLTable(
                     '/BSGDocs/Doc'
                     passing XMLType(Q'[<BSGDocs><Doc Id='562' Archive='1'></Doc><Doc Id='563' Archive='0'></Doc></BSGDocs>]')
                     columns
                       id varchar2(5) path '@Id',
                       archive varchar2(5) path '@Archive'
    ID    ARCHIVE
    562   1
    563   0
    SQL> SY.

  • Read Node Attribute with XML DOM.

    Hello, I have a XML File like this:
    <?xml version="1.0" encoding="ISO-8859-15"?>
    <Datenexport>
    <Codeliste Nr="1">
    <Entry>
    <Code>J</Code>
    <Decodierung_DE>JA</Decodierung_DE>
    <Decodierung_EN/>
    </Entry>
    <Entry>
    <Code>N</Code>
    <Decodierung_DE>NEIN</Decodierung_DE>
    <Decodierung_EN/>
    </Entry>
    </Codeliste>
    <Codeliste Nr="3">
    <Entry>
    <Code>??</Code>
    <Decodierung_DE>Code noch festzulegen</Decodierung_DE>
    <Decodierung_EN>Code to be defined</Decodierung_EN>
    </Entry>
    I read the File with DOM and it works fin.
    This is a sample of my code:
    begin
    INDOMDOC := DBMS_XMLDOM.NEWDOMDOCUMENT(xml_doc.GETclobVAL());
    l_nl := dbms_xslprocessor.selectNodes(dbms_xmldom.makeNode(indomdoc),'/Datenexport','xmlns:xiz="http://www.bvl.bund.de/Schema/2010/xiz"');
    FOR cur IN 0 .. dbms_xmldom.getLength(l_nl) - 1
    LOOP
    l_n := dbms_xmldom.item(l_nl, cur);
    l_nl2 := dbms_xmldom.getchildnodes(l_n);
    lv_value := dbms_xmldom.getnodename(dbms_xmldom.getfirstchild(l_n));
              FOR cur2 IN 0 .. dbms_xmldom.getLength(l_nl2) - 1
              LOOP
              l_n2 := xmldom.ITEM(l_nl2, cur2);
              nodename_val := dbms_xmldom.getnodename(l_n2);
              dbms_output.put_line('NodenameAntrag: '||nodename_val);
              lv2_value := dbms_xmldom.getnodevalue(dbms_xmldom.getfirstchild(l_n2));
              dbms_output.put_line('NodeValue: '||lv2_value);
              IF nodename_val = 'Codeliste' THEN number_val := dbms_xmldom.????????????????;
    Now, i need to read the number of the "Codeliste" (<Codeliste Nr="1">).
    But i haven´t find the right function.
    Could anbody help me?

    Still not using XMLTable for this? ;)
    OK, using DOM, for example :
    SQL> set serveroutput on
    SQL>
    SQL> declare
      2    doc       xmltype;
      3    indomdoc  dbms_xmldom.domdocument;
      4    l_nl      dbms_xmldom.DOMNodeList;
      5    l_n       dbms_xmldom.DOMNode;
      6    lv_value  varchar2(30);
      7  begin
      8    doc := xmltype('<?xml version="1.0" encoding="ISO-8859-15"?>
      9  <Datenexport>
    10  <Codeliste Nr="1">
    11  <Entry>
    12  <Code>J</Code>
    13  <Decodierung_DE>JA</Decodierung_DE>
    14  <Decodierung_EN/>
    15  </Entry>
    16  <Entry>
    17  <Code>N</Code>
    18  <Decodierung_DE>NEIN</Decodierung_DE>
    19  <Decodierung_EN/>
    20  </Entry>
    21  </Codeliste>
    22  <Codeliste Nr="3">
    23  <Entry>
    24  <Code>??</Code>
    25  <Decodierung_DE>Code noch festzulegen</Decodierung_DE>
    26  <Decodierung_EN>Code to be defined</Decodierung_EN>
    27  </Entry>
    28  </Codeliste>
    29  </Datenexport>');
    30 
    31 
    32    indomdoc := dbms_xmldom.newdomdocument(doc);
    33 
    34    l_nl := dbms_xslprocessor.selectNodes(dbms_xmldom.makeNode(indomdoc),'/Datenexport/Codeliste');
    35 
    36    FOR cur IN 0 .. dbms_xmldom.getLength(l_nl) - 1 LOOP
    37       l_n := dbms_xmldom.item(l_nl, cur);
    38       --lv_value := dbms_xmldom.getnodevalue(dbms_xmldom.getfirstchild(l_n));
    39       dbms_xslprocessor.valueOf(l_n, '@Nr', lv_value);
    40       dbms_output.put_line('Nr : '||lv_value);
    41    END LOOP;
    42 
    43    dbms_xmldom.freeDocument(indomdoc);
    44 
    45  end;
    46  /
    Nr : 1
    Nr : 3
    PL/SQL procedure successfully completed

  • InsertHTML won't work with XML files

    I am trying to create a command that writes text to an open
    XML file. The command I've created works fine under some
    circumstances but not others.
    It works if I open an XML file and apply the command without
    editing the file. If I make any edits to the file manually and then
    apply the command, it doesn't insert anything.
    It works fine with HTML files in design view, but in code
    view, if I make any edits and then run the command, nothing
    happens. If I switch to design view and back again, the command
    then works fine.
    I tested the built-in Dreamweaver command "Flash Text" on an
    XML file (after editing it so it could be used with an XML file),
    and the same problem occurs with this command when using it on an
    XML file. The problem didn't occur with HTML in code view, though.
    Below is the .JS file for my command. The corresponding HTML
    file contains only an empty form.
    function canAcceptCommand() {
    return(true);
    function isDOMRequired() {
    return false;
    function commandButtons()
    return new Array( MM.BTN_OK, "cmdOK(); "
    , MM.BTN_Cancel, "cmdCancel();");
    function cmdOK()
    var theDOM = dw.getDocumentDOM('document');
    theDOM.insertHTML("test", true);
    window.close();
    function cmdCancel()
    window.close();

    I need a function, though, that will insert text at the
    cursor location in an open file.
    I'm also discovering that the command I created above
    functions erratically even when it does deign to insert the text in
    an XML file. The text is usually inserted somewher other than where
    the cursor is located.

  • JAXP working with XML-XSL files - urgent help

    I have the code below to transform xml file into html file using xsl file:
    Transformer transformer = tFactory.newTransformer(new StreamSource("D:/Test/26120108026263560502.xsl"));
    transformer.transform(new StreamSource("D:/Test/26120108028469387014574415483532664948806162003.xml"), new StreamResult(new FileOutputStream("D:/Test/Test.html")));
    The code works fine with simple xml, xsl files, but it shows strange error messages when transforming more complex xsl file, please look at the errors below:
    [Error] 26120108026263560502.xsl:3:80: Element type "xsl:stylesheet" must be declared.
    [Error] 26120108026263560502.xsl:4:58: Element type "xsl:output" must be declared.
    [Error] 26120108026263560502.xsl:6:75: Element type "xsl:include" must be declared.
    [Error] 26120108026263560502.xsl:12:25: Element type "xsl:template" must be declared.
    [Error] 26120108026263560502.xsl:14:7: Element type "html" must be declared.
    [Error] 26120108026263560502.xsl:15:7: Element type "head" must be declared.
    [Error] 26120108026263560502.xsl:16:8: Element type "title" must be declared.
    [Error] 26120108026263560502.xsl:17:75: Element type "xsl:value-of" must be declared.
    [Error] 26120108026263560502.xsl:19:74: Element type "meta" must be declared.
    [Error] 26120108026263560502.xsl:20:8: Element type "style" must be declared.
    [Error] 26120108026263560502.xsl:38:25: Element type "body" must be declared.
    [Error] 26120108026263560502.xsl:39:48: Element type "xsl:call-template" must be declared.
    [Error] 26120108026263560502.xsl:40:55: Element type "xsl:call-template" must be declared.
    [Error] 26120108026263560502.xsl:41:49: Element type "xsl:call-template" must be declared.
    [Error] 26120108026263560502.xsl:43:67: Element type "table" must be declared.
    [Error] 26120108026263560502.xsl:44:7: Element type "tr" must be declared.
    [Error] 26120108026263560502.xsl:45:21: Element type "td" must be declared.
    [Error] 26120108026263560502.xsl:45:24: Element type "b" must be declared.
    [Error] 26120108026263560502.xsl:45:51: Element type "br" must be declared.
    [Error] 26120108026263560502.xsl:46:123: Element type "xsl:value-of" must be declared.
    It look to me that JAXP can't recognize the tags. Everyone's help is appreciated.
    Neil

    Here is the top part of it: ***********************
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE xsl:stylesheet [<!ENTITY nbsp "&#160;">]>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html" indent="no" encoding="UTF-8" />
    <xsl:include href="http://connexion.vdr.com/ematrix/reports/xsllib.xsl" />
    <xsl:template match="/">
    <html>
    <head>
    <title>
    <xsl:value-of select="//businessObject[objectType='CRA']/objectName"/>
    </title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
    <style>
    TABLE
    font-family: Arial Narrow, Tahoma, Verdana;
    border: #000000 solid;
    border-width: 2px 2px 0px;}
    TABLE.BOTTOM
    font-family: Arial Narrow, Tahoma, Verdana;
    border: #000000 solid;
    border-width: 2px 2px 2px;}
    TD.DATA, TH.DATA
    border: #cccccc solid;
    border-width: 0px 1px 1px 0px;}
    </style>
    </head>
    <body bgcolor="#FFFFFF">
    <xsl:call-template name="ECRHeaderTable" />
    <xsl:call-template name="ECRHeaderDetailsTable" />
    <xsl:call-template name="ECRDetailsTable" />
    Anh here is the top part of file xsllib.xsl in the xsl:include: ********
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE xsl:stylesheet [<!ENTITY nbsp "&#160;">]>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <!--*******************************************************************
    CalJulian - Calculate the Julian date for any date
    Inputs: Year - Year
    Month - Month
    Day - Day
    hour - hour (24 hour based, 0=midnight, 23=11pm)
    min - minute
    sec - second
    History:
    http://www.nr.com/julian.html
    *********************************************************************-->
    <xsl:template name="CalJulian">
    <xsl:param name="Year"/>
    <xsl:param name="Month" select="1"/>
    <xsl:param name="Day" select="1"/>
    <xsl:param name="Hour" select="0"/>
    <xsl:param name="Min" select="0"/>
    <xsl:param name="Sec" select="0"/>
    <xsl:variable name="jy">
    <xsl:choose>
    <xsl:when test="($Year < 0) and ($Month > 2)">
    <xsl:value-of select="$Year + 1"/>
    </xsl:when>
    <xsl:when test="($Year >= 0) and ($Month <= 2)">
    <xsl:value-of select="$Year - 1"/>
    </xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="$Year"/>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:variable>
    The files work fine when I use msxsl.exe without any errors. I forgot to mention that dispite all the errors, JAXP still creates the html file but seeing the errors is not a good thing.
    Neil

  • Need help with XML DOM example

    Im going through the DOM tutorial portion on displaying a DOM with a JTree and have a few questions
    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JAXPDOM4.html
    lets say i have the following simple XML :
    <?xml version="1.0"?>
    <circle>
      <radius>15</radius>
      <position>
        <x-coordinate>30</x-coordinate>
        <y-coordinate>50</y-coordinate>
      </position>
    </circle>why do i get a 3 text nodes in the resulting JTree, not counting the text that are children of <radius>, <x-coordinate> and <y-coordinate> elements ?

    Is this true ? How can i avoid displaying empty text nodes ?
    The empty text elements are included because by default, DocumentBuilder creates a DOM that includes all the lexical information necessary to reconstruct the original document, in it's original form. That includes comment nodes as well as text nodes. There is as yet no standard mechanism for eliminating such lexical information in the DOM so you are left with the logical structure.

  • Skin Setting not working with XML file

    I am trying to use the Adobe Flash Playback with a flashvars skin setting.  I am pointing this setting to an xml file where I am trying to overide the playButtonOverlay image.  Below is my code.  I am using MVC, so you will see a couple Html Helpers.  The helpers are working just fine.  It is only the skin setting I can't seem to get to work.  Any help would be appreciated.  Thanks, Michael.
    Html File
    <object width="384" height="288" >
         <param name="movie" value="http://fpdownload.adobe.com/strobe/FlashMediaPlayback.swf" />
         <param name="flashvars" value="src=<%: Model.VideoFilePath %>&poster=<%: Model.PosterFilePath %>&skin=/Skin/FlashPlayerSkin.xml" />
         <param name="allowFullScreen" value="false" />
         <param name="allowscriptaccess" value="always" />
         <param name="quality" value="high" />
         <param name="wmode" value="transparent" />
         <embed src="http://fpdownload.adobe.com/strobe/FlashMediaPlayback.swf" type="application/x-shockwave-flash"
              allowscriptaccess="always" allowfullscreen="false" width="384" height="288"
              flashvars="src=<%: Model.VideoFilePath %>&poster=<%: Model.PosterFilePath %>&skin=/Skin/FlashPlayerSkin.xml"
              quality="high" wmode="transparent" />
    </object>
    XML File
    <?xml version="1.0" encoding="utf-8" ?>
    <skin>
      <elements basePath="/Content/MFBImages/FlashPlayer/">
        <element id="playButtonOverlayNormal" src="playButtonOverlay.png"/>
        <element id="playButtonOverlayDown" src="playButtonOverlay_down.png"/>
        <element id="playButtonOverlayOver" src="playButtonOverlay_over.png"/>
      </elements>
    </skin>

    Thank you both for replying so quickly.  I still don't seem be having too much luck.  The first thing I did was watched fiddler, and it did show an error with crossdomain.xml.  So I added the below elements to a crossdomain.xml file in my root folder.  I also changed all my paths to be absolute for both the skin flashvar and xml, but still no luck.
    crossdomain.xml
    <?xml version="1.0" encoding="utf-8" ?>
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
      <allow-http-request-headers-from domain="*" headers="SOAPAction,Content-Type"/>
    </cross-domain-policy>
    Since I am having trouble with the xml, I decided to try and just put the skin element into the html page where the flash player is located.  I then removed the flashvar skin element out of the player.  Below is my code for the skin element and flashplayer with absolute paths.  The player still seems to use the default overlay play button.  Any other suggestions would help out greatly.
    <skin>
    <elements basePath="http://localhost:1852/Content/MFBImages/FlashPlayer/">
      <element id="playButtonOverlayNormal" src="playButtonOverlay.png"/>
      <element id="playButtonOverlayDown" src="playButtonOverlay_down.png"/>
      <element id="playButtonOverlayOver" src="playButtonOverlay_over.png"/>
    </elements>
    </skin>
    <object width="384" height="288" >
    <param name="movie" value="http://fpdownload.adobe.com/strobe/FlashMediaPlayback.swf" />
    <param name="flashvars" value="src=http://localhost:1852/VideoLibrary/Agents/test video.flv&poster=http://localhost:1852/Content/MFBImages/AgentImage/Poster.jpg" />
    <param name="allowFullScreen" value="false" />
    <param name="allowscriptaccess" value="always" />
    <param name="quality" value="high" />
    <param name="wmode" value="transparent" />
    <embed src="http://fpdownload.adobe.com/strobe/FlashMediaPlayback.swf" type="application/x-shockwave-flash"
        allowscriptaccess="always" allowfullscreen="false" width="384" height="288"
        flashvars="src=http://localhost:1852/VideoLibrary/Agents/test video.flv&poster=http://localhost:1852/Content/MFBImages/AgentImage/Poster.jpg"
        quality="high" wmode="transparent" />
    </object>

  • Working with xml data collections (sequences)

    Dear all,
    a database adapter in my BPEL process returns the following xml data structure:
    Schema:
    <xs:element name="MGroupsCollection" type="MGroupsCollection"/>
    <xs:complexType name="MGroupsCollection">
    <xs:sequence>
    <xs:element name="MGroups" type="MGroups" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="MGroups">
    <xs:sequence>
    <xs:element name="id" type="xs:int"/>
    <xs:element name="name" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    Instance (example, namespaces deleted):
    <MGroupsCollection>
    <MGroups>
    <id>23</id>
    <name>group2</name>
    </MGroups>
    <!-- more MGroups -->
    </MGroupsCollection>
    Now, I want to transform this structure into the following one:
    Schema:
    <xs:element name="Groups">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="Group" type="Group" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:complexType name="Group">
    <xs:sequence>
    <xs:element name="id" type="xs:int"/>
    <xs:element name="name" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    Instance (example, namespaces deleted):
    <Groups>
    <Group>
    <id>23</id>
    <name>group2</name>
    </Group>
    <!-- more Group elements -->
    </Groups>
    Implementing an XSLT transform activity, I faced no problems:
    <xsl:template match="db:MGroupsCollection">
    <sedd:Groups>
    <xsl:for-each select="db:MGroups">
    <sedd:Group>
    <sedd:id>
    <xsl:value-of select="db:id"/>
    </sedd:id>
    <sedd:name>
    <xsl:value-of select="db:name"/>
    </sedd:name>
    </sedd:Group>
    </xsl:for-each>
    </sedd:Groups>
    </xsl:template>
    Now, I thought I can use an assign activity instead of the transform activity above to transform the structure. Here's the code:
    <assign name="AssignSelectedGroups">
    <copy>
    <from variable="InvokeSelectGroups_SelectGroupsAdapterSelect_OutputVariable"
    part="MGroupsCollection"
    query="/ns3:MGroupsCollection"/>
    <to variable="Groups" query="/client:Groups"/>
    </copy>
    </assign>
    Using this assign activity (see above) the BPEL process runs without errors too. But the process produced the following structure (namespaces deleted):
    <Groups>
    <MGroups>
    <id>23</id>
    <name>group2</name>
    </MGroups>
    <!-- more MGroups -->
    </Groups>
    My questions is: As you can see in the schema definition of "Groups" (see above) this element contains one or more "Group" elements, but not one or "MGroups" elements. But "MGroups" are copied into "Groups" using the assign activity which is not valid according to the schema definition. Nevertheless, my BPEL process does not throw an exception.
    Can somebody explain this issue?
    Thanks in advance!
    Lars Geldner

    http://download.oracle.com/docs/cd/B31017_01/integrate.1013/b28981/manipdoc.htm#CIHBBFEC
    3.14 Validating XML Data with bpelx:validate
    Does that one work for you ?
    Yes it's possible to reconstruct your xml by the assing options. If you create the assign activity you will see besides the copy also options like insert-before insert-after append etc
    With those you can construct your own variable like the way you want it..resort elements etc

Maybe you are looking for

  • Unable to clear the cache content

    Hi messages are stuck in queue, so i went smq1 & smq2 and clear the queue. again i processed it while putting the file in ftp. In sxi_cache i went and seen it is showing - Unable to clear the cache content. traffic light is in red mode. I know that i

  • Filemaker Pro, Word, or Excel on iPad?

    Is it possible to run Filemaker Pro, Word, or Excel on an iPad?

  • How to retrieve jxta configurator information?

    anyone knows how to retrieve the userid that is registered using the jxta configurator? i was able to locate the file where the userid is stored,but its encrypted.i need to retrieve this piece of information for authentication purposes

  • DBMS_SQLTUNE.ALTER_SQL_PROFILE

    Hi, I'm trying to alter an SQL Profile to use force matching. But am getting an error saying the attribute name is not valid. BEGIN DBMS_SQLTUNE.ALTER_SQL_PROFILE( name => 'SYS_SQLPROF_0149d3932ac34000', attribute_name => 'FORCE_MATCH', value => 'TRU

  • SAP Solution Manager : Incident Management Configuration

    Hi All, Can you please help me out in Incident Management Configuration in Solution Manager? Please give me the process flow in the incident management in SolMan. Regards, Shyjith.K