Help to rebuild a badly formed Index.xml file

From time to time, I receive Numbers documents whose Index.xml file may be read by several programs but which can't be deciphered by Numbers itself.
My guess is that for some reason, Numbers built a wrong instruction.
Of course, it's annoying because many users don't backup their documents or use a wrong protocol to backup.
Never replace an old backup by a new one before checking that the new one is usable is the rule to apply.
Given that, I built an AppleScript which may help us to rebuild from scratch such a clobbered document.
Running it upon such a file creates a folder in the Documents folder.
In this new folder we will find several text files describing every sheet embedded in the document.
In each of these file, it inserts tags marking delimiting the descriptors of every table.
It also insert pairs of return characters between every cell descriptor.
Last not least, it completes the codes describing references to other tables or to other sheet or to other table of other sheet by their "standard" description, the one which is used in the true formulas.
Useful information, as often in AppleLand, consecutive objects are numbered starting from zero when we are accustomed to number them starting from 1.
sf:col="0" means column number(0+1) which is column A
sf:row="0" means row number (0+1)
Given all these informations, rebuilding a document is quite easy (but it requires a lot of time and is boring for eyes).
As the script is long and as I am afraid of the oddities which may be introduced by the forum's message parser, the script is not available here but on my iDisk.
<http://idisk.me.com/koenigyvan-Public?view=web>
Download:
ForiWork:For_Numbers:découpe_Index_deNumbers.zip
I apologize but given a bug of MacOS X 10.5.x, using the script under this operating system is less comfortable than it is under 10.4.x.
Yvan KOENIG (from FRANCE mardi 26 août 2008 16:16:46)

HI Balaji,
Below is the sample xml file which i have saved as test.xml and placed it @ D: drive
Test.xml:
<employee>
<emp>
<eno>1</eno>
<ename>Test1</ename>
</emp>
<emp>
<eno>2</eno>
<ename>Test2</ename>
</emp>
<emp>
<eno>2</eno>
<ename>Test2</ename>
</emp>
</employee>
Goto Topology >Expand Technologues>right click on XML and select new data source
in Defination Tab, provide the physical architecture name
in JDBC Tab, provide the below details
JDBC Driver: com.sunopsis.jdbc.driver.xml.SnpsXmlDriver
JDBC URL: jdbc:snps:xml?f=d:\test.xml&d=test.dtd&re=employee&s=TEST&ro=false
Save it
Click on Test Connection and again click on test, it should show test connection as "Successfully Test"
Hope this may helps you
Regards,
Phanikanth

