Trouble IMPORTING xml DOCUMENT....

I may be banging my head against the wall (as usual)....
but is there any way to import an xml document (a sequence from a fcp project) created in fcp 5.1.2 into my fcp version 5.0.4 --?
I'm asked to 'choose a translation document file', when I go into my apps and select fcp, I get 'no translation templates matching the selected xml file were found. Unable to import'
Thanks.

I just got thru working a project with someone in 5.0.4 and I'm in 5.1 -- we did xml transfers back and forth and it worked very well.
For some reason I chose to use XML version 2 out of the export window (just a guess) and it worked great.
One thing I had to do was keep opening a new project file with the xml (but this mainly was to keep the other person from getting too confused.)
It SHOULD work for you... it did me.
File - Export - XML... or right click the sequence and Export as XML... then choose version 2 (or try the others too).
Good luck,
CaptM

Similar Messages

  • InDesign CC crashes when importing XML document

    First off thank you for looking and in advance for any help offered.  To the issue:
    I have an employee that is seeing consistent crashes on In design CC when trying to import one of our XML documents.  The XML file is around 150KB so not very big.  The actual indesign document and any graphics that might go into it are located on a server that is on our network.  The employee is working remotely.
    How best to go about troubleshooting this issue?

    Older scripts may not work directly in CC, but many ought to if placed into subfolders for their versions in your scripts folder, such as "Version 8.0 Scripts" without quotes, but case sensitive, for scripts that run in CS6.
    And no, it's not just you having trouble with CC.
    Have you seen this: Crash | Launch, selecting Type tool ?

  • Maximum file size of imported XML document

    Is anyone able to tell me if there is a maximum size for XML files that you can import into a PDF document?? I need to know this as my client has a requirement for a very large data set within an interactive PDF generated using LiveCycle designer.

    Thanks. I have posted this in the LiveCycle designer forum but have had no reply. I have posted instead within this forum as importing an XML document is not specific to LiveCycle Designer and is instead an Acrobat Pro task and therefore question.

  • Import XML document in MS Access through Jsp

    Hai,
    Can any one please tell how to import/store XML document into database, I have tried a lot, but failed to get the result. So please can anyone send me the related code for storing the XML document into database.
    Thanking you in advance,
    Praveen Vinnakota.

    You can store the XML Document as a String Data In the database and thus no need to use XML Parsers
    Bye for now
    CSJakharia

  • Trouble importing XML files for CUP5.3 SP15

    After applying patch 5 for CUP 5.3 SP15 when I attempt to import the clean and insert XML file i get the error "Action Failed"
    I am including the logs!
    2011-05-11 17:16:41,336 [SAPEngine_Application_Thread[impl:3]_26] ERROR com.virsa.ae.configuration.actions.ImportDataAction : importData(HttpServletRequest request :   :  add MessageCodes = 0101 , return failure
    2011-05-11 17:24:49,374 [SAPEngine_Application_Thread[impl:3]_12] ERROR  DataLoader.java@84:importData() : Error in parsing Data File : Fatal Error: com.sap.engine.lib.xml.parser.ParserException:  = expected in attlist(:main:, row:18842, col:79)
    2011-05-11 17:24:49,375 [SAPEngine_Application_Thread[impl:3]_12] ERROR com.virsa.ae.configuration.bo.InitialDataBO : importData() :   : FileFormatException
    com.virsa.ae.dataloader.FileFormatException: Error in parsing Data File : Fatal Error: com.sap.engine.lib.xml.parser.ParserException:  = expected in attlist(:main:, row:18842, col:79)
         at com.virsa.ae.dataloader.DataLoader.importData(DataLoader.java:85)
         at com.virsa.ae.configuration.bo.InitialDataBO.importXMLData(InitialDataBO.java:347)
         at com.virsa.ae.configuration.bo.InitialDataBO.importData(InitialDataBO.java:284)
         at com.virsa.ae.configuration.actions.ImportDataAction.importData(ImportDataAction.java:248)
         at com.virsa.ae.configuration.actions.ImportDataAction.execute(ImportDataAction.java:71)
         at com.virsa.ae.commons.utils.framework.NavigationEngine.execute(NavigationEngine.java:295)
         at com.virsa.ae.commons.utils.framework.servlet.AEFrameworkServlet.service(AEFrameworkServlet.java:431)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    Caused by: com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException:  = expected in attlist(:main:, row:18842, col:79)(:main:, row=18842, col=79) -> com.sap.engine.lib.xml.parser.ParserException:  = expected in attlist(:main:, row:18842, col:79)
         at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:144)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:143)
         at com.virsa.ae.dataloader.DataLoader.importData(DataLoader.java:62)
         ... 21 more
    Caused by: com.sap.engine.lib.xml.parser.ParserException:  = expected in attlist(:main:, row:18842, col:79)
         at com.sap.engine.lib.xml.parser.XMLParser.scanAttList(XMLParser.java:1571)
         at com.sap.engine.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1716)
         at com.sap.engine.lib.xml.parser.XMLParser.scanContent(XMLParser.java:2446)
         at com.sap.engine.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1847)
         at com.sap.engine.lib.xml.parser.XMLParser.scanDocument(XMLParser.java:2849)
         at com.sap.engine.lib.xml.parser.XMLParser.parse0(XMLParser.java:235)
         at com.sap.engine.lib.xml.parser.AbstractXMLParser.parseAndCatchException(AbstractXMLParser.java:145)
         at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:160)
         at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:261)
         at com.sap.engine.lib.xml.parser.Parser.parse_DTDValidation(Parser.java:260)
         at com.sap.engine.lib.xml.parser.Parser.parse(Parser.java:271)
         at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:125)
         ... 24 more
    2011-05-11 17:24:49,381 [SAPEngine_Application_Thread[impl:3]_12] ERROR com.virsa.ae.configuration.actions.ImportDataAction : importData(HttpServletRequest request) :   :  import fail
    com.virsa.ae.core.BOException: importData exception from RE component
         at com.virsa.ae.configuration.bo.InitialDataBO.importXMLData(InitialDataBO.java:371)
         at com.virsa.ae.configuration.bo.InitialDataBO.importData(InitialDataBO.java:284)
         at com.virsa.ae.configuration.actions.ImportDataAction.importData(ImportDataAction.java:248)
         at com.virsa.ae.configuration.actions.ImportDataAction.execute(ImportDataAction.java:71)
         at com.virsa.ae.commons.utils.framework.NavigationEngine.execute(NavigationEngine.java:295)
         at com.virsa.ae.commons.utils.framework.servlet.AEFrameworkServlet.service(AEFrameworkServlet.java:431)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    Caused by: com.virsa.ae.dataloader.FileFormatException: Error in parsing Data File : Fatal Error: com.sap.engine.lib.xml.parser.ParserException:  = expected in attlist(:main:, row:18842, col:79)
         at com.virsa.ae.dataloader.DataLoader.importData(DataLoader.java:85)
         at com.virsa.ae.configuration.bo.InitialDataBO.importXMLData(InitialDataBO.java:347)
         ... 20 more
    Caused by: com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException:  = expected in attlist(:main:, row:18842, col:79)(:main:, row=18842, col=79) -> com.sap.engine.lib.xml.parser.ParserException:  = expected in attlist(:main:, row:18842, col:79)
         at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:144)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:143)
         at com.virsa.ae.dataloader.DataLoader.importData(DataLoader.java:62)
         ... 21 more
    Caused by: com.sap.engine.lib.xml.parser.ParserException:  = expected in attlist(:main:, row:18842, col:79)
         at com.sap.engine.lib.xml.parser.XMLParser.scanAttList(XMLParser.java:1571)
         at com.sap.engine.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1716)
         at com.sap.engine.lib.xml.parser.XMLParser.scanContent(XMLParser.java:2446)
         at com.sap.engine.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1847)
         at com.sap.engine.lib.xml.parser.XMLParser.scanDocument(XMLParser.java:2849)
         at com.sap.engine.lib.xml.parser.XMLParser.parse0(XMLParser.java:235)
         at com.sap.engine.lib.xml.parser.AbstractXMLParser.parseAndCatchException(AbstractXMLParser.java:145)
         at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:160)
         at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:261)
         at com.sap.engine.lib.xml.parser.Parser.parse_DTDValidation(Parser.java:260)
         at com.sap.engine.lib.xml.parser.Parser.parse(Parser.java:271)
         at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:125)
         ... 24 more
    2011-05-11 17:24:49,385 [SAPEngine_Application_Thread[impl:3]_12] ERROR com.virsa.ae.configuration.actions.ImportDataAction : importData(HttpServletRequest request :   :  add MessageCodes = 0101 , return failure

    Hi Kevin,
    If you had applied Patch 15 earlier and imported the initial files, then no need to upload it again after patch 15.5 it will use same Patch15 initial files.
    If you are going directly to SP15 patch5 from 14 or below, check if you are taking correct files. This issue comes when we import wrong files say ERM files into CUP or so.
    Regards,
    Sabita

  • Having trouble importing .xml comments into Captivate 7 project.

    I'm trying to import comments made in the Captivate Reviewer program.  I exported the comments to my desktop and now when I try to import them into the the project, I get this error.
    Does anyone have any advice?  Thanks.

    Hard luck there! I guess you opened the Captivate source file after you sent for review and saved it again (with or without modification).
    When you send a Captivate review project (CREV) file for review, it uses some kind of identifier that maps the incoming XML files with the source file. If you open/ edit the source file and save it after sending it for review, a new identifier is created, which results in this kind of mismatch. Hence this issue.
    AFAIK, there is no way to import the files. You have to open the XML separately and address the comments manually.
    Sreekanth

  • Trouble Importing XML Files

    So I recently switched to a PC from a Mac.  I actually prefer Windows 8 to all other OS's, I know I'm in the minority, but that's what I like.  My question is this:  When I imported my catalogs from my Mac to my PC all imported fine with all files showing correctly and all images showing a history of edits etc.  However for whatever reason one wedding I shot didn't make it in.  The files are there along with the sidecar files.  So I tried to import that folder into the catalog and it did.  However it didn't import the sidecar files and all my previous edits are now not showing.
    How do I import these XML files so that my edits are restored?  I see no option at the import screen to inlcude or not include XML files.  Are my edits lost forever or can they be saved? Thanks.
    FYI: I'm using Lightroom 4.3

    For your information, the .xmp files are not the way to restore a catalog. Certain information is not stored in .xmp files, such as collections, and flags, and a few other things.
    All of your edits, as well as collections, flags, and everything else done in Lightroom are stored in the Lightroom catalog. If you moved the catalog file from one computer to the other, all of your edits and everything else you did in Lightroom will be in there. You would not have had this issue.

  • CS2 AS: Scripted "Import XML" is not working (like manual import does)

    I have problem where importing a XML (merge import + delete unmatched) by script simply doesnt work, where the manual import works 100% fine!!??
    (I'm exporting the XML, refill it with new text data (localisation process actually), and bring the xml back to commit the change in the Indesign document).
    With the script, the XML get imported as a child in the XML
    I have xml structure like:
    root
    node
    and get something like
    root
    node
    root
    node
    My code looks like this (sorry for the formatting):
    tell application "Adobe InDesign CS2"
    tell XML import preferences
    set create link to XML to false
    set ignore unmatched incoming to true
    set ignore whitespace to false
    set import style to merge import
    set import text into tables to false
    set import to selected to false
    set repeat text elements to false
    set remove unmatched existing to true
    end tell
    try
    import XML (document 1) from pFilePath
    on error pmsg
    display dialog pmsg
    end try
    end tell
    Is there something obvious that i'm misssing??
    ps: I have checked the XML structure correspondance already.. but i dont think that's the cause of problem as the manual import is working.
    Thanks for any help!
    Eric

    Hi Eric,
    If you can see the behavior in the user interface, you can see it in scripting. I think it makes perfect sense to have the XML import preferences set at the document level, because some documents need one set of preferences; other documents need another. I think (hope) that the user documentation covers the differences between application and document preferences (if not, I do, in my book).
    If you see a preferences object on both the application and the document, assume you want to use the document preferences. Unless you're trying to set preferences for new documents.
    Thanks,
    Ole

  • Multiple XML documents in one SWF

    Hi, i'm trying to create a mix and match clothing application
    using flash for a school project but am having trouble with xml
    documents. Using an online tutorial, i found it was quite easy to
    load up one xml document, example of code below.
    I thought it would be as simple as copying all the code and
    changing the variable names to load a second xml document but i
    find when i run the code, that only the last xml document in the
    code loads, could anyone give me any tips? Thanks
    function loadXML(loaded) {
    if (loaded) {
    xmlNode = this.firstChild;
    image = [];
    description = [];
    total = xmlNode.childNodes.length;
    for (i=0; i<total; i++) {
    image
    = xmlNode.childNodes.childNodes[0].firstChild.nodeValue;
    description
    = xmlNode.childNodes.childNodes[1].firstChild.nodeValue;
    firstImage();
    } else {
    content = "file not loaded!";
    xmlData = new XML();
    xmlData.ignoreWhite = true;
    xmlData.onLoad = loadXML;
    xmlData.load("images.xml");

    Hi, i checked my text and description boxes in my document,
    and it is in fact loading the separate xml document, the problem
    seems to stem from the fact that it is not displaying the xml image
    within the movie clip.
    I have two separate mc's on the stage, with different
    instance names, flash displays the description of each separate xml
    document, however, it only shows one of the movie clips images, if
    i delete one from the actionscript, it shows the other, so it must
    be something to do with them overwriting each other, i used a
    trace, so i know the data is in flash for the images which arent
    being shown, it just isn't showing for some reason.

  • XML Document: Import Manager

    hello all -
    I have created an XML document in this format:
    <MDM_PRD_ProductRecord>
      <data1>123</data1>
      <data2>456</data2>
      <MDM_PRD_Price>
        <test1>123</test1>
        <test2>456</test2>
      </MDM_PRD_Price>
      <MDM_PRD_Price>
        <test3>100</test3>
        <test4>101</test4>
      </MDM_PRD_Price>
      <MDM_UOM>
        <test5>5</test5>
        <test6>6</test6>
      </MDM_UOM>
      <MDM_UOM>
        <test7>7</test7>
        <test8>8</test8>
      </MDM_UOM>
    </MDM_PRD_ProductRecord>
    Seems like SP4 MDM is not loading this xml into the repository because of multiple xml elements <MDM_UOM>, <MDM_PRD_Price> and would expect in one xml file instead of having the xml file into multiple tables like <MDM_UOM> and <MDM_PRD_Price>
    The file is being generated from XI. Just would like to know if there are other possibilities in MDM since i did not find any from the forums.
    Any help is greatly appreciated.
    Thanks,
    Tirumal

    Hi Tirumal,
    the import of XMLs into MDM via Import Manager is easier, if you use an XML Schema. Since you are creating the file with XI, you should already have an XML Schema (or XSD). You can download this file from XI and add it to your repository in the Admin Section of the MDM console. Afterwards you use the option "XML Schema" and your XML in the Import Manager.
    Kind regards
    Michael

  • Importing XML Tags in a document

    Hello,
    I've been trying to import XML Tags in a .indd i created, using the Java API but it does not seem to work (the tags content don't update when i export the document as PDF).  I did the same actions in the InDesign CS4 GUI and it worked like it's supposed to.
    I ran the InDesign server using that command: InDesignServer -iorfile c:\ior.txt -pluginpath Server\Corba
    I included the .indd file, XML tags file and the Java code I wrote.
    EDIT:
    Also, document.getModified() is FALSE, even after calling document.loadXMLTags(...).
    When I exports the tags, all I get is this:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Root colorindex="0"><Tag colorindex="35"/></Root>
    document.countTextFrames() returns 4, which is what is expected.  However document.countXMLTags() returns 2, i'm guessing it's because all my tags are named <Tag...> (+ the <Root> element).  Could that be the cause of my problems?
    any help will be appreciated, thanks

    Import XML imports the entire XML file, including the tags and the content, into the document. In the UI, the result would be seen in the Structure View. You can then work with the imported tagged content.
    Load XML tags simply loads the tags into the tag list. In the UI, the result would be seen in the tags panel. (This command is also available from the tags panel.) No XML content is imported; only the tag list is populated. This is used when you just want the tags from a document, and you don't want the content. You can then tag new content using the same tags as the XML file.

  • Trouble with CHM Search & Index after Importing Word Document

    Greetings,
    I have recently inherited all things RoboHelp at work, but the last person to work with our projects left 6 months ago.  I received a brief overview of how our CHM files were generated from the same word document in RH HTML 7. 
    Currently, I am using RoboHelp HTML 9, but am having trouble with the Index and Search functionality from an imported Word 2003 (.doc) file.  During my import, only a single topic is created and named after the source document.  I believe this may be the root of my problems, but haven't had much luck with a solution. 
    I have stumbled my way through setting after setting, but feel I am missing something obvious.  Any help would be appreciated.
    Thanks,
    Ken
    Background:
    Our source documents have a working TOC and Heading 1-3 structure.  When creating a new project and importing the document, the TOC is imported correctly.  The TOC navigations links seem to function correctly. 
    I have used the Smart Index Wizard to find new keywords from topic titles and topic text.  Unfortunately it seems the import only creates a single topic named after the source word document and therefore associates all keywords with the single topic.  when trying to navigate the index after the CHM is generated, all links simply reference the beginning of the document.
    When using the search feature in the CHM, only a single result is returned for any search words.  This result is always the single topic as described above.  The results link always returns you to the start of the document but does highlight the keyword throughout the document.

    When you import there is an Advanced button in one of the dialogs. Click that and you will be able to Paginate against chosen styles. That will break your document into topics.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Is the transformation between XML document and 2 dimensions table important?

    To everyone:
    I am trying to write a paper on this topic.first ,i want to ask whether the transformation between XML data and table in RDBMS is important,because xml data is suitable to transfer from a point to another,but not for storage,so when the transfer begin a program(in DB2,the program is DB2 extender)should change the data format in table into a xml document.And vice versa,the destination point receive the xml document,maybe the same program would store it in table.
    so i wonder if such a program exists in the Oracle8i or later version,and the detail about how the program realizes above funciton.please tell me where can i find related paper or materials.
    thanks!

    To everyone:
    I am trying to write a paper on this topic.first ,i want to ask whether the transformation between XML data and table in RDBMS is important,because xml data is suitable to transfer from a point to another,but not for storage,so when the transfer begin a program(in DB2,the program is DB2 extender)should change the data format in table into a xml document.And vice versa,the destination point receive the xml document,maybe the same program would store it in table.
    so i wonder if such a program exists in the Oracle8i or later version,and the detail about how the program realizes above funciton.please tell me where can i find related paper or materials.
    thanks! That is all oracle XDK is for. You can transform query results to xml and xml back into RDBMS. Infact Oracle provides much more flexible way than a DB2 extender does. In DB2 you need to give a DAD before you get any XML. Oracle relies on the direct transformation of query results into XML and adds flexibility of XSL ontop of the data.
    You can get more information on XML technology section of OTN.
    Once you write the article can we get a chance to see it.

  • Can't import xml file: "need translation document/template" - - help please

    Hi there,
    Someone edited a project with fcp 5.1. I have fcp 5.0. I've been asked to tweak the project (for no charge, which is fine with me; it's for a tiny 3rd-world charity organization).
    He sent me the project files as xml documents... but when I double click on them I get a window saying they "need translation document file", or translation template. Nothing in my fcp folder or app seems to do the trick.
    Can someone please advise me on this?
    I did a search before posting, and noticed that someone advised someone else that xml version 2 is the better xml file to work with. I don't know whether the xml files this guy sent me are v. 1 or 2.
    Any help would be very much appreciated!
    Malcolm

    Thank you Studio X. I've just sent off the request. I'll let you know if it works.
    IF it doesn't work... should I upgrade to FCStudio2, do you think? I didn't want to have to do that (I'm not being paid for this work, so I don't really want to go out of pocket), but if this XML2 thing doesnt' work, I'm not going to be able to do this project at all, it would seem. Which I would feel badly about.
    The other thing is, I've been sort of thinking that some day I'm going to have to get FCStudio2, so maybe I should just push that day up a bit.
    It would really bother me, though, if I go to the expense of getting FCStudio2, and then I still can't open these files.
    Cheers,
    Malcolm

  • Importing XML into Java.  Help needed Please!!!

    Hi,
    I have downloaded j2sdk1.4.1_05 and want to configure it to import XML files into a DOM in Java. I am having trouble doing this and need help. I read that version 1.4 support JAXP 1.1 but I am having trouble finding the JAXP-api.jar file. It says to put all the other Jar files into a folder and leave the JAXP-api.jar.
    Could you please tell me how to set up Java so that I can import an XML file. I also downloaded JAXP 1.2. But there seems to be no installer.
    Thanx John

    You can learn about reading xml in java by reading the J2EE tutorial at
    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/
    Here is sample program to read XML file into a DOM taken from this tutorial
    (http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JAXPXSLT4.html)
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.FactoryConfigurationError;
    import javax.xml.parsers.ParserConfigurationException;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    import org.w3c.dom.Document;
    import org.w3c.dom.DOMException;
    import java.io.*;
    public class TransformationApp
      static Document document;
      public static void main(String argv[])
        if (argv.length != 1) {
          System.err.println (
            "Usage: java TransformationApp filename");
          System.exit (1);
        DocumentBuilderFactory factory =
          DocumentBuilderFactory.newInstance();
        //factory.setNamespaceAware(true);
        //factory.setValidating(true);
        try {
          File f = new File(argv[0]);
          DocumentBuilder builder =
            factory.newDocumentBuilder();
          document = builder.parse(f);
        } catch (SAXParseException spe) {
          // Error generated by the parser
          System.out.println("\n** Parsing error"
            + ", line " + spe.getLineNumber()
            + ", uri " + spe.getSystemId());
          System.out.println("  " + spe.getMessage() );
          // Use the contained exception, if any
          Exception x = spe;
          if (spe.getException() != null)
            x = spe.getException();
          x.printStackTrace();
        } catch (SAXException sxe) {
          // Error generated by this application
          // (or a parser-initialization error)
          Exception x = sxe;
          if (sxe.getException() != null)
            x = sxe.getException();
          x.printStackTrace();
        } catch (ParserConfigurationException pce) {
          // Parser with specified options can't be built
          pce.printStackTrace();
        } catch (IOException ioe) {
          // I/O error
          ioe.printStackTrace();
      } // main
    } If you have java 1.4 sdk installed everything should compile and run. Separate
    JAXP package is nor required - JAXP is included in rt.jar in java-home-directory/jre/lib.

Maybe you are looking for

  • Hyperion Enterprise web error

    Hi , Thanks a lot on helping me in resolving one issue, "Hyperion Enterprise Error: Module not Found He.hecontainer". But when I click on application setup I am getting the following error message. Server Error in '/HEWeb' Application. Source File: C

  • MIGo allowed even if PO version is not comleted

    Hi friends, I am facing the following problem. The process steps I carried out is as follows: 1. PO created fro quantity 10 2. PO released 3. PO changed to modify the quantity as 15. New versio created. Versio is NOT completed. 4. Attempted to do GR

  • Contacts won't delete

    I just got my iPad air and I'm still trying to learn how everything works. I have a contact list that somehow connected to Facebook or other various places and synced. The problem is they are not contacts that I need or want on my iPad. I've tried go

  • PRRW - How to analyse the errored entries

    Hi, I am running program RPRPOSTD (Transfer to FI) which creates FI document for AP process. Now when i check in PRRW for one posting run number i could see for one employee FI doc is not created. Its in error status. How can i get the exact prob of

  • Sqlloader: how to insert -ve value into table

    hi.. i had problem during loading. The error is Record 1: Rejected - Error on table FILE01, column AMOUNT. ORA-01722: invalid number For AMOUNT, the datatype is number(20,2). here is my .ctl LOAD DATA INFILE 'file1bp0103.txt' BADFILE 'file01.bad' APP