ZIP-File- XML-Files- XSLT- IDOC(invoice)

Hi ,
I am doing file to idoc scenario on BC. I am getting the mail with an attachment file in zip format. It must be extract  to XML files and after that each of this files must be transformed via xslt to idoc to R3. Please help with  solution!!!
Thanks in advance
Regards
Olga

In your file adapter, use the following modules in module processor chain:
1. PayloadSwapBean module to get the attachment as main payload;
2. PayloadZipBean module to extract the XML from zip file;
next steps should be standard steps for file-to-IDOC scenarios.
Check the wiki for help with those modules:
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/xi_adapter_notes&
Regards,
Henrique.

Similar Messages

  • K1 tab won't apply update.zip/update.xml files.

    I recently purchased a US K1 tab.  It came pre-loaded with k1-a301-02-03-110810-us.  I was experiencing a few minor issues so I came to this forum and found the officially released OTA images at http://download.lenovo.com/slates/k1/OTA  and the instructions for how to apply them.
    I began applying the updates in order of release.  OTA patches 110829 and 111017 flashed as expected.  However now when I try to apply the next update, 111025, upon pressing the power and volume+ buttons the system starts with 111017 and removes the files from the \download folder.  I have tried applying this three times.  Has the procedure changed beginning with the 111017 release?  What am I doing wrong?
    The tab works fine with 111017 and has resolved many of my issues, so it's not a huge problem... I would just prefer to be running the latest officially released software.
    Thanks in advance for any help.

    Why not just grab the latest through OTA? Its automatic.
    Thanks,
    Ricochet
    The K1_Was Just A Broken Promise Lenovo

  • RFC to File - XML file output

    Hi,
    We are doing a RFC to file scenario where our o/p file is in XML format.
    The required o/p file format is :
    <?xml version="1.0" ?>
    <MAT_GROUP xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <HEADER>
      <MINISTRY_CODE>TOT</MINISTRY_CODE>
      <DEPARTMENT_CODE>000</DEPARTMENT_CODE>
      </HEADER>
    <DETAILS>
       <MATERIAL_GROUP>
         <CODE>THIRDPRTY</CODE>
        <END_DATE xsi:nil="true" />
      </MATERIAL_GROUP>
      </DETAILS>
    </MAT_GROUP>
    But i am using a graphical mapping which gives me the following o/p
    <?xml version="1.0" encoding="utf-8" ?>
    <xsi:MAT_GROUP xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <HEADER>
      <MINISTRY_CODE>TOT</MINISTRY_CODE>
      <DEPARTMENT_CODE>000</DEPARTMENT_CODE>
      </HEADER>
    <DETAILS>
    <MATERIAL_GROUP>
         <CODE>THIRDPRTY</CODE>
        <END_DATE>0000-00-00</END_DATE>
      </MATERIAL_GROUP>
      </DETAILS>
    </MAT_GROUP>
    can u let me know how to remove xsi which is before MAT_GROUP and how to changed the END_DATE with xsi:nil="true"
    I tried to do XSLT mapping using ALTOVA by following the steps given in the link [url]http://wiki.sdn.sap.com/wiki/display/XI/FileTOFile-UsingXSLTmapping(forBeginners) but when i copy the XSD code from DT and save it as XML/XSD file and trying to Insert it into ALTOVA Mapforce it is not able to create the schema and shows the following error:
    An error has occurred when generating an XML schema for the file C:\Documents and Settings\ISSUSER\Desktop\Gebiz\xml code\header_rcv1.xml.
    Nothing to generate. Maybe all root elements are in known namespaces (e.g. 'http://www.w3.org/2001/XMLSchema').
    Can anyone guide me...
    Thanks.

    can we use multiple types of mapping at the same time?
    Keep the JAVA mapping as the last one in the Interface Mapping.....and yes you can use multiple mapings (types of mappngs) in the same Interface Mapping.
    If you remove the namespace from Message Type then too you will see xml encoding tag in the output.....to remove this xml encoding you have to use the JAVA mapping.
    b'cos we also want to remove xsi in the o/p file
    You want to remove only xsi?
    Regards,
    Abhishek.
    Edited by: abhishek salvi on May 27, 2010 4:57 PM

  • Help Me! I want save CLOB to OS file (XML file)

    file size about 10 Mb
    i want example PL/SQL procedure Save CLOB to OS file.
    Thank you.

    See here
    Re: How to export the blob column data to a OS text file

  • Add XML Tag to XML File (Idoc to XML File)

    Hi there.
    Just a question regarding the addition of a tag header in an XML file please?
    Idoc - > XI -> file (XML File)
    We have a need to add something like this below in bold to XML Tag Header in the inbound file:
    <?xml version="1.0" encoding="UTF-8"?>
    <?POSTEN SND="SE03220037090" SNDKVAL="1" REC="SE03220669500"
    MSGTYPE="ORDERS"?>
    Any ideas on how this can be managed would be apreciated please?
    Thank you.
    Mick.

    Hi Carlos.
    Thanks for your reply. I like what you are suggesting, however, I have no knowledge of Java and how to implement this Java addition to the mapping interface.
    I would appreciate any hints you may have. The value that I am trying to add to the tag header is exactly as it is below(the value in bold) and it can in fact be fixed, i.e. I am not looking to dynamically determine the values in the additional tag but just add the value as it is below...
    <?xml version="1.0" encoding="UTF-8"?>
    <?POSTEN SND="SE03220037090" SNDKVAL="1" REC="SE03220669500"
    MSGTYPE="ORDERS"?>
    I would appreciate any input from you on that.
    Thanks in advance Carlos.
    Mick.

  • Can I validate an XML file using an external DTD

    Hi,
    I'm trying to use an external DTD to validate an XML
    file (which does not refer to this DTD). The java docs that ship
    with the XML parser aren't clear on how exactly to do this (or
    whether it can be done). I'd appreciate any advice on how I
    should perform this operation.
    Here's what I'm doing right now.
    1) The Java file
    import oracle.xml.parser.v2.*;
    public class ParseWithExternalDTD
    public static void main(String args[]) throws Exception
    DOMParser dp=new DOMParser();
    dp.parseDTD
    ("file:d:/jdk1.2/sample/test/family.DTD","family");
    DTD dtd=dp.getDoctype();
    dp.setDoctype(dtd);
    dp.parse("file:d:/jdk1.2/sample/test/family.xml");
    System.out.println("Finished with no errors!");
    2) The family.DTD file
    <!ELEMENT family (member*)>
    <!ATTLIST family lastname CDATA #REQUIRED>
    <!ELEMENT member (#PCDATA)>
    <!ATTLIST member memberid ID #REQUIRED>
    <!ATTLIST member dad IDREF #IMPLIED>
    <!ATTLIST member mom IDREF #IMPLIED>
    3) The family.xml file
    <?xml version="1.0" standalone="no"?>
    <family lastname="Smith">
    <TagToFoilParserValidation>
    </TagToFoilParserValidation>
    <member memberid="m1">Sarah</member>
    <member memberid="m2">Bob</member>
    <member memberid="m3" mom="m1" dad="m2">Joanne</member>
    <member memberid="m4" mom="m1" dad="m2">Jim</member>
    </family>
    4) The output
    Finished with no errors!
    As you can see, the DOMParser failed to validate the family.xml
    file against the family dtd otherwise, it would have reported a
    validation error when it came across the
    TagToFoilParserValidation.
    Any insight as to what I'm doing wrong would be much appreciated.
    Sincerely,
    Keki
    Project Iona
    Manufacturing Applications
    Oracle Corporation
    The views and opinions expressed here are
    my own and do not reflect the views and
    opinions of Oracle Corporation
    null

    Keki Burjorjee (Oracle) (guest) wrote:
    : 2 further questions related to this issue.
    : 1) Say I am using XSLT to transform A.xml into B.xml, and I
    : want to embed a reference to B.dtd within the B.xml file. Is
    : there an XSLT command which will allow me to do this?
    : 2) Is it possible for your team to give me a mechanism whereby
    I
    : can preset the xml parser to validate the next xml file (or
    : inputstream) it receives against a particular DTD? This scheme
    : does not require the dtd to be present within the XML file
    : Thanks,
    : - Keki
    : Oracle XML Team wrote:
    : : What you are doing wrong is not including a reference to the
    : : applicable DTD in your XML document. Without it there is no
    : way
    : : that the parser knows what to validate against. Including
    the
    : : reference is the XML standard way of specifying an external
    : : DTD. Otherwise you need to embed the DTD in your XML
    Document.
    : : Oracle XML Team
    : : http://technet.oracle.com
    : : Oracle Technology Network
    : : Keki Burjorjee (guest) wrote:
    : : : Hi,
    : : : I'm trying to use an external DTD to validate an XML
    : : : file (which does not refer to this DTD). The java docs that
    : : ship
    : : : with the XML parser aren't clear on how exactly to do this
    : (or
    : : : whether it can be done). I'd appreciate any advice on how I
    : : : should perform this operation.
    : : : Here's what I'm doing right now.
    : : : 1) The Java file
    : : : import oracle.xml.parser.v2.*;
    : : : public class ParseWithExternalDTD
    : : : public static void main(String args[]) throws Exception
    : : : DOMParser dp=new DOMParser();
    : : : dp.parseDTD
    : : : ("file:d:/jdk1.2/sample/test/family.DTD","family");
    : : : DTD dtd=dp.getDoctype();
    : : : dp.setDoctype(dtd);
    : : : dp.parse("file:d:/jdk1.2/sample/test/family.xml");
    : : : System.out.println("Finished with no errors!");
    : : : 2) The family.DTD file
    : : : <!ELEMENT family (member*)>
    : : : <!ATTLIST family lastname CDATA #REQUIRED>
    : : : <!ELEMENT member (#PCDATA)>
    : : : <!ATTLIST member memberid ID #REQUIRED>
    : : : <!ATTLIST member dad IDREF #IMPLIED>
    : : : <!ATTLIST member mom IDREF #IMPLIED>
    : : : 3) The family.xml file
    : : : <?xml version="1.0" standalone="no"?>
    : : : <family lastname="Smith">
    : : : <TagToFoilParserValidation>
    : : : </TagToFoilParserValidation>
    : : : <member memberid="m1">Sarah</member>
    : : : <member memberid="m2">Bob</member>
    : : : <member memberid="m3" mom="m1" dad="m2">Joanne</member>
    : : : <member memberid="m4" mom="m1" dad="m2">Jim</member>
    : : : </family>
    : : : 4) The output
    : : : Finished with no errors!
    : : : As you can see, the DOMParser failed to validate the
    : : family.xml
    : : : file against the family dtd otherwise, it would have
    : reported
    : : a
    : : : validation error when it came across the
    : : : TagToFoilParserValidation.
    : : : Any insight as to what I'm doing wrong would be much
    : : appreciated.
    : : : Sincerely,
    : : : Keki
    : : : Project Iona
    : : : Manufacturing Applications
    : : : Oracle Corporation
    : : : The views and opinions expressed here are
    : : : my own and do not reflect the views and
    : : : opinions of Oracle Corporation
    1) No XSLT commands exist that allow you to embed a DTD while
    doing the transformation.
    2) You can use the setDocType() method in the parser, to set a
    DTD based on which the XML document will be validated. The
    parseDTD() method allows you to parse a DTD file separately and
    get a DTD object. Here is a sample code :
    DOMParser domparser = new DOMParser();
    domparser.setValidationMode(true);
    // parse the DTD file
    domparser.parseDTD(new FileReader(dtdfile));
    DTD dtd = domparser.getDocType();
    // Parse XML file - XML file will be validated based on the DTD.
    domparser.setDocType(dtd);
    domparser.parse(new FileReader(xmlfile));
    Document doc = domparser.getDocument();
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    null

  • XML file manipulation question

    I have to generate a big xml file from oracle relational tables, write the output to server and then load it back into a LOB field in the database.
    1) I am on Oracle version 11.2.0.3
    2) I am able to write the file to a server directory
    Is it possible to zip the xml file using oracle preprocessor , read it and then load it back into the database on demand?
    Thanks
    Kev

    Why not just store the XML in an XMLTYPE column in the DB. As you are on 11.2.0.3, you will be using the default storage format of SECUREFILE BINARY XML and that provides a compressed form of the XML that is easier for future parsing efforts. I can't speak how it would compare to a .zip version of the XML.
    Without knowing more why you think LOBs need to be involved, I would avoid them completely since they are not setup for efficient XML storage/usage and the XMLType datatype is.
    As for the .zip abilities, some good reference point (that started from)
    [url http://odieweblog.wordpress.com/2012/01/28/xml-db-events-reading-an-open-office-xml-document-xlsx/]XML DB Events : Reading an Open Office XML document (.xlsx)
    and eventually leads you to
    [url http://technology.amis.nl/2010/03/13/utl_compress-gzip-and-zlib/]Utl_compress, gzip and zlib
    [url http://technology.amis.nl/2010/06/09/parsing-a-microsoft-word-docx-and-unzip-zipfiles-with-plsql/]Parsing a Microsoft Word docx, and unzip zipfiles, with PL/SQL

  • Begging for help with podcast xml file

    Hey All,
    I have a podcast on iTunes.  I am hosting the xml file and podcast mp3s on a friends server so Im not using any service.  Everything is working and Ive sucessfully added 4 podcasts so far, and it shows up correctly in iTunes on my PC.
    However my podcasts do not showup correct in the iTunes store website, or on idevices.  Meaning, I number my shows 001_"NAME" 002_"NAME" etc.  Yet in the iTunes store they show up out of order.  So my last show is not at the top its at the bottom, and they are all mixed up (like 002, 001, 004, 003 instead of  4,3,2,1)  Also the publish date is the same on two of them (and not what i have in the xml file) and doesnt show up at all on the other two.  I assume this is a problem with the xml file, yet I dont see any problems with it.  But it seems odd that it all works correctly in the actual iTunes program.  Ive tried different code, but im very much a noob at it, and everything i find online is from 5 - 10 years ago or wants you to host your podcasts with their site and I dont need that. 
    Here is the link to the show on the iTunes website so you can see what i mean:  http://itunes.apple.com/us/podcast/your-reality-recap/id501295325
    If anybody can, would you mind checking out the code in my xml file and letting me know if you see anything thats causing this issue?
    I zipped the xml file and put it here:  http://www.ericcurto.com/podcast/YRR.zip
    I would be truly greatfuly for any help with this.  Ive been trying to fix this for days and dont know what else to do. 
    Thanks!
    Eric

    Your feed is at http://www.ericcurto.com/podcast/YourRealityRecap.xml (please always post the feed URL, not its contents or a copy).
    I don't see the issues you mention. The order in the Store and when subscribing is what I would expect:
    The order in the Store depends on clicking the header to the column: the default is the first one. Some of the dates are a day out - this is quite commmon and is probably a time zone issue (it may be different where you are - I'm in the UK). I don't know why you are seeing a garbled order unless you've clicked on one of the other columns in the Store.

  • If condition in XML file

    We are facing an issue while loading data from Data Collection report to rowsource. Actually we are loading data through one loader file which is .XML file. This loader file has mapping of Data Collection Report columns with rowsource columns. The Data Collection Report has following kind of scenario…
    col1     col2     Measures     Jan     Feb     March
              Measure1     23     23     45
              Measure2     45     678     34
    So as per above chart we have two measures: Measure1 and Measure2 having different kinds of data. Now we have to load data of two measures to the same column of the rowsource depending on the value of the 1st row (Jan, Feb, Etc)
    Can we add if condition in loader file(.XML file) to check data of the 1st row as follows?
    The loader file has the following kind of structure in .XML format…
    <?xml version="1.0" encoding="UTF-8"?>
    <load-specification xmlns="http://schemas.interlacesystems.com/2.0/load-specification"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://schemas.interlacesystems.com/2.0/load-specification loadspec-2.0.xsd">
    <ms-excel-file sheet="Forecast Data Input" start-row="10" row-increment="6" skip-hidden- rows="false">
    <pivot column="G" name="Measure1" relative-row="0" columns="K:V" type="double"/>
    <pivot column="H" name="Measure2" relative-row="1" columns="K:V" type="double"/>
    </ms-excel-file>
    <load-rowsource rowsource="SalesForecast">
    <simple-filter field="${revenue}:${panprevenue}" relop="NE" value=":" nolog="true"/>
    If(data=”Jan”)
         <map column="revenue" value="${Measure1}"/>
    else
         <map column="PANPRevenue" value="${Measure2}"/>
    </load-rowsource>
    </load-specification>
    So could you please suggest us any solution on this or anyone has worked on similar issue?

    I would suggest change in the xml specification as follows -
    I am considering that there must be a column mapped to month (Jan, Feb,..)
    <load-rowsource rowsource="SalesForecast">
    <simple-filter field="${month}" relop="EQ" value="Jan" nolog="true"/>
    <map column="revenue" value="${Measure1}"/>
    </load-rowsource>
    </load-specification>
    <load-rowsource rowsource="SalesForecast">
    <simple-filter field="${month}" relop="NE" value="Jan" nolog="true"/>
    <map column="PANPRevenue" value="${Measure2}"/>
    </load-rowsource>
    </load-specification>
    Please confirm.

  • Reading XML file having various foreign languages from web application.

    Greeting..
    I'm dealing with a so-called serious problem where-in:
    I've to read one of the configuration files(XML files) having values in different foreign languages (like Chinese, Japanese, Arabic etc). I've to read that file contents, in as it is form, in such a way that user can read / change the data from the web application.
    I'm showing the XML file inside the TextArea (the HTML <textarea> tag. While reading this file, it got converted to junk values instead of actual ones. While saving this file it changes those original values to junk in file as well.
    I'm using SAX parser with DefaultHandler.
    Better suggestions are welcome.
    Thanks in advance
    Regards

    rikslovein wrote:
    Better suggestions are welcome.You have a number of places where data corruption could occur. You have not yet identified where it occurs. When you know where it occurs it would be much easier to determine a solution.
    Do NOT display the characters to determine the problem. Instead take a small sample and print the numeric values. And do that at each stage/layer until they do not match.

  • XML File in External Table - OS error permission denied.

    Hi.
    10g R2, Red Hat Linux
    I'm using the article (see below, taken from http://www.dbazine.com/olc/olc-articles/scardina1 by Mark Scardina) to create an external table where I'd store my XML file.
    So, I
    1. Created a directory xmlfile_dir
    2. Granted access to needed db user
    3. Created the table
    CREATE TABLE relayxml_xt (doc CLOB)
    ORGANIZATION EXTERNAL
    TYPE ORACLE_LOADER
    DEFAULT DIRECTORY xmlfile_dir
    ACCESS PARAMETERS
    FIELDS (lobfn CHAR TERMINATED BY ',')
    COLUMN TRANSFORMS (doc FROM lobfile (lobfn))
    LOCATION ('xml.dat')
    REJECT LIMIT UNLIMITED;
    4. mv relay.xml /xmlfile_dir/xml.dat
    When I run SELECT * FROM relayxml_xt I get this:
    Error starting at line 1 in command:
    select * from relayxml_xt
    Error report:
    SQL Error: ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04063: unable to open log file RELAYXML_XT_28773.log
    OS error Permission denied
    ORA-06512: at "SYS.ORACLE_LOADER", line 19
    29913. 00000 - "error in executing %s callout"
    *Cause:    The execution of the specified callout caused an error.
    *Action:   Examine the error messages take appropriate action.
    What am I doing wrong?
    Thanks,
    Using External Tables
    Introduced in Oracle9i, Oracle’s external table feature offers a solution to define a table in the database while leaving the data stored outside of the database. Prior to Oracle Database 10g, external tables can be used only as read-only tables. In other words, if you create an external table for XML files, these files can be queries and the table can be joined with other tables. However, no DML operations, such as INSERT, UPDATE, and DELETE, are allowed on the external tables.
    Note: In Oracle Database 10g , by using the ORACLE_DATAPUMP driver instead of the default ORACLE_DRIVER, you can write to external tables. In Oracle Database 10g, you can define VARCHAR2 and CLOB columns in external tables to store XML documents. The following example shows how you can create an external table with a CLOB column to store the XML documents. First, you need to create a DIRECTORY to read the data files:
    CREATE DIRECTORY data_file_dir AS 'D:\xmlbook\Examples\Chapter9\src\xml';
    GRANT READ, WRITE ON DIRECTORY data_file_dir TO demo;
    Then, you can use this DIRECTORY to define an external table:
    CREATE TABLE customer_xt (doc CLOB)
    ORGANIZATION EXTERNAL
    TYPE ORACLE_LOADER
    DEFAULT DIRECTORY data_file_dir
    ACCESS PARAMETERS
    FIELDS (lobfn CHAR TERMINATED BY ',')
    COLUMN TRANSFORMS (doc FROM lobfile (lobfn))
    LOCATION ('xml.dat')
    REJECT LIMIT UNLIMITED;
    The xml.dat file follows:
    customer1.xml
    customer2.xml
    If you describe the table, you can see the following definition:
    SQL> DESC customer_xt;
    Name Null? Type
    DOC CLOB
    Then, you can query the XML document as follows:
    SELECT XMLType(doc).extract('/Customer/EMAIL')
    FROM customer_xt;
    Though the query requires run-time XMLType creation and XPath evaluation, this approach is useful when applications just need a few queries on the XML data and don’t want to upload the XML data into database. In Oracle Database 10g, you cannot create external tables that contain pre-defined XMLType column types.
    Message was edited by:
    vi2167

    Your don't have the proper operating system privileges. Be sure that you (=oracle OS user / the OS Linux user that is starting the database) are allowed have read privs on the path and/or file.
    for example...
    chown -Rf /xxxxxxx/xxxx/etc
    ls -l file.xml
    file.xml    oracle:oinstall    rw-rw-rw

  • Wrong path changes in Itunes XML file

    hi there,
    My Itunes library (9.0.2) is stored locally on my macbook, although actual files are on a network attached storage that I access through AFP. This share is mounted automatically when the mac starts. Everything was working perfectly fine until a few days ago (no major change to the library or mac), when my iphone synchonization started to report impossible to read on the device files.
    After a few more investigations, I pinpointed some of the missing files, which were not missing but were replaced by other files (absolutely not linked to my media files).
    the <key>Location</key> in the xml file was, for example
    <key>Location</key><string>file://localhost/Volumes/David/docs/Me%CC%81dias/src/elodie2.jpg</string>
    where it should have been something like
    <key>Location</key><string>file://localhost/Volumes/David/media/music/albums/Damien%20Rice/9/09%20-%20Accid ental%20Babies.mp3</string>
    Does anyone have a clue about what went wrong and how to circumvent this in the future ?
    Thanks in advance

    Oliver:
    The simple answer is yes. Any changes you make to your RSS feed file (xml file) will eventually be updated by ITMS. Usually ITMS updates feed changes within 24 hours. However, the most recent changes I made in my feed files took almost 8 days before ITMS refreshed my listing.
    One issue is clear. If you make changes to your image file, there is a high probability that when ITMS updates your database record, your listing in ITMS will show the broken link image for awhile. I've changed my image file twice, and each time, my ITMS listing showed the broken link image. Eventually the new image shows up, but it does take a long time for this day and age.
    Good luck!

  • Parsing a XML file using Jdom-Problem.

    Hi all,
    I am reposting it as I was told to format the code and send it again.
    I am trying to parse a xml file using a jdom java code.This code works fine if I remove xmlns attribute in the root element. (I get the expected result) .If the "xmlns" attribute is put in the xml as it should be then the parsing and retrieving returns null. Please tell me how to fix this issue.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Xml
    <process name="CreateKBEntryService" targetNamespace="http://serena.com/CreateKBEntryService" suppressJoinFailure="yes" xmlns:tns="http://serena.com/CreateKBEntryService" xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:bpelx="http://schemas.oracle.com/bpel/extension" xmlns:ora="http://schemas.oracle.com/xpath/extension" xmlns:nsxml0="http://localhost:8080/axis/services/CreateKBEntryService" xmlns:nsxml1="http://DefaultNamespace" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
    <partnerLinks>
    <partnerLink name="client" partnerLinkType="tns:CreateKBEntryService" myRole="CreateKBEntryServiceProvider"/>
    <partnerLink name="CreateKBEntryPartnerLink" partnerLinkType="nsxml0:CreateKBEntryLink" partnerRole="CreateKBEntryProvider"/>
    </partnerLinks>
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`
    Java:
    import java.io.*;
    import java.util.*;
    import org.jdom.Document;
    import org.jdom.Element;
    import org.jdom.input.SAXBuilder;
    public class sample1 {
    public static void main(String[] args) throws Exception {
    // create a XML parser and read the XML file
    SAXBuilder oBuilder = new SAXBuilder();
    Document oDoc = oBuilder.build(new File("**xml file location**"));
    Element root = oDoc.getRootElement();
    System.out.println(root.getName());
    String tgtns= root.getAttributeValue("targetNamespace");
    System.out.println("tgt ns "+ tgtns);
    List list= root.getChildren("partnerLinks");
    Iterator it1= list.iterator();
    System.out.println("Iterator 1 - "+list.size());
    while(it1.hasNext()){
    Element partnerlinks = (Element)it1.next();
    List list2= partnerlinks.getChildren("partnerLink");
    System.out.println("iterator 2 - "+list2.size());
    }~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Result:
    Without Xmlns in xml file(Expected and correct output)
    process
    tgt ns http://serena.com/CreateKBEntryService
    Iterator 1 - 1//expected and correct result that comes when I remove xmlns attribute from xml
    iterator 2 - 2
    Result with xmlns:
    process
    tgt ns http://serena.com/CreateKBEntryService
    Iterator 1 - 0 //instead of 0 should return 1

    LOL
    This is what you get for working 12 hours straight....
    I changed:
    xmlObject["mydoc"]["modelglue"]["event-handlers"]["event-handler"][i].xmlAttrib utes["name"]<br>
    to:
    #mydoc["modelglue"]["event-handlers"]["event-handler"][i].xmlAttrib utes["name"]#<br>
    xmlObject is the name of my xml object in memory, and then you reference from the root of the xml doc down the chain.
    Sorry for the inconvenience,
    Rich

  • SQL Error : missing expression - Creating XML file with ODI

    Hi,
    I saw threads about errors like this and read that maybe it can come from how I chose the staging area. I still can't see where the problem is. I'm trying to create an xml file from data stored in a Oracle database. The interface which execution fails select data from tables and create a tag in the XML file. Here are information about it :
    The staging area is diferent from the target and is an oracle database schema. (I guess it creates temporary tables in that schema ?)
    In the flow tab, the LKM is LKM SQL to SQL, the option delete temporary objects is set to yes.
    The IKM choice for the target is IKM SQL Control Append and options are as following :
    - insert : yes
    - commit : yes
    - flow contreol : no
    - recycle errors : no
    - static control : no
    - truncate : no
    - delete all : no
    - create target table : yes
    - delete temporary objects : yes
    Columns mapping in the target are the following :
    WKID        >     THEADER.WKID
    EXTID        >     THEADER.EXTID
    ORDER     >     THEADER.ORDER
    INSTFK     >     THEADER.INSTFK
    For every column in the target :
    - Run on source
    - Updating : insert, update and ud4 are checked
    no update key is defined
    In the operator, the step failing when running the interface is the loading data in the work table.
    If you need the SQL request in the execution plan, or anything else, please tell me.
    Thank you in advance for any help on this.
    Marie

    It would help if you provide error message and its stack trace.
    Please also look at the documentation (If not already done so) for creating xml file XML Files - 11g Release 1 (11.1.1)

  • Parse XML files

    Hi
    Anyone know about support for parsing XML files in LabVIEW?
    (I mean specific XML support, I'm familiar with LabVIEWs file functions)
    regards
    Jan
    Sent via Deja.com http://www.deja.com/
    Before you buy.

    I assume you are referring to:
    http://www.savarese.org/oro/software/OROMatcher1.1.html
    Have you considered asking Savarese?
    Peace,
    Cameron Purdy
    Tangosol, Inc.
    http://www.tangosol.com
    +1.617.623.5782
    WebLogic Consulting Available
    "Laurent Mentek" <[email protected]> wrote in message
    news:[email protected]..
    Hi all,
    I'm started to develop with BEA WebLogic and I use ORACLE 8.1.6
    database.
    We need to map some XML tags as metadata in the database.
    Here is a concrete example with part of our XML files:
    XML files :
    <target>EDU</target>
    <question>
    <para>
    Please could you provide some references on nutritional status in
    the frail elderly?
    </para>
    </question>
    I use OROMatcher to parse xml files and it work fine.
    I can extract every element in line with success , but don't extract the
    value in <para> tag, for example.
    I don't no how to use the MULTILINE_MASK option and the ^ or $ to get
    this line.
    Anyone could give me an example of metadatas extaction using or no the
    MULTILINE_MASK option?
    Thanks a lot for your help.
    Laurent.

Maybe you are looking for

  • How do i syncronise two macs on the same network

    I currently have a macbook pro, and that is now going to be my home office computer. I am about to buy a macbook air as my travel laptop. I will need them to have the same information on how do I keep them syncronised when I update information on one

  • How to customize attribute in root element?

    I'm using TSQL to generate an XML file from a SELECT query.  I'm 99% of the way to creating the precise format the client requires.  Here's the top portion of what I currently have: <Feed> <Interaction> <TransactionDate>2012-01-17T19:18:26.703</Trans

  • Posting overhead expenses in country specific Non leading ledger only

    Overhead expenses pertaining to the consturction of Fixed assets need to be be capitalised as per Indian Accounting standards. But at the same time according to IFRS standards the Overhead capitalisation is not acceptable. I want to know whether ther

  • When writing e-mails firefox crashes after you go the format section

    When writing e-mails firefox crashes. I can put in the address and subject and then go to he body of the e-mail and put a name it crashes. Ican restart firefox but can't send the e-mail.

  • Deleting song duplicates

    For some reason, each time I connect my iPod, some of my songs double, triple, quadruple etc. Is there a way to delete them without doing it one at a time through over 4,000 songs?