Similar Messages

  • Numbers 09 not working - I can open the program but only a few files are available, missing blank, checklist and many others. e.g  when I click on a file I get this error: The document "nmbtemplate is invalid. The index.xml file is missing. help.

    Please let me know what I can do to get my Numbers (iWork 09) working properly again.
    Here is what is going on:
    Numbers in iWork 09 not working can't access Blank, Checklist and many other files within Numbers.   I can open the program but only a few files are available. When I click on the file (which also has no icon just the name of the file) this warning appears:
    The document "Blank.nmbtemplate" is invalid.  The index.xml file is missing.
    I recently had to get a new hard drive installed and had the system upgraded and more memory put in by a Mac certified specialist recommended to me from the Apple store in Northbrook because this was the 3rd time my drive went bad but this time it was to old (I got the IMAC- in 2007) and the Apple store could no longer work on it this time so they recommended a few places that had certified Mac specialists.  Since then Numbers is not working right.
    I'm sure it's something simple to fix, but I've tried re installing it and that didn't work.  Appreciate any help.
    Thanks
    AppMare

    There is one way its getting fixed. Once I update my Adobe Illustrator CC to Adobe Illustrator CC 2014 it is further allowing me to go into the system folder and allocate the font to the file so that it can replace it. My only concern now is that our MAC partners who will receive these files back from us have Adobe CS6. We will down save it to CS6 but I hope they won't experience any font issues because of us using CC 2014? Any light you can shed on this?

  • I saved a Pages doc yesterday and today I can't open it because I get a message that the doc is missing an index.xml file. Help!

    I saved a Pages doc yesterday and today I can't open it because I get a message that says "can't open doc because an index.xml file is missing."  Help!

    Pages v5 documents do not have an internal index.xml file. When you attempt to open one of these with the older Pages '09, you will get that dialog. Double-click the document icon, or right-click, and open with Pages v5 to access the document contents.

  • I am trying to open a document I saved on a previous version of Pages, but ever since I updated, I get a message: "couldn't be opened: the required index.xml file is missing". Can anyone help me here?

    I am trying to open a document I saved on a previous version of Pages, but ever since I updated, I get a message: "couldn't be opened: the required index.xml file is missing". Can anyone help me here?

    Check this thread with possible answer from PeterBreis
    Pages & Mavericks - "The required index.xml file is missing."
    What can I do to open a pages file she I get this message"the required index.xml file is missing" ?

  • Need to generate a Index xml file for corresponding Report PDF file.

    Need to generate a Index xml file for corresponding Report PDF file.
    Currently in fusion we are generating a pdf file using given Rtf template and dataModal source through Ess BIPJobType.xml .
    This is generating pdf successfully.
    As per requirement from Oracle GSI team, they need index xml file of corresponding generated pdf file for their own business scenario.
    Please see the following attached sample file .
    PDf file : https://kix.oraclecorp.com/KIX/uploads1/Jan-2013/354962/docs/BPA_Print_Trx-_output.pdf
    Index file : https://kix.oraclecorp.com/KIX/uploads1/Jan-2013/354962/docs/o39861053.out.idx.txt
    In R12 ,
         We are doing this through java API call to FOProcessor and build the pdf. Here is sample snapshot :
         xmlStream = PrintInvoiceThread.generateXML(pCpContext, logFile, outFile, dbCon, list, aLog, debugFlag);
         OADocumentProcessor docProc = new OADocumentProcessor(xmlStream, tmpDir);
         docProc.process();
         PrintInvoiceThread :
              out.println("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>");
                   out.print("<xapi:requestset ");
                   out.println("<xapi:filesystem output=\"" + outFile.getFileName() + "\"/>");
                   out.println("<xapi:indexfile output=\"" + outFile.getFileName() + ".idx\">");
                   out.println(" <totalpages>${VAR_TOTAL_PAGES}</totalpages>");
                   out.println(" <totaldocuments>${VAR_TOTAL_DOCS}</totaldocuments>");
                   out.println("</xapi:indexfile>");
                   out.println("<xapi:document output-type=\"pdf\">");
    out.println("<xapi:customcontents>");
    XMLDocument idxDoc = new XMLDocument();
    idxDoc.setEncoding("UTF-8");
    ((XMLElement)(generator.buildIndexItems(idxDoc, am, row)).getDocumentElement()).print(out);
    idxDoc = null;
    out.println("</xapi:customcontents>");
         In r12 we have a privilege to use page number variable through oracle.apps.xdo.batch.ControlFile
              public static final String VAR_BEGIN_PAGE = "${VAR_BEGIN_PAGE}";
              public static final String VAR_END_PAGE = "${VAR_END_PAGE}";
              public static final String VAR_TOTAL_DOCS = "${VAR_TOTAL_DOCS}";
              public static final String VAR_TOTAL_PAGES = "${VAR_TOTAL_PAGES}";
    Is there any similar java library which do the same thing in fusion .
    Note: I checked in the BIP doc http://docs.oracle.com/cd/E21764_01/bi.1111/e18863/javaapis.htm#CIHHDDEH
              Section 7.11.3.2 Invoking Processors with InputStream .
    But this is not helping much to me. Is there any other document/view-let which covers these thing .
    Appreciate any help/suggestions.
    -anjani prasad
    I have attached these java file in kixs : https://kix.oraclecorp.com/KIX/display.php?labelId=3755&articleId=354962
    PrintInvoiceThread
    InvoiceXmlBuilder
    Control.java

    You can find the steps here.
    http://weblogic-wonders.com/weblogic/2009/11/29/plan-xml-usage-for-message-driven-bean/
    http://weblogic-wonders.com/weblogic/2009/12/16/invalidation-interval-secs/

  • I can't open a file on Pages'09 4.1    I get  window that says "The required index.xml file is missing."  How do I get this file open?

    I have a file that I havel been adding to for years. I opened it a week ago but today I tried and I got the window message
    "the required index.xml file is missing"  How do I get this to open?
    I have Pages '09  4.1  Not sure when that was put on or updated.
    Thanks for any help you can give
    Teacher72

    http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=308&mforum=iworktips ntrick
    Are you sure you haven't upgraded Pages on your Mac to Pages 5?
    Check your Applications folder and the Applications/iWork folder. You may have 2 versions on your Mac.
    Peter

  • HT202879 How do I fix "the required index.xml file is missing?" when opening Pages documents?

    I can't open any documents from my son's iPad.  Error message: the required index.xml file is missing.  How do I fix this error so that I can open his Pages documents?  Before I ran the latest update as prompted when I opened Pages, I WAS able to open and view the document.
    I did try restoring Pages using my Time Machine, but it still won't open the Pages document.
    I have a brand new iMac that I just set up last week. 
    Son uses iPad at school, so we update when the school asks him to update.  Will doublecheck his version of Pages but it should be pretty recent.
    In general I don't like using Pages because it lacks a lot of the backwards / forwards compatibilty of Microsoft Word. 
    However, it is what my son uses with the iPad. 
    Most of the time I have to export his files as WORD files because we never seem to have compatible versions of Pages between the iPad and the desktop iMacs. 
    Where can I recommend that Apple improve its compatibility issues with Pages?
    This week I am going to receive a new iPad at my school (I am a teacher) but I am 100% certain that it will not be compatible with the older version of Pages on my classroom iMac.  I also avoid using Keynote for the same reason.  I have 15 year old Power Points that I can still open, but I am hesitant to switch over to Keynote because I want to be able to open my files any time, any where.
    Please advise.

    Not sure what v5 is. Someone helped me and opened it through Pages 5.2, through the program, rather than the Finder. Thanks for making a suggestion!

  • "Document name invalid.  The index.xml file is missing"

    I have OSX Yosemite 10.10 and am having a problem just today in Numbers.  A file that I have saved to my desktop and opened daily to input data since the first of November won't open.  It gives me a message that the file is invalid, the "index.xml file is missing"   Running Numbers '09 version 2.3   Have been run ing Yosemite 10.10 for quite some time.  How can I open/retrieve the file?

    I am having the same problem.  I am also running Yosemite 10.10.  The last I accessed the file was on November 13, 2014. I have been noticing that the layout /view of the file with the program has been a little different for about a week before then.  I have not upgraded to the newer version although it is constantly asking to upgrade. Still running Number '09, Version 2.3. I am very concerned as the file I am accessing contains critical records that go back for several years. I am not having problems opening .numbers files that are a couple of years old. Thanks for any help.

  • Iweb 1.1.2 won't open, error message, index.xml file is missing

    i am using version 1.1.2
    i opened iweb and made a very very minor correction.
    i went into 'inspector' and saw that 'make all links inactive'
    was checked so i unchecked. i published and when i opened it again
    it was checked. so i made an extremely minor change on one of my pages....
    changed the angle of a drop shadow 1 degree....then published again.
    now iweb will not open. i get an error message that says
    'index.xml file is missing. none of my copies of the domain file will
    open. none. including old copies that i copied to a disc. all domain files
    whether on the hd or exterior drives get the same error message.
    i'm guessing that some how that file got corrupted.
    how do i install iweb again and if so how do i retrieve all my work?

    I't not iWeb that got damaged but the domain file. The index.xml file is inside the domain.sites file that's located in your Users/Home/Library/Application Support/iWeb folder. Do you have a backup of that file you can revert to?  If so then do it.  Otherwise a long shot but try the following:
    close iWeb.
    delete the iWeb preference file, com.apple.iWeb.plist, that resides in your Home/Library/Preferences folder.
    go to your Home/Library/Caches/com.apple.iWeb folder and delete its contents.
    launch iWeb and try again.
    If that doesn't help continue with:
    move the domain file from your Home/Library/Application Support/iWeb folder to the Desktop.
    launch iWeb, create a new test site, save the new domain file and close iWeb.
    go to the your Home/Library/Application Support/iWeb folder and delete the new domain file.
    move your original domain file from the Desktop to the iWeb folder.
    launch iWeb and try again.
    OT

  • Index.xml file is missing

    I am routinely experiencing problems with both .numbers and .pages since I upgraded to the "free" Mavericks OS.  For some of the files, the posts within this forum have been helpful, but for one file (.numbers) I haven't found a solution.  I am running OS X Mavericks (10.9.1) on an iMac (late 2009 model) with Numbers 3.0.1.
    When I double-click on the file, I get the "the index.xml file is missing".  When I try "Open With" command, I get 2 choices: Numbers (default) (3.0.1) and Numbers 2.1.  Clicking on the (3.0.1) prompt results in the following message "You need a newer version of the Numbers to open this spreadsheet".  Clicking on the (2.1) prompt just gets me the same "index.xml" error message.
    I have used "Show Package Contents" which indicates that I have an index.xml.zip file, but uncompressing the .zip file doesn't seem to provide any further solution options.
    Thanks.
    Ty

    right click on the icon, choose open with, click the default and it will open.. not sure why this works instead of double clicking
    also double check to make sure the file is not trying to open in the wrong version of the application

  • How can i convert  my invoice which is in smart forms to xml file

    how can i convert  my invoice which is in smart forms to xml file.

    Hi Anil,
    Please go through this link:
    1. XSF stands for XML for Smart Forms. It is important to contrast XSF with .... The eDocx script engine can provide a script to convert the file format to an 
    http://www.ossincorp.com/Black_Box/Black_Box_4.htm
    please rewrds if found helpful.
    Regards,
    Alok

  • The dreaded "The required index.xml file is missing." message...

    Using Pages '09 on a 10.6.8 iMac. My file is about 3.6MB in size, have been editing it for a few months now. All of a sudden I get:
    "JournalManuscriptV12.pages" couldn't be opened.
    The required index.xml file is missing.
    So I uncompress the .pages file, and yes index.xml is there, along with Preview.pdf (which opens and has all my updates). I uncompress an older working version of my .pages file and get its index.xml file and stick it into the current one, recompress it and rename it to .pages, but it results in the same error in Pages. Ditto with the Preview.pdf file.
    Is there any way to "sanitize" the index.xml file so Pages will accept it? I'm looking at potentially a week's worth of work down the drain as I just discovered my TM backup drive is toast.

    * * * * *   S O L U T I O N   * * * * *
    Here's how I just repaired my .pages document for which Pages '09 proclaimed:
         The required index.xml file is missing
    1. Rename MyDocument.pages to MyDocument.zip
    2. Uncompress MyDocument.zip by double-clicking it in the Finder
    3. This results in a folder named MyDocument with NO extension
    4. Add the .pages extension onto the folder filename: MyDocument.pages
    5. Double-click MyDocument.pages in the Finder. It opens!
    Not sure what's going on here, but it looks like Pages sometimes chokes on the auto-uncompress of the file into a folder when opening it. This has been an ongoing problem with Pages since its inception.
    Hope this helps others stuck in this situation. Just saved myself a week of work! ;-)
    -- Transini

  • "The required index.xml file is missing."

    Hello everyone !
    I created a pages files a couple of days ago.
    I modified it successfully yesterday, by adding some jpeg files in it.
    But, now i can't open it.
    The massage is "The required index.xml file is missing."
    Although I still can have a "quick look" at my file.
    This is the first and only time I've had this.
    What can I do ?
    Thank you for your concern.

    speckel wrote:
    I tried using the .zip trick, but it doesn't work...
    May you explain what means "it doesn't work".
    I know what means "it works" : we get a package in which we may find the Index.xml file
    "It doesn't work" may means :
    (1) double click the zip file can't expand the file
    (2) it expands it but there is no index.xml file in the resulting package
    (3) it expands, there is an index.xml file but Pages can't use it
    It's a bit odd but we get the same error message in the three cases
    In case 1, your unique help is the pdf displayed in Preview.
    In case 2 & 3, you may retrieve your picture files if you inserted some of them.
    In case 3, sometimes, we may extract the text contents when a preview.pdf isn't available but for you, it's unneeded as the preview is available. So, you may extract the text component with a Copy/Paste action.
    CAUTION : I hope that this stupid accident will help you to understand that computers aren't perfect tools. When we use them, the main rule is *_keep incremental (chronological) backups_*. This will give you the ability to retrieve an usable document among a set of consecutive copies.
    You may achieve this goal with :
    (1) my free autosave script (dedicated to iWork)
    (2) the application ForeverSave which apply to every applications but is not free (to get incremental backups).
    Yvan KOENIG (VALLAURIS, France) lundi 20 décembre 2010 16:02:05

  • Hello; I am using Numbers '09 version 2.1 (436). I tried unsuccessfully to upgrade at one point. Now can't open existing documents. Message "The index.xml file is missing".

    Hello; I am using Numbers '09 version 2.1 (436). I tried unsuccessfully to upgrade at one point. Now can't open existing documents. Message "The index.xml file is missing". How can I correct this ?
    Thank you
    Tom

    I't not iWeb that got damaged but the domain file. The index.xml file is inside the domain.sites file that's located in your Users/Home/Library/Application Support/iWeb folder. Do you have a backup of that file you can revert to?  If so then do it.  Otherwise a long shot but try the following:
    close iWeb.
    delete the iWeb preference file, com.apple.iWeb.plist, that resides in your Home/Library/Preferences folder.
    go to your Home/Library/Caches/com.apple.iWeb folder and delete its contents.
    launch iWeb and try again.
    If that doesn't help continue with:
    move the domain file from your Home/Library/Application Support/iWeb folder to the Desktop.
    launch iWeb, create a new test site, save the new domain file and close iWeb.
    go to the your Home/Library/Application Support/iWeb folder and delete the new domain file.
    move your original domain file from the Desktop to the iWeb folder.
    launch iWeb and try again.
    OT

  • I have been working on the same numbers file for the past few weeks.  The last time I opened it was 1 week ago.  Today when I tried to open it I am unable and getting a message that the file is invalid and the index.xml file is missing.

    I have been working on the same numbers file for the past few weeks.  The last time I opened it was 1 week ago.  Today when I tried to open it I am unable and getting a message that the file is invalid and the index.xml file is missing. 

    Hi Tracie,
    I upgraded to Maverick OS X 10.9.5, numbers spreadsheet is saved. Upon re-opening, it appears to be frozen, a warning "file is invalid as index.xml file is missing". I checked, and the file is not "locked". This appears to occur only with using the new numbers app. When I open previous spreadsheets from old iWorks, no such problem occurs.
    How did you resolve your problem?
    Would appreciate any help here.
    Thanks,
    Deehay

