Xml file handling

I’m working on File to file scenario.
My source file is xml file.
What sort of prerequisites I need to do before processing this file.
I maintained the source file structure similar to xml file structure, do I need to maintain same attributes/tag names of source file in source format?

Hi Michal,
I think i'm not properly expressed my doubt.
<u>My source file is:</u>
<ABC xmlns = "http" xmlns:xsi="http" xsi:scemaloc ="https"
<Docheader>
<Docdetail> 1..n
<docsummery>
</ABC>
I created the source format as follows:
<Recordset>
<Docheader>
<Docdetail>1..n
<Docsummery>
</recordset>
<u>Problem:</u>
Problem is when i map these source file to target flat file.the source fileds are suppressing.
bcz of this i'm getting error message
"Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd"
Thanks,
venu

Similar Messages

  • Bug in Flash Professional CC when launching debug launcher xml file handle not released

    There appears to be a bug in either Adobe Flash Professional CC, or ADL when launching debug launcher for an AIR application Flash Professional CC automatically generates or updates the XML app descriptor file. The bug is that Flash Professional is not immedately releasing the file handle to the app descriptor XML file.
    This bug was introduced in Flash Professional CC (Windows). It did not occur in CS5.5 or CS5.
    The question is whether this is a bug related to the ADL, or if this bug is related specifically to Flash Professional CC (Windows).
    Either way, where and how do I appropriately report this bug?

    Hi Dharmendra,
    Thank you for the solution. It is not what I expected, but it might look like a solution that "could" be applied.
    There is still one problem with this approach. If I still use a movie with radial gradient within the bitmap, the same exact problem could occur again.
    I was trying to understand if I did something wrong in my code, or it was a bug in the Flash software. I still find weird that I get different results by drawing a movie clip at different positions on a bitmap object. How can the drawing position change if the movie clip is drawn or not drawn? Why does it make mathematical patterns? I guess it has something to do with the precision numbers.
    Meanwhile, I did a few extra tests. I tried a new approach with Blur and Glow effects. That is not exactly what I want, but it seems to create a transparent gradient. I might consider this approach if the basic radial gradient does not work. I also created a gradient transparency circle bitmap in Photoshop that I imported into my movie clip. It worked. So, at the moment I have two solutions that seem to be working.
    I would appreciate if you could investigate the original problem. It looks like there is a problem in the rendering of Flash. Workarounds are fine sometimes, but I do not expect to developer programs on workarounds.

  • Understanding XML file handling in ODI

    Hi People,
    I've just completed a simple Interface to upload an XML file into an Oracle 10g database table. The interface copes well with both inserts and updates, so I'm very pleased about that. ;)
    This exercise has raised some questions though. I tried an experiment, which involved changing an element value in the XML file. I wanted to see if this change would be reflected in the file's associated Source Table in ODI. Unfortunately, it wasn't; despite me clicking the REFRESH button about 4 times. I guess my first question is:
    *1. How can I ensure a change to an element value in the XML file is reflected in ODI, after reverse engineering the associated data store from the file? Is this possible?*
    Moving on, I'm trying to understand the architecture ODI creates in the background, in order to support a source datasource/table that represents the XML file. I have created the following Topology to support the file:
    !http://img2.imageshack.us/img2/6895/odiscr375.jpg!
    As you can see, I've associated the XML file with a physical schema called ODI_XML. This represents a schema owned by my Oracle Database.
    Now, when I check the XML file data in ODI Designer, I notice that it's based on this query:
    select * from ODI_XML.TRADE
    I've checked the ODI_XML database schema, and there is neither a table nor any other objects named TRADE. My next question is therefore:
    *2. Was I correct to assign a database schema (named ODI_XML) to my XML Data Server, or should this have been something else? If so, what?*
    Thanks in advance for any assistance.
    James

    Since you are using the Variable ,when you right click and view datastore its missing the required path of the file, as value of the variable is not determined , to do so you need to either refresh or set the variable and call the interface or other ODI objects and in loop keep reading XML files one by one and that should work.

  • Applet xml file handling

    Long time application coder, first time appplet coder:
    I have an xml file that needs to be read by my applet (it contains a database).
    I'm trying to use this:
    URL url = new URL("http://(the file on my webpage)");
    XMLDecoder decoder = new XMLDecoder(new BufferedInputStream(url.openStream()));Which gives me the error:
    java.security.AccessControlException: access denied (java.net SocketPermission ...)
    Anyone have an idea what I'm doing wrong? I've tried several different things which don't seem to work.

    This is due to the security feature of Java. In order to solve your problem, you need to sign your Java Applet, or setup the security policy by the policytool in the client side.
    For more information, please read:
    http://java.sun.com/docs/books/tutorial/deployment/applet/security_practical.html

  • Error handling in parsing XML files.

    Hi.
    Is it possible to handle the error generated by DocumentBuilder elsewhere, as it parses down an XML file? In my test-program, I am parsing (using SAX) an XML file, and testing whether it is valid under a certain schema. If it is valid, I would then generate a console-output tree of the XML file. Otherwise, it would just display the error messages (wherever they are in the XML file).
    This is what I have.
    import java.io.IOException;
    import javax.xml.parsers.*;
    import org.w3c.dom.*;
    import org.xml.sax.SAXException;
    import java.util.*;
    public class XMLTester {
        private Document document;
        private boolean state = true;
        public XMLTester() { }
        public static final void main(String[] args) {
            if ( args.length != 1 ) {
                System.out.println("Usage: java XmlTester myFile.xml");
                System.exit(-1);
            String xmlFile = args[0];
            XMLTester xmltester ;
            xmltester = new XMLTester();  
            xmltester.parseFile(xmlFile);
            if (xmltester.isValidXML() ) {
                 xmltester.printContents());
        public void parseFile(String xmlFile)/* throws ParserConfigurationException,
                            SAXException, IOException */{
        try {
            DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
            factory.setNamespaceAware(true);
            factory.setValidating(true);
            factory.setAttribute(
                      "http://java.sun.com/xml/jaxp/properties/schemaLanguage",
                      "http://www.w3.org/2001/XMLSchema");
               DocumentBuilder builder = factory.newDocumentBuilder();
                document = builder.parse(xmlFile);
        } catch (Exception ex) {
             //ex.printStackTrace();
             state = false;
        public boolean isValidXML() {
             return state;
        //..print-out methods here..
    }Thanks!

    Nevermind.. I figured it out after a few thoughts.

  • Is this a good way for loading and handling an xml file?

    I'm new to xml files, but it seems to me that a good way to handle them may be this:
    - create an xmltype table with a unique xmltype column
    - load the xml file in the xmltype column of the table
    - writing a procedure for scanning the whole column of the table by using the extractvalue built-in function for inserting the different nodes of the xml file (just loaded) in the final tables (to link correctly the father and son tags with foreign keys)
    Does it seem to you a good way to load the nodes of a xml file in a relation database?
    Thanks!

    Is this the 10gR2 Express Edition you mentioned over in How to load a XML file into a table or a different version?

  • I want to load large raw XML file in firefox and parse by DOM. But, for large XML file the firefox very slow some time crashed . Is there any option to increase DOM handling memory in Firefox

    Actually i am using an off-line form to load very large XML file and using firefox to load that form. But, its taking more time to load and some time the browser crashed. through DOM parsing this XML file to my form. Is there any option to increase DOM handler size in firefox

    Thank you for your suggestion. I have a question,
    though. If I use a relational database and try to
    access it for EACH and EVERY click the user makes,
    wouldn't that take much time to populate the page with
    data?
    Isn't XML store more efficient here? Please reply me.You have the choice of reading a small number of records (10 children per element?) from a database, or parsing multiple megabytes. Reading 10 records from a database should take maybe 100 milliseconds (1/10 of a second). I have written a web application that reads several hundred records and returns them with acceptable response time, and I am no expert. To parse an XML file of many megabytes... you have already tried this, so you know how long it takes, right? If you haven't tried it then you should. It's possible to waste a lot of time considering alternatives -- the term is "analysis paralysis". Speculating on how fast something might be doesn't get you very far.

  • How to handler 200MB - 600MB XML file

    I came into a problem to handle very big XML files using DOM or SAX. Is there any method I can build XMLDocument for such big files?

    You cannot use DOM to load such a large file unless you can free up 1 to 3 gigabytes of heap memory. You could write special-purpose programs that used SAX to parse it as long as you were careful not to accumulate data in memory. You may want to seriously consider storing the data in some other format.

  • Handle multiple xml files as input?

    I have a java parser which uses JDOM and translates xml file to a flat file. Currently it handles one file at a time. I want to handle if there are multiple such files. Have anyone of you encountered that?
    Could you please help? Thanks.....

    How about multiple xml files as argument and let your Java class handle them one by one?
    Or probably even better: it should be possible to get all the names of the xml files in a directory and let you class handle those one by one. Like this you don't need the arguments and just process all the xml files in maybe a dedicated directory.
    Kind regards,
    Hans.

  • [svn:osmf:] 17548: Remove left-over event handler, which could trigger an unnecessary event if a player loaded plugins through the config XML file and manually  (e.g.

    Revision: 17548
    Revision: 17548
    Author:   [email protected]
    Date:     2010-09-01 14:09:14 -0700 (Wed, 01 Sep 2010)
    Log Message:
    Remove left-over event handler, which could trigger an unnecessary event if a player loaded plugins through the config XML file and manually (e.g. for static plugins).
    Modified Paths:
        osmf/trunk/libs/samples/ChromeLibrary/org/osmf/chrome/configuration/PluginsParser.as

    Remember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them.  This may or may not be unique to Arch Arm, so you might try asking on their forums as well.

  • Handling large xml files using tree

    hi,
    I have an issue with a tree having xml data as the
    dataprovider. The front end makes a http service call to a servlet
    at a server to get the string representation of an xml file . The
    string format is changed to xml in the flex front end and made to
    display as a tree. Everything works fine when the xml data is small
    but as xml data grows in size the handling of data into the tree is
    very slow and the application does not respond sometimes..Can
    anyone tell me how i could get this issues solved or is there a
    better way to solve it. Or is there a way that the tree gets
    displayed only when all the nodes or loaded properly and there are
    no lags while user tries to navigate through it..
    Thanks in advance...

    Hi,
    Did you get a reply for this? If so,can you pl share it with me too?
    i need to send a XML +also need to set 2 parameters over Http Post to a servlet...
    Thanks,
    -uday.
    [email protected]

  • Best way to handle .properties and .xml files

    Hi,
    I have an application which contains so many properties and XML files, these are a part of WAR file which we deployed in
    tomcat server. Whenever we make changes to these properties and XML files we redeploy the app and start the server.
    Is there any way we can make sure that these files can take changes without redeploying or starting the server?
    Please clarify.
    Thanks.

    Sure - keep them outside of the war. Pick any directory where you can put them (a directory where the server is allowed to read of of course), load them from that directory in your application. Make sure you can reach that directory through (S)FTP to easily be able to modify them. Then all you need is a way to reload them in the application, should the information be cached.

  • Simple Transformation to deserialize an XML file into ABAP data structures?

    I'm attempting to write my first simple transformation to deserialize
    an XML file into ABAP data structures and I have a few questions.
    My simple transformation contains code like the following
    <tt:transform xmlns:tt="http://www.sap.com/transformation-templates"
                  xmlns:pp="http://www.sap.com/abapxml/types/defined" >
    <tt:type name="REPORT" line-type="?">
      <tt:node name="COMPANY_ID" type="C" length="10" />
      <tt:node name="JOB_ID" type="C" length="20" />
      <tt:node name="TYPE_CSV" type="C" length="1" />
      <tt:node name="TYPE_XLS" type="C" length="1" />
      <tt:node name="TYPE_PDF" type="C" length="1" />
      <tt:node name="IS_NEW" type="C" length="1" />
    </tt:type>
    <tt:root name="ROOT2" type="pp:REPORT" />
        <QueryResponse>
        <tt:loop ref="ROOT2" name="line">
          <QueryResponseRow>
            <CompanyID>
              <tt:value ref="$line.COMPANY_ID" />
            </CompanyID>
            <JobID>
              <tt:value ref="$line.JOB_ID" />
            </JobID>
            <ExportTypes>
              <tt:loop>
                <ExportType>
                   I don't know what to do here (see item 3, below)
                </ExportType>
              </tt:loop>
            </ExportTypes>
            <IsNew>
              <tt:value ref="$line.IS_NEW"
              map="val(' ') = xml('false'), val('X') = xml('true')" />
            </IsNew>
          </QueryResponseRow>
          </tt:loop>
        </QueryResponse>
        </tt:loop>
    1. In a DTD, an element can be designated as occurring zero or one
    time, zero or more times, or one or more times. How do I write the
    simple transformation to accommodate these possibilities?
    2. In trying to accommodate the "zero or more times" case, I am trying
    to use the <tt:loop> instruction. It occurs several layers deep in the
    XML hierarchy, but at the top level of the ABAP table. The internal
    table has a structure defined in the ABAP program, not in the data
    dictionary. In the simple transformation, I used <tt:type> and
    <tt:node> to define the structure of the internal table and then
    tried to use <tt:loop ref="ROOT2" name="line"> around the subtree that
    can occur zero or more times. But every variation I try seems to get
    different errors. Can anyone supply a working example of this?
    3. Among the fields in the internal table, I've defined three
    one-character fields named TYPE_CSV, TYPE_XLS, and TYPE_PDF. In the
    XML file, I expect zero to three elements of the form
    <ExportType exporttype='csv' />
    <ExportType exporttype='xls' />
    <ExportType exporttype='pdf' />
    I want to set field TYPE_CSV = 'X' if I find an ExportType element
    with its exporttype attribute set to 'csv'. I want to set field
    TYPE_XLS = 'X' if I find an ExportType element with its exporttype
    attribute set to 'xls'. I want to set field TYPE_PDF = 'X' if I find
    an ExportType element with its exporttype attribute set to 'pdf'. How
    can I do that?
    4. For an element that has a value like
    <ErrorCode>123</ErrorCode>
    in the simple transformation, the sequence
    <ErrorCode>  <tt:value ref="ROOT1.CODE" />  </ErrorCode>
    seems to work just fine.
    I have other situations where the XML reads
    <IsNew value='true' />
    I wanted to write
    <IsNew>
            <tt:value ref="$line.IS_NEW"
            map="val(' ') = xml('false'), val('X') = xml('true')" />
           </IsNew>
    but I'm afraid that the <tt:value> fails to deal with the fact that in
    the XML file the value is being passed as the value of an attribute
    (named "value"), rather than the value of the element itself. How do
    you handle this?

    Try this code below:
    data  l_xml_table2  type table of xml_line with header line.
    W_filename - This is a Path.
      if w_filename(02) = '
        open dataset w_filename for output in binary mode.
        if sy-subrc = 0.
          l_xml_table2[] = l_xml_table[].
          loop at l_xml_table2.
            transfer l_xml_table2 to w_filename.
          endloop.
        endif.
        close dataset w_filename.
      else.
        call method cl_gui_frontend_services=>gui_download
          exporting
            bin_filesize = l_xml_size
            filename     = w_filename
            filetype     = 'BIN'
          changing
            data_tab     = l_xml_table
          exceptions
            others       = 24.
        if sy-subrc <> 0.
          message id sy-msgid type sy-msgty number sy-msgno
                     with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        endif.

  • Creation of a shipping notification for a PO in EBP from a XML file via XI.

    Hi everybody.
    We are trying to create a shipping notification for a Purchase Order in Enterprise Buyer from a XML file via XI.
    For to do it, we are using ‘DespatchedDeliveryNotification_In’ message interface (transaction SPROXY).
    But when we execute it, the system show us next message:
    "An error occured within an XI interface: An exception with the type CX_GDT_CONVERSION occurred, but was neither handled locally, nor declared in a RAISING clause Programm: SAPLBBP_BD_MAPPING_SAPXML1; Include: LBBP_BD_MAPPING_SAPXML1F5B; Line: 4"
    No more information is available.
    Is there any additional transaction to see more information about the error message?
    Is there any documentation about this XML file, mandatory fields, examples…?
    We populated some fields in our XML file, but we do not know if the problem is with mandatory fields, data, program error…
    I will thank for any information
    Thanks in advance.
    Raúl Moncada.

    Raúl,
    This is because of the inbound UOM.
    The include LBBP_BD_MAPPING_SAPXML1F5B is in charge of mapping the item Unit Of Mesure (UOM) sent in the ASN XML file (it should be an ISO code).
    You can test FM UNIT_OF_MEASURE_ISO_TO_SAP with this inbound ISO code.
    PS: you should create an OSS message so the mapping sends back an error message instead of generating an uncatched exception (that generates a dump).
    Rgds
    Christophe
    PS: please reward points for helpfull answers

  • XML file in Processing not moving further

    Dear Expert,
    XML file which is continuously generating after 5 seconds in processing
    B1i Admin Console > Monitor > Message Box  > Processing , I want to stop that and move in success
    In detail I open each XML file is showing me different contain.
    Now, how to break processing mode to success ?
    In Object type i have not set any Filter
    ValueMapping    : no mapping
    Criteria Fields   :no criteria fields
    Key Handling  :4 - Closed System with Return
    Schema:/com.sap.b1i.datasync.repository/ObjectType.xsd/B1.8.8_Orders.xsd
    <?xml version="1.0" encoding="utf-8"?>
    Also getting Technical Error
    SAP iApp Explorer > Monitor > Technical Error Monitor
    IPO Step
    /0010000100.provide/com.sap.b1i.datasync.ipo/P05/P05.ipo/Provide
    Time Stamp
    20110707132803
    Error Description
    com.sap.b1i.xcellerator.Xce...com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception: com.sap.b1i.bizprocessor.BizProcException: BPE001 Nested exception: com.sap.b1i.utilities.UtilException: UTE001 Nested exception: com.sap.engine.lib.xml.util.NestedException: -> com.sap.engine.lib.xml.util.NestedException: -> com.sap.engine.lib.xml.util.NestedException: Error parsing query -> java.lang.NullPointerException: while trying to invoke the method com.sap.engine.lib.xsl.xpath.ETItem.evaluate(com.sap.engine.lib.xsl.xpath.XPathContext) of an object loaded from field com.sap.engine.lib.xsl.xpath.ETObject.et of an object loaded from local variable 'q'
    Thanks
    Kevin
    Edited by: Kevin Shah on Jul 7, 2011 1:32 PM

    Hi Kevin,
    There must be some errors in your development that block B1iSN processing. You can try to debug your xsl transformation with Xsl debuggers like for example the one included inside XmlSpy.
    If you are not developing a B1 to SAP Business Suite you should consider moving your development to B1if. In B1if it is easier to develop and debug your scenarios. With the debug feature you will be able to know which step is blocking your processing very easily.
    You can see some recordings showing how to develop new scenarios with B1if in the following link (SAP user login required):
    https://psd.sap-ag.de/PEC/calendar/
    Hope it helps
    Trinidad.

Maybe you are looking for