XML file error

HI im writing elements to an xml file created from scratch.
here is the pertinent code that creates the structure
//First i create the root element
public void addRootNodeToDocument(Document doc, String componentName) {
try {
     rootElement = doc.createElement(componentName);
}catch...then these few lines of code are called repeatedly to add a child onto a parent.
I get the parent node from a map, and add a child element onto it.
Element parentElement = (Element) elementMap.get(parentString);
Element childElement = doc.createElement(componentName);
parentElement.appendChild(childElement);then i call these few lines of code to write to the xml file:
TransformerFactory transformerFactory = TransformerFactory.newInstance();
Transformer transformer = transformerFactory.newTransformer();
//transform the DOM tree to output XML file.
transformer.transform(new DOMSource(doc), new StreamResult(new FileOutputStream("testfile.xml")));when i try to open the xml file i get this error
XML document must have a top level element. Error processing resource and all thats been written to the xml file is:
<?xml version="1.0" encoding="UTF-8"?>has anyone any idea why this is occuring?
many thanks.

rootElement = doc.createElement(componentName);
doesn't actually set the root element, you need to do
doc.appendChild(rootElement);
afterwards

Similar Messages

  • Parser dimension ACCOUNT's xml file error.

    Hi friends,
    i manully uploading master data in ACCOUNT dimension.
    what i did here, i manually added PARENTH1hierarchy and i changed that column position infront of "ACCTYPE" property. While pasting i might paste on ACCTYPE property & processed ACCOUNT dim.So it gone and disturbed underlying XML file. I checked 3 files XLS,XLT and XML files in UJFS. But XLS & XLT doesn't have ACCTYPE property. So how can i put it back? Any suggestions pls.
    Eventhough ACCTYPE dim property defined and existed(under maintain dim property of ACCOUNT dim). when i try to check maintain members data for manually entering data, it not available in columns. when i try to process ACCOUT dim, system saying below error message. 
    Parser dimension ACCOUNT's xml file error.
    How to correct this error.?
    Thanks,
    Naresh
    Edited by: Naresh P on Jan 13, 2011 7:20 AM

    Hi,
    It will be better to delete the XML file from UJFS and process your dimension once again. However, it might happen that you are still unable to edit the membersheet. In that case, it will be advisable to take a backup of the member sheet and recreate the same member sheet once again.
    Hope this helps.

  • Create prov.xml file error 14 or 28

    When I wan’t to create a prov.xml file for Muse to activate computers in the Enterprise I get the 14 error, the comandline I use is: 
    adobe_prtk --tool=VolumeSerialize --generate --serial=xxxx-xxxx-xxxx-xxxx-xxxx-xxxx --leid=Muse-1.0-Win-GM
    Copyright 2012 Adobe Systems Incorporated 
    All rights reserved. 
    Return Code Code = 14
    When I use the comandline  with provfilepath I get the error 28;  
    adobe_prtk.exe --tool=VolumeSerialize --generate -- serial=xxxx-xxxx-xxxx-xxxx-xxxx-xxxx --leid=Muse-1.0-Win-GM --provfilepath=C:\temp\prov.xml
    Copyright 2012 Adobe Systems Incorporated 
    All rights reserved. 
    Return Code Code = 28
    What goes wrong, any help would be appreciated
    TIA.
    Harmen

    Hello Harmen, please check the %temp%\oobelib.log after completing your first command. This will reveil more details.
    @Adobe:
    I do get the same error code 14 (and then 19) when running the above command for leid=DesignSuiteStandard-CS6-Win-GM
    del "%temp%\oobelib?.log" /q /s
    %~dp0adobe_prtk --tool=VolumeSerialize --generate --serial=xxxxxxxxxxxxxxxxxxxxxxx --leid=DesignSuiteStandard-CS6-Win-GM --regsuppress=ss --eulasuppress --locales=de_DE --provfilepath=%temp%
    ren "%temp%\oobelib.log" oobelib1.log
    %~dp0adobe_prtk --tool=VolumeSerialize --stream --provfile=%temp%\prov.xml
    ren "%temp%\oobelib.log" oobelib2.log
    Permissions are correctly set for \SLStore and \SLCaches. Prov-File-Path was set to %temp% and is accessible/writable. Scripts were run with elevated privileges.
    In Adobe's damn bad documentation I found a hint that Adobe Application Manager (now Adobe Creative Cloud Client) is required for the VolumeSerialize commands to work* but in my case this didnt change a thing...
    * p.135 http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/creativesuite/pdfs/DE/AdobeApplicat ionManagerEnterpriseEditionDep…
    further reading chapter "Volumenserialisierung des Pakets" Creative Cloud-Hilfe | Verwenden von Adobe Provisioning Toolkit Enterprise Edition
    Adobe advises to catch the %temp%\oobelib.log which includes more information. However make sure to backup this file after each run of adobe_prtk because it gets overwritten :/
    My results:
    - step 1 "generation of prov.xml" ends with OOBELIB: SN validated for AAMEE Mode; stat = 27; Adobe PRTK: Failed to validate the serial number  => Code 14
    - step 2 "activation" ends with "invalid prov.xml" because of step 1 => Code 19
    Once I set provfilepath to c: or c:\ step one quits with return code 28 (sufficient rights are set though). Whenever I omit the provfile-Parameters in step 1 and 2 I still receive return code 14 and 19.
    Btw. another hint: check logs when doing a single command line serialization... For me I get loads of errors and end up with a trial mode and register popup
    adobe_prtk --tool=Serialize --leid=DesignSuiteStandard-CS6-Win-GM --serial=xxxxxxxx [email protected]
    Please help me out
    PS: We're on ETLA (OTH Regensburg, former University of Applied Sciences, Ratisbon)

  • XML file error while loading import manager

    Hi all,
    I am new to MDM.
    I have archive repository(.a2a file),xsd files,import maps and export maps.I have unarchived the repository in console and I am trying to load import manager by selecting the file type as XML schema, client system as MDM, XMl schema name and file name as XML file of given XSD in import manager folder of server.
    I am getting error like "failed to parse XML file".
    Please help me out regarding this.
    Thanks in advance.
    Ravi.

    Hi ravi,
    Is it MSXML 4.0 SP2 parser?
    <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=3144b72b-b4f2-46da-b4b6-c5d7485f2b42&DisplayLang=en">http://www.microsoft.com/downloads/details.aspx?FamilyID=3144b72b-b4f2-46da-b4b6-c5d7485f2b42&DisplayLang=en</a>
    Try installing this and let me know.
    Thanks and Regards,
    <b>Sagar Sonje</b>
    Message was edited by:
            Sagar Sonje

  • Issue to load data from database to XML file. error: ODI-40768

    Hi,
    While I am trying to load data from database to XML following error is appearing.
    ODI-1228: Task TEST_XML_DATA (Integration) fails on the target XML connection MyLOCALXSD.
    Caused By: java.sql.SQLException: ODI-40768: Could not save the file <default>:C:\DATA_FILE\www.xml because a class java.io.IOException occurred and said: The filename, directory name, or volume label syntax is incorrect
         at com.sunopsis.jdbc.driver.xml.SnpsXmlFile.writeToFile(SnpsXmlFile.java:751)
         at com.sunopsis.jdbc.driver.xml.SnpsXmlConnection.internalExecute(SnpsXmlConnection.java:769)
         at com.sunopsis.jdbc.driver.xml.SnpsXmlPreparedStatement.execute(SnpsXmlPreparedStatement.java:46)
         at oracle.odi.runtime.agent.execution.sql.SQLCommand.execute(SQLCommand.java:166)
         at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:102)
         at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:1)
         at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2906)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2609)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:540)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:453)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1740)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:338)
         at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:214)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:272)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:263)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:822)
         at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:123)
         at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:83)
         at java.lang.Thread.run(Thread.java:662)
    jdbc url: jdbc:snps:xml?d=C:\test_xsd.xsd&s=TESTSQL&re=employeesX&ro=true
    physical schema: TESTSQL
    Knowledge modules are:
    LKM: LKM SQL to SQL
    IKM: IKM XML Control Append
    CKM: CKM SQL
    Parameters set are:
    CREATE_XML_FILE: true
    XML_PATH:<default>:C:\DATA_FILE\www.xml
    I have tried to change the directory path but error is still there.
    Could some one please help me to resolve the issue?
    Regards,
    user1672911

    Hi,
    The trouble in "<default>:"  - if you set XML_PATH as C:\DATA_FILE\www.xml instead  <default>:C:\DATA_FILE\www.xml- it will work correctly.
    Greetings,
    Eugene

  • Xml file error in file adapter

    Hi Experts.
    In my sceanrio i am Using File dapter. this adapter pick the Xml file.
    here my client provieded sample Xml file (this Xml file don't have the  Url and Xml version).
    I am getting mapping error. nothing is wrong with mapping.
    Client proveded.
    - <MESSAGE>
      <TABLENAME>ZMPSXMSGDET</TABLENAME>
      <ACTION>I</ACTION>
    - <RECORD>
      <XMTYPE>ID</XMTYPE>
      <XMID>2</XMID>
      <ACCOUNTNUMBER />
      <CONSUMERNAME />
      <POSTCODE />
      <ACTIONDATE />
      <ACTIONTYPE />
      <USERID />
      <SENDINGPARTYTYPE />
      <DELIVERYMETHOD />
      <INTENDRECIPIENT />
      <SUBMITDATE />
      <BILLINGOPTION />
      <CONTENTFORMAT>XML</CONTENTFORMAT>
      <NEWSUPPLIERID />
      <COMPRESSED>Y</COMPRESSED>
      <NEXTINVOICEDATE />
      <UPDATEDON />
      <UPDATEDBY>SonicMQ</UPDATEDBY>
      <RAWMSG_LEN>33366</RAWMSG_LEN>
      <DATA>UEsDBBQACAAIAC6kKDoAAAAAAAAAAAAAAAArAAAAS</DATA>
      </RECORD>
      </MESSAGE>
    I am getteting blow error message: in SXMB_MONI
    *<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>*
    *- <!--  Request Message Mapping*
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_MM_ZMPSXMSGDET_</SAP:P1>
      <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
      <SAP:P3>Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_MM_ZMPSXMSGDET_: Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Edited by: srinivasreddy p on Jun 12, 2009 10:28 AM

    Hi,
    I am getting following error in recvier proxy.
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Inbound Proxy
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIProxy</SAP:Category>
      <SAP:Code area="ABAP">PARSE_APPLICATION_DATA</SAP:Code>
      <SAP:P1>Request Message</SAP:P1>
      <SAP:P2>CX_ST_MATCH_ELEMENT</SAP:P2>
      <SAP:P3>/1SAI/TXS17E9317D0B8ACCD31C62</SAP:P3>
      <SAP:P4>XML Bytepos.: 12 XML Path: MESSAGE(1) Error Text: System expected the element 'MT_ZMPSXMSGDET_RECV'</SAP:P4>
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Error during XML => ABAP conversion (Request Message; error ID: CX_ST_MATCH_ELEMENT; (/1SAI/TXS17E9317D0B8ACCD31C62 XML Bytepos.: 12 XML Path: MESSAGE(1) Error Text: System expected the element 'MT_ZMPSXMSGDET_RECV')) System expected the element 'MT_ZMPSXMSGDET_RECV'</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>

  • HTTPService call to XML file error

    I am getting the "HTTP request error" when I attempt to load
    an XML file. I'm setup for PHP web access using MAMP and I'm
    attempting access a XML file (LatestAdoptees.xml) located in a
    subfolder called Data. I have checked and the subfolder and file
    are located both in my src folder and in the MAMP
    htdocs/FoxPets-debug folder. I based my code on Ch 21 of Flex 3
    Bible. Can anyone tell me where I made the wrong turn?

    I notice that you have not set resultFormat="e4x". You
    really, really want to do that.
    Othrwise, you will have a tree of dynamic objects and not
    XML. And the converter that does that oftem makes some bad
    decisions, over which you have no control.
    Tracy

  • Struts Config.XML file error

    if Error in page (value not entered in textfield) , it will be redirected to a same page with server valid error page . After redirecting javascript,css r not working(means not included)
    but it is working when page is first time loaded.
    help me what could be the problem?
    struts config.xml file
                           <forward name="success"
                        path="/jsp-modEmp/success.jsp"
                        redirect="false"></forward>
                   <forward name="fail" contextRelative="true"
                        path="/jsp-modEmp/addempform.jsp"
                        redirect="false"/>Edited by: K.Ramesh on Jun 5, 2008 6:05 AM
    Edited by: K.Ramesh on Jun 5, 2008 6:05 AM

    Thanks for reply..
    We r invoking javascript/css using relative path only.
    i'm redirecting to the same page only if error happens with including error page
    <script language="javascript" type="text/javascript" src="js-modEmp/addEmpval.js">
    </script>
    <script language="javascript" type="text/javascript" src="js-modEmp/datetimepicker.js">
    </script>
    <link rel="stylesheet" type="text/css" href="css-modEmp/styles.css">

  • Google won't load, XML file error message

    I am getting this error string how do i fix?
    This XML file does not appear to have any style information associated with it. The document tree is shown below.
    <Error><Code>AllAccessDisabled</Code><Message>All access to this object has been disabled</Message><RequestId>B48ED5AF31CACBE3</RequestId><HostId>X1yuWJjS7Rqnz9kZhgbKplQueFIEin8fkXDqb8KYMAZ6JcFV3P/C/W6gzQxQu6Ax</HostId></Error>

    Hello,
    Where and when are you facing this error ? Also, since when are you facing this error ?
    In this case we may need more specific details from you (Sensitive Account related information) for us to Analyse and help you on the same.
    We would also recommend to open a new Service Request for us to assist you better on the same. The link below should be helpful for you to open a new Service Request.
    http://azure.microsoft.com/en-us/support/options/
    Regards, 
    Neelesh.

  • XML file error on second time execution.

    suppose i had xml file test1 which have some attributes depicted below. While after creating data sever for test1 xm file and on doing selective reverse external tables are created are
    MAPPING,ENGINE,TRNASMISSION,TRIM,MARKET,LINE,BODY,SERIES.
    It means the tables are created for the attributes which are empty Or which doesnt have values like BODY,ENGINE etc.
    and the attributes which are not empty are contained as columns insdide MAPPING tables such as TOC_ID,MAPPING_ID etc are column names inside MAPPPINGS table.
    <MAPPINGS>
                   <MAPPING_ID>481</MAPPING_ID>
                   <TOC_ID>9456</TOC_ID>
                   <MODEL_YEAR>1997</MODEL_YEAR>
                   <FAMILY>AB</FAMILY>
                   <ENGINE/>
                   <TRANSMISSION/>
                   <TRIM/>
                   <MARKET/>
                   <LINE/>
                   <BODY/>
                   <SERIES/>
                   <XT_ID>481</XT_ID>
                   <LEVEL>1</LEVEL>
              </MAPPINGS>
    Suppose second time loading of test1 xml file if i recieve data in which engine column is not null
    <MAPPINGS>
                   <MAPPING_ID>481</MAPPING_ID>
                   <TOC_ID>9456</TOC_ID>
                   <MODEL_YEAR>1997</MODEL_YEAR>
                   <FAMILY>AB</FAMILY>
                   <ENGINE>1 </ENGINE>
                   <TRANSMISSION/>
                   <TRIM/>
                   <MARKET/>
                   <LINE/>
                   <BODY/>
                   <SERIES/>
                   <XT_ID>481</XT_ID>
                   <LEVEL>1</LEVEL>
              </MAPPINGS>
    sice already the MAPPINGS table table is created which doesnt have ENGINE column inside it. so second time load I recive the error .
    So it means that if in XML file during the first time load if one attribute is null while at second it is not null a mismatch on the table or column creation occurs.
    Is there any solution.
    Thanks
    Neeraj singh
    Edited by: neeraj_singh on Dec 18, 2008 10:43 PM

    Hi
    Did you get the solution to this problem? I am having a 'sort of' similar issue.
    Am using Oracle table as my source and XML model as the target.
    While creating a XML server, instead of giving an XML file , am giving a DTD file.
    All the elements of the DTD file after reversing are "tables" and the attributes within those elements are coming as "columns". And after reversing XML model,
    ODI is inserting some Primary key and foreign key columns within elements. I think they are coming from"element ref" tag in the DTD.
    Now the problem is
    1. How do i populate these PK's and FK's? i tried setting default value to them, but its not working. Will it affect my XML file? and moreover i am not populating any of the PK's and FK's from the source and creating multiple interfaces to populate different elements of just one XML file as i am having single Oracle table as the source.
    2. After populating the XML model, where will be my resultant XML file. Is it the same location/file as the XML schema. (this XML schema has been specified while creating XML data server).
    3. Can you provide some documention if you have (other than the Users guide)
    thanks
    CJ

  • Selecting certain iWeb templates results in missing index.xml file error

    some, not all my templates (which are all the default ones that come with iWeb) do not work. Of course, the one I need right now is one of the defunct templates!
    When I launch iWeb, I get the "Choose a template for your webpage" and the list of available templates.
    When I select either "White" or "Black" I get an error message that indicates I'm missing the index.xml file and the only option is "close", which results in an unusable iWeb that I have to re-launch.
    What happened to the index.xml file? What do I have to do to get it back? I've updated to the latest release but that did not solve the problem.
    Is there an index.xml file somewhere else that I can just copy into the right folder and move on?

    What follows is a LOG that I took as I dealt with the above problem noted in this post. I apologize for the *CAPS LOCK SYNDROME* and the *AKWARD NATURE OF MY PROCESS* but *IT WORKED!!!*
    *IWEB REDESIGN PROBLEM (April 13, 2008)*
    1. OPEN DOMAIN FILE AND RENAMED 'index-new.xml' to 'index.xml'
    2. STILL NO CHANGE AND CANNOT OPEN IWEB FILE!
    3. AFTER SOME TIME IT OPENED THE FILE BUT COULDN'T FIND ALL MEDIA FILES (LINK SEEMED BROKEN)
    4. COPIED BOTH DOMAIN AND DOMAIN.SITES FILE TO EXTERNAL HD.
    5. TRASHED REMAINING DOMAIN FILES FROM APPLICATION SUPPORT/ IWEB FOLDER.
    6. TRANSFERED ORIGINAL DOMAIN FILE (SAVED) FROM EXTERNAL HD TO INTERNAL HD IWEB FOLDER.
    7. DELETED PLIST FILE FROM PREFERENCES.
    8. OPENED IWEB APPLICATION WHICH CREATED NEW DOMAIN FILE (of course).
    9. TRASHED NEW DOMAIN FILE.
    10. TRIED TO OPEN ORIGINAL DOMAIN FILE WHICH I RENAMED AS 'Domain (redesign 2008)' BUT IT WOULDN'T! STARTING FROM NEW DOMAIN FILE INSTEAD!
    11. TRIED TO RENAME THE ORIGINAL FILE BACK TO JUST 'DOMAIN' AND WALLAH AFTER MUCH TRIAL AND ERROR ORIGINAL FILE IS BACK EXACTLY AS I LEFT IT BEFORE UPLOADING TO .MAC ACCOUNT LAST NIGHT.
    THOUGHTS:
    Something definitely happened to the original domain file when it was being uploaded to .mac account and the renaming of the index.xml file to index-new.xml plus the inclusion of another 'Domain.sites' file in my iWeb folder where originally there was only one 'Domain' file caused the confusion and resulting panic that followed! AAAAAAAAAAAAAAAAAH!
    The crazy thing is that this will probably happen again as I make more changes (redesign) and upload them to the mac server. If someone has a *REAL FIX* to prevent this CHANGE from happening - *PLEASE POST THIS HERE!*
    Good luck to all who read this and remember: 'When there is a will, there is a way!'

  • I have to print two labels using single XML file.Error:Only one top level e

    Hi,
    I have to print two labels using single XML file. But its giving error:
    [Error] Error -1072896683 - Line: 38 Pos: 2 Error: Only one top level element is allowed in an XML document.
    Below is my XMl file:
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE labels SYSTEM "label.dtd">
    <labels FORMAT="lib://FRD/PurchasedDoor.btw"  PRINTERNAME="IBM 6700-R80 (300 dpi)" _QUANTITY="1">
    <label>
    <variable name= "Color">AUTUMN</variable>
    <variable name= "Special_Message_Attribute">MSG*</variable>
    <variable name= "Special_Message">This is special Message Label</variable>
    <variable name= "Model"></variable>
    <variable name= "Build_Date">09-APR-12</variable>
    <variable name= "Assy_Cart"></variable>
    <variable name= "Assy_Slot"></variable>
    <variable name= "Finish_Cart"></variable>
    <variable name= "Finish_Slot"></variable>
    <variable name= "Serial_Number">1945.1.1.2-1</variable>
    <variable name= "Serial_Number_Barcode">1945.1.1.2-1</variable>
    <variable name= "Specie">BIRCH</variable>
    <variable name= "Truck_Group"></variable>
    <variable name= "Label_Sequence_No">1</variable>
    <variable name= "WIP_Cart"></variable>
    <variable name= "WIP_Slot"></variable>
    <variable name= "Cabinet_Sequence_No">110</variable>
    <variable name= "JC"></variable>
    <variable name= "Thickness"> </variable>
    <variable name= "Width"> </variable>
    <variable name= "Length"> </variable>
    <variable name= "Overlay"></variable>
    <variable name= "Options">B30</variable>
    <variable name= "Profile_No"></variable>
    <variable name= "Door_Style">NEWBERRY</variable>
    <variable name= "Glaze"></variable>
    <variable name= "Shape"></variable>
    <variable name= "Glass"></variable>
    <variable name= "Hinge_Side"></variable>
    <variable name= "Hinge_Type"></variable>
    <variable name= "EGE"></variable>
    </label>
    <labels FORMAT="lib://FRD/SpecialMessage.btw"  PRINTERNAME="IBM 6700-R80 (300 dpi)" _QUANTITY="1">
    <label>
    <variable name= "Serial_Number">1945.1.1.2-1</variable>
    <variable name= "Special_Message">This is special Message Label</variable>
    <variable name= "Cabinet_Sequence_No">110</variable>
    </label>
    </labels>
    Please suggest.

    >
    XML can only have one root element per file.
    >
    from XML Document: The Root Element

  • DocumentBuilder parser, DOM doucment object from a XML file error

    Hi guys
    I created a program which parses a xml and creates a DOM document object from
    it. The parser is validating.
    class xmlParser
        //create arrylist to store employee in
        private ArrayList<Employee> employeeStore = new ArrayList<Employee>();
        private DocumentBuilder parser;
        private static Document document;     
        //create an instant of Employee to be added to the arraylist
        private Employee theEmployee = new Employee();
        //create an instant of Address to be added to Employee to again be
        //added to Employee
        private Address employeeAddress = new Address();
        public xmlParser()
        public xmlParser(String myfile) throws IOException 
              //validate the XML document agaisnt the given dtd
              DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              factory.setValidating(true);
              factory.setIgnoringElementContentWhitespace(true);
              try {
                  parser = factory.newDocumentBuilder();
              }catch(javax.xml.parsers.ParserConfigurationException d) {
                   System.out.println("error with new document builder");
              //create document object (DOM tree) from xml file
              try {
                  document = parser.parse(new File(myfile));
              }catch(org.xml.sax.SAXException e) {
                  System.out.println("Error with parser file still creating xml personnel2");
        } In my main method when i call:
    xmlParser parsertree = new xmlParser("personnel.xml"); the exception keeps getting thrown and i get my my message back "Error with parser file still creating xml personnel2"
    Can't seem to figure it out, any ideas would be great.
    Thanks alot

    Hi,
    A - Check that the xml file is located in the same directory where you
    run your app.
    B - Check that the xml file is correct (in XML way).
    Suggestion : you may print the exception message, it might help.
    Hope that help,
    Jack

  • SEPA Direct Debit XML file error

    Hello,
    we've set a Z version of CGI_XML_DD tree for SEPA direct debit.
    Different payment proposals have been successfully created in F110.
    Most of the XML file generated from F110 have been accepted by banks with no problem.
    But in one specific file, we've got an error that I'm not able to interpretate. As it's XML, I'm not sure if this is the right place to post this message, but as it's created in SAP throught this format...
    Could you please tell me what's wrong in here?:
    Error, see line 1:
    Element '{urn:iso:std:iso:20022:tech:xsd:pain.008.001.02}Dbtr': This element is not expected. Expected is one of ( {urn:iso:std:iso:20022:tech:xsd:pain.008.001.02}UltmtCdtr, {urn:iso:std:iso:20022:tech:xsd:pain.008.001.02}DbtrAgt ).
    I've compared this wrong XML file with correct ones, and everything looks in order...
    Thank you

    Solved.
    This error came because creditor has no SWIFT code informed, and no mandate.
    As per requirement, those flags where not selected in payment method, so no error message was shown during the payment proposal.

  • DI XML File Error

    Taking a simpe XML file with an XSD and loading the first 4 fields into a template table and get the following error
    1120     936     SYS-170101     2/17/2010 4:34:08 AM     |Session cdp_ods_J_asp_load|Work flow cdp_ods_trx_load_wf|Data flow DF_XML_LOAD
    1120     936     SYS-170101     2/17/2010 4:34:08 AM     System Exception <ACCESS_VIOLATION> occurred. Process dump is written to <C:\Program Files\Business Objects\BusinessObjects

    Hi,
    I've got same issue. Problem was in pathname to .xsd file: in my case there was some cyrillic symbols and maybe spaces - try to look around this.

  • Export XML file error

    Hello,
    When i try to export xml file, i get next error:
    "ODI-1228: Task P_CREATE_MANUAL_XML (Procedure) fails on the target XML connection XML_BKI.
    Caused By: java.sql.SQLException: ODI-40768: Could not save the file /u01/app/out_files/bki/CRE_HAND_OPERATED.XML because a class java.sql.SQLException occurred and said: java.sql.SQLException: java.sql.SQLException: Closed Connection"
    But when i restart the agent, all becomes good for a while.
    Who knows that problem?

    Michael R wrote:
    The target table will be created when you execute the interface, if you set the option on the flow tab as instructed in step #6 of the "Setting up ODI Constraint on CLIENT Datastore" Section.
    Option     Value
    CREATE_TARG_TABLE      trueHi Michel,
    This was not my required answer.I am sorry that I was unable to clarify my question.Actually
    +This project executed successfully with some warning.Target Table is automatically created in database and also populated with data.But when I right-click Target Datastore(in >Mapping Tab of the Interface), and then select Data to View Data that needs to be inserted in the target table.I get some error like this:-...+This above line is the result of my project my problem is
    when I right-click Target Datastore(in Mapping Tab of the Interface), and then select Data to View Data that already inserted in the target table.Is not shown by the view data operation.
    I meant to say I am facing this error
    At the10(1010 written) step of
    Creating a New ODI Interface to Perform XML File to RDBMS Table Transformation
    wehre it says
    Open the Interface tab. Select Mapping tab, right-click Target Datastore - CLIENT, and then select Data. View Data inserted in the target table. Close Data Editor. Close the tabs...
    In my case when I use my sqldeveloper I can see data successfully inserted in my target table and also in error table (data that can't satisfy the constraint) .But I was unable to check this by following the above mentioned 10 th step and got this error.
    Thanks

Maybe you are looking for

  • How might I merge 2 photos, and object from one photo cleanly onto a background from another?

    I paint from photos, and wish to merge 2 photos together. I now use PS7. I would like to  clearly merge an object from one photo onto a background in a 2nd photo. The photomerge options in a trial PS10 do not create the composite I wish, ie, a clean

  • Can't see any videos in any browser

    I am having this issue for over a month or two now, i can't play any videos on any browser, i tried firefox, then IE , then chrome, i re-installed all of them, updated flash, updated real player, downgraded flash , cleared browsing history,disable ha

  • Linux or Solaris?

    Hi, Anyone has the experience on install the Oracle 10g on Solaris 10? What will you choose if you need to install the oracle on Red Hat Enterprise Linux 5 or Solaris 10 ? Please give me some points if possible. Thanks.

  • Equipment and material

    Dear all I am not sure but I am posting this thread under MM area I am facing one problem with Equipment . The Equipment is belonging from plant A & the material which I entered in Equipment in under <b>serial data</b> belong from plant B . I want sy

  • Error kernel.cpp line 144 on exiting an EXE

    We have a distributed TCP/IP based control system in LV 6.1 running on W2K. Occasionally we have TCP read errors and when this occurs we end up having to reboot the application(s). We got the kernel.cpp 144 error when we exited out of one EXE. I cann