Maybe you are looking for

  • Why doesn't tmobile work at ORD?

    Since upgrading to OS X 10.7.3, logging onto wifi networks has been much more difficult. At ORD, at least in the United Club, it is impossible using the T-Mobile network. Whenever I connect to the tmobile network, it opens the new (supposedly-quasi-a

  • Dropped lumia 520 in water and it wont turn on

    One week ago I dropped my phone in fresh water and it was completely submersed for about 2-3 minutes. I put it in a bag of uncooked rice for a couple of days and when I took it out it worked perfectly fine. However when it died I could not charge the

  • ViewObjectImpl never called? NavigationListener HowTo?

    Hi, I try to implement add a navigation listener to a ViewObjectImpl but I noticed that the class is never called? JDev 10.1.2 + JClient I have a panel bound to the ViewObject. 3 rows are retrieved I traced my program and when 3 rows are retrieved, t

  • Hyperlink font color

    This seems like it must be a simple one but I am out of time and can't figure out how to set the font color of a hyperlink. The font color in the CSS rule is white. When I change it to a hyperlink it changes to blue. I want it white. TIA

  • HT1338 sound is dead

    Hi guys, After installing the security update to OSX 10.6.8, my audio seems to have died. It's weird cause applications like iTunes, web video don't have sound, but system sounds like the empty trash sound and alerts seem to work. Can anyone shed som