Document from DOMParser vs. from DocumentBuilder

Dear all,
Can anyone tell me why the code below shows such a weired behavior? The XML file used is:
<?xml version="1.0" encoding="ISO-8859-1"?>
<wsml xmlns="myNamespace#">
<ontology>
<axiom>
<definedBy>
<molecule>
</molecule>
</definedBy>
</axiom>
</ontology>
</wsml>
/* The following code prints Nb. nodes= 0 */
DOMParser domParser = new DOMParser();
domParser.setFeature("http://xml.org/sax/features/validation", true);
domParser.setFeature("http://apache.org/xml/features/validation/schema",true);
domParser.setProperty(
"http://apache.org/xml/properties/schema/external-schemaLocation",
"myNamespace# myXMLSchema.xsd");
domParser.parse("examples/test.xml");
Document doc = domParser.getDocument();
NodeList exprs = XPathAPI.selectNodeList(doc, "//definedBy/*");
System.out.println("Nb. nodes= " + exprs.getLength());
/*while the following code prints Nb. nodes= 1 */
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
dbf.setIgnoringElementContentWhitespace(true);
DocumentBuilder db = dbf.newDocumentBuilder();
Document doc = db.parse(new File("examples/test.xml"));
NodeList exprs = XPathAPI.selectNodeList(doc, "//definedBy/*");
System.out.println(exprs.getLength());
Could anyone please explain to me the difference between the org.w3c.dom.Document returned by domParser.parse("examples/test.xml"); and the Document returned by db.parse(new File("examples/test.xml"));
Thank you!

Thanx, but there is in fact no XPATH error. The difference was somewhere else. It had or still does something to do with the namespace handling.
If I have
domParser.setFeature("http://xml.org/sax/features/namespaces",false); the XPATH query works fine, however I cannot parse the XML document, as the DOMParser does not find my root element due to the lack of namespace identification. however if i chose
domParser.setFeature("http://xml.org/sax/features/namespaces",true); the XPathAPI.selectNodeList call returns no nodes, but the XML document is parsed...
In fact the selectNodeList method can be provided with a Node namespaceNode, that would contain the namespace definitions. however i didnt find yet how to do that properly!
I tried it by giving the document itself or the root (doc.getDocumentElement()) but it does not do anything... ANY IDEA?
Thanx

Similar Messages

  • Heap space error while creating XML document from Resultset

    I am getting Heap space error while creating XML document from Resultset.
    It was working fine from small result set object but when the size of resultset was more than 25,000, heap space error
    I am already using -Xms32m -Xmx1024m
    Is there a way to directly write to xml file from resultset instead of creating the whole document first and then writing it to file? Code examples please?
    here is my code:
    stmt = conn.prepareStatement(sql);
    result = stmt.executeQuery();
    result.setFetchSize(999);
    Document doc = JDBCUtil.toDocument(result, Application.BANK_ID, interfaceType, Application.VERSION);
    JDBCUtil.write(doc, fileName);
    public static Document toDocument(ResultSet rs, String bankId, String interfaceFileType, String version)
        throws ParserConfigurationException, SQLException {
            DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
            DocumentBuilder builder = factory.newDocumentBuilder();
            Document doc = builder.newDocument();
            Element results = doc.createElement("sims");
            results.setAttribute("bank", bankId);
            results.setAttribute("record_type", "HEADER");
            results.setAttribute("file_type", interfaceFileType);
            results.setAttribute("version", version);
            doc.appendChild(results);
            ResultSetMetaData rsmd = rs.getMetaData();
            int colCount = rsmd.getColumnCount();
            String columnName="";
            Object value;
            while (rs.next()) {
                Element row = doc.createElement("rec");
                results.appendChild(row);
                for (int i = 1; i <= colCount; i++) {
                    columnName = rsmd.getColumnLabel(i);
                    value = rs.getObject(i);
                    Element node = doc.createElement(columnName);
                    if(value != null)
                        node.appendChild(doc.createTextNode(value.toString()));
                    else
                        node.appendChild(doc.createTextNode(""));
                    row.appendChild(node);
            return doc;
    public static void write(Document document, String filename) {
            //long start = System.currentTimeMillis();
            // lets write to a file
            OutputFormat format = new OutputFormat(document); // Serialize DOM
            format.setIndent(2);
            format.setLineSeparator(System.getProperty("line.separator"));
            format.setLineWidth(80);
            try {
                FileWriter writer = new FileWriter(filename);
                BufferedWriter buf = new BufferedWriter(writer);
                XMLSerializer FileSerial = new XMLSerializer(writer, format);
                FileSerial.asDOMSerializer(); // As a DOM Serializer
                FileSerial.serialize(document);
                writer.close();
            } catch (IOException ioe) {
                ioe.printStackTrace();
            //long end = System.currentTimeMillis();
            //System.err.println("W3C File write time :" + (end - start) + "  " + filename);
        }

    you can increase your heap size..... try setting this as your environment variable.....
    variable: JAVA_OPTS
    value: -Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m

  • How to create an XML document from a String.

    Can anyone help,
         In the Microsoft XML Document DOM there is a load function load(string) which will create an XML document, but now we are switching to Java and I do not know how to create and XML document from a string, this string �xml document� is passed to my program from a webservice and I need to read several xml elements form it in a web server.
    This string is a well formatted XML document:
    <?xml version="1.0" encoding="UTF-8"?>
    <Countries NumberOfRecords="1" LanguageID="en-us">
         <Country>
              <CountryCode>AU</CountryCode>
              <CountryName>AUSTRALIA</CountryName>
         </Country>
    </Countries>

    Thanks PC!
    I made it work using:
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    factory.setIgnoringComments(true); // We want to ignore comments
    // Now use the factory to create a DOM parser
    DocumentBuilder parser = factory.newDocumentBuilder();
    //TransformThisStringBuffer is a string buffer wich contain the 'XML document (String)'
    InputStream in = new ByteArrayInputStream(TransformThisStringBuffer.toString().getBytes());
    // Parse the InputStream and build the document
    Document document = parser.parse(in);
    But which one is faster InputSource or InputStream, were would you put the "new InputSource(new StringReader(yourString))" in the above code?

  • DOM - create new document from part of other document

    Hi.
    How to create a document from part (sub tree) of the other document?
    document 1.
    <?xml version="1.0" encoding="UTF-8"?>
    <root>
    <meta1>blaa blaa</meta1>
    <meta2>blaa2 blaa2</meta2>
    <data>
    <info>
    <name></name>
    </info>
    </data>
    </root>
    document 2 shuold be:
    <?xml version="1.0" encoding="UTF-8"?>
    <data>
    <info>
    <name></name>
    </info>
    </data>
    Or can I just remove root and meta elements?

    Something like this:DocumentBuilder db = // create a DocumentBuilder;
    Document newDoc = db.newDocument();
    Node newRoot = // the Element you want to be the root of the new document;
    Node root = newDoc.adoptNode(newRoot);
    newDoc.appendChild(root);

  • Open Document from a webi report

    Hi
    I am trying to open the webi document from a report and the data source is BW , can u guys help me out and give me the syntax
    thanks

    Hello,
    There no fine-grained control over the "Document Properties" frame specific to visibility of the "Created by:" field displayed, either in the Java Report Panel or DHTML Interactive Editor Extension Points. 
    You can try editing the Interactive Editor JSP file that controls that panel - it's relatively straightforward - but that would take your deployment out of support.
    One way for definiteness would be - instead - to modify the "createdby" Web Intelligence document property to something else, using ReportEngine Java SDK:
    documentInstance = reportEngine.openDocument(id);
    properties = documentInstance.getProperties();
    properties.setProperty(PropertiesType.AUTHOR, "pookie");
    documentInstance.setProperties(properties);
    documentInstance.save();
    Of course, this isn't what you want if you want to keep the "Created by:" field, but merely prevent it from being displayed in the viewers.
    Sincerely,
    Ted Ueda

  • Pages 2.0.2 doesn't open Pages documents from ipad

    Pages 2.0.2 doesn't open Pages documents from ipad 2. Document succesfully transferred as Pages document to computer, but Pages 2.0,2 wouldn;t open it. Version too old?

    Pages 2 is iWork '06, two versions behind what the iOS Pages creates. You need to use Pages '09 which you can purchase from the Mac App Store as a stand-alone application or a retail box of the iWork '09 suite.

  • Open Pages documents from an older version

    I need to open Pages documents from an older version of Pages that I saved to an external drive from a computer that I no longer have access to.  My current operating system is 10.7.5 and I can't upgrade it right now.  I see that Pages 5.0 requires 10.10 or higher and I can't find older versions to download and from what I've read, it doesn't sound like I'd be able to open the old documents with the new version anyway.  I really need these documents. What can I do?

    I found it helpful to convert all my old Pages '08 files to .doc files.  They can be opened by the new version of Pages.
    Since the new version of Pages is no longer back compatible, and so not good for anything you want to keep for a long time, you might consider using an open source word processing application like Libra Office.  That's what I had to do.  After seven years of being a happy Pages user - archiving thousands of files in Pages -Apple has abandoned us.  I no longer think it is wise to use the new Pages and then five years down the road (or sooner) not to be able to open them in a newer version.
    If you would like a quick way to convert your Pages '08 files to .doc, let me know.

  • Open document from interactive report

    Application Express version 4.0.2.00.07.
    In apex I am trying to accomplish the following:
    1. create a link to a pdf or Word document stored on local network using the file browse button.
    2. store the link to that file in my table but not store the actual document in the oracle table.
    3. open the document from link in interactive report.
    My dba does not want to store anymore documents into oracle because of performance issues we are experiencing with current applications that do this. Does anyone know the where to find sample code that will accomplish this task or will load the linked document into the oracle table but delete the document from the blob when the document is closed.

    You're probably looking to use the BFILE functionality - a pointer to a LOB on the filesystem.
    Try looking at some of the following sources for guidance
    http://docs.oracle.com/cd/B10501_01/appdev.920/a96591/adl12bfl.htm
    APEX BFILE
    http://monkeyonoracle.blogspot.com.au/2009/10/storing-images-outside-oracle-xe-with.html
    Scott

  • Resetting a clearing document from a previous financial year - Vendor Payment

    Finance team needs to reset a cleared item from a previous financial year. The cheque was
    never presented.  They are unable to create a new invoice to pay the vendor without this cheque going
    through and being processed.
    However, when using transaction code FBRA they receive an error message
    "clearing document from alternative fiscal year-. Message no F5A258".

    There are two option
    1. You Open the Close Period, or change the reversal code, which can allow alternative posting in the current period.
    2. Go to the IMG - Controling - General Controlling - Change Message control. Give the message application area and then the number and turn it off. (Tcode : OBA5)
    With regards,
    Uttam Maity

  • When I open a pdf document from my dropbox to view it, the document shows up blank, even though it is filled out. This also happened with pdf documents that have been e-mailed to me.

    When I open a pdf document from my dropbox to view it, the document appears blank, even though I know the information is actually there. This also has happened with pdf documents that have been e-mailed to me, then opened to view and they are blank?? Why are they showing up blank?

    When I open emails with PDFs I click on the attachment (doing this all on my iPad) it gives me the option to "open in iBooks", I accept then after that the document is sucked into my iPad but I can't do anything with the PDF after that.  Where is the actual file on my iPad? Why can't I email or send these PDFs to my cloud (Dropbox)?
    It's like once they go into iBooks they're stuck forever.

  • In finder, or say anything else such as downloaded files, I have to push open with in order to open the file. If I simply double-click on a document from finder, it does not open.

    Hey guys. I have this problem where when I try to open say a document from finder, I have to push "open with."
    Simply double-clicking does not work. I would greatly appreciate it if anybody could help.
    Another unrelated problem is that when I push to open itunes, it says that it is on a locked disk.
    Thanks

    Select a particular download file. Press COMMAND-I to open the Get Info window.  In the Open With section choose the desired default application from the dropdown menu then click on the Change All button.
    For .dmg files use DiskImageMounter (System/Library/CoreServices/ folder.)
    For .zip files use Archiver - same folder as above - or download TheArchiver - MacUpdate or CNET Downloads.

  • Error on load: System.IO.IOException: The process cannot access the file : error in event viewer when users want to view documents from this third party deployed scan solution

    Error on load: System.IO.IOException: The process cannot access the file
    '\\server1\SCANSHARED\.pdf' because it is being used by another process.
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
       at System.IO.File.WriteAllBytes(String path, Byte[] bytes)
       at abc.Scan.Layouts.ICC.Scan.View.Page_Load(Object sender, EventArgs e)
    I faced this  error in event viewer  when users want to view documents from this third party deployed scan solution
    here I have two WFS servers  and they configured with load balancing in F5 .
    when I enable both servers in F5 I receive this error messages in 2nd server,
    when users want to view documents
    adil

    Do you have antiVirus installed on the sharepoint servers?
    These folders may have to be excluded from antivirus scanning when you use file-level antivirus software in SharePoint. If these folders are not excluded, you may see unexpected behavior. For example, you may receive "access denied" error messages when files
    are uploaded.
    Please follow this KB and exclude the folders from Scanning.
    http://support.microsoft.com/kb/952167
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • How to remove document from Flash drive after printing from a PC

    Hi All,
    Here's my problem: Today I needed to print an MS Word file at a printshop, so I saved the document onto my Flash drive and took it to the shop. There, the staff printed the document from a PC and handed the drive back to me.
    Now, back at home, I want to delete this document from the Flash Drive. I plug in the drive, select the document and drag it to the trash. But then I get this message: " The operation cannot be completed because you do not have sufficient privileges for document X".
    This is a document I created from scratch, so I should have read/write privileges, yet the document on the drive is Read Only.
    I went back to the shop, and they get the same message.
    If I try to use disk utility to erase the disk, it appears as an MS-DOS FIle System (FAT 16) disk, and the erase buttons are "greyed out".
    How can I erase this document? Or how I can I reformat the drive?
    Any help much appreciated!~
    12 iBook G4,1.2 GHz, 768 RAM   Mac OS X (10.4.7)  

    I think I just solved my own problem. Just tried pressing the option and command keys at the same time while dragging the document into the trash and now it's gone. For good, I hope....Phew!
    12 iBook G4,1.2 GHz, 768 RAM   Mac OS X (10.4.7)  

  • How do I get rid of the Microsoft Setup Assistant loop? I migrated my software/documents from another laptop so don't have the disk to reinstall. Please help! Can't open any Microsoft Office software, like Word, and stuck in a loop?

    I migrated my software/documents from another laptop so don't have the disk to reinstall. Please help! Can't open any Microsoft Office software, like Word (for 2008), and stuck in a loop?
    Whenever I select Word Microsoft Setup Assistant appears, asks for feedback, then after selecting okay (both on saying yes or no to feedback) goes on to a registration page. When I click on this it says I've already registered so I just click okay, and then move on to a update page. After this, if I click on Word, the process repeats itself.
    As I said, I don't have the disk to reinstall, and can't find the Office Settings to delete as many pages have suggested I should try. Safe Boot restarting also hasn't worked... Really stuck and need Word very soon for work.
    If you can help, that would be great, and feel free to ask any questions about the situation as I'm not an expert here.
    Cheers,
    Jack

    First, export your contact from iCloud.com and save them on your computer in a safe spot some where (like you desktop).  Use this to help you do this: http://support.apple.com/kb/PH3606
    Next, on both of your devices, go to Settings > iCloud and turn on contacts and select Merge. Then turn off contacts and select 'Delete form my [device]' when prompted.
    Now go back to iCloud.com and select a contact (yes they will all be messed up again) and select Command+A on a Mac or Control+A on a PC to select all of the contacts.  Tap the delete key on your keyboard (or right click /control click a contact and select delete).
    You iPhone, iPad and iCloud.com should not be empty for contacts.
    Go back to Settings > iCloud on both devices and turn on contacts again (you should not see merge this time).
    Next, go back to iCloud.com and import your contacts (those exported .vcards).  You can either drag and drop them into the empty contacts list in your web browser, or you can use the gear icon to import.
    You cleaned up contacts should import correctly into iCloud.com and sync to both of your devices.
    Good luck.

  • Documents from Mac added to iCloud do not show up in Pages on iPhone 4S

    Synopsis: Dcouments added to iCloud through Safari on Mac do not show up in Pages on iPhone 4S. New documents created in Pages on iPhone do not show up in iCloud. I expect the doucments to appear on my iPhone soon after uploading them from my Mac to iCloud through Safari, and to appear in iCloud soon after switching to the document listing in Pages and leaving the app. Several hours passed by without transfer happening, and I have waited a day and reconnected to Wi-Fi to wait several more hours. Still nothing shows up either in Pages on iPhone, or in iCloud in Safari on Mac. They are listed with their sizes and extensions (.pages or .pages-tef) in the iPhone Settings > iCloud > Storage & Backup > Manage Storage > Pages, though they don't seem selectable from there.
    Software versions and Settings:
    Mac
    Mac OS X 10.7.2 (Lion)
    Safari 5.1.1
    Pages 4.1
    System Preferences > iCloud: signed in; everything selected, except Photo Stream (no iPhoto).
    Everything seems to work, except Find My Mac is flakey.
    iPhone 4S
    iOS 5.0
    Pages 1.5 (417) [no other iWork apps]
    Documents:
    the defualt "Getting Started";
    a test document with default name "Blank" and content with the word "Testing", shown with upwards arrow in upper right corner; tried renaming to "Just testing", no transfer resulted.
    Plus button + offers: Create Document; copy from iTunes, iDisk, WebDAV; no iCloud (probably because it's supose to be auto);
    Settings > Pages:
    Use iCloud: ON
    Restore: OFF; I have tried this, it automatically turns itself off after restarting Pages. No obvious changes result in Pages.
    Settings > Wi-Fi: ON, connected to a network; tried several networks around town, as well as at home with a Time Capsule router.
    Settings > iCloud:
    everything ON, except Photo Stream;
    Documents & Data:
    Documents & Data: ON
    Use Cellular: ON; also tried OFF initially.
    Storage & Backup:
    Manage Storage > Pages:
    three documents in iCloud are listed, one of which I had created before iCloud on iPhone 3GS, and deleted from iPhone 4S after documents added to iCloud from Mac weren't showing up as expected;
    their sizes are given;
    suffixes are .pages for the two created on Mac, and .pages-tef for the one created on iPhone 3GS (before iCloud);
    iCloud Backup: ON; successfully backs up everyday;
    Email works, contacts are synced, calendar works, and everything seems fine except access to documents.
    Approaches:
    Software updates
    Updated all software, no further updates available. Please confirm with aforementioned version numbers.
    Add and Remove Documents
    Used Safari to add two documents to iCloud with its menu for Pages of iCloud's iWork section, one at a time. Documents were originally created in Pages on Mac, and continuously edited since then. Explicitly saved documents (Save a Version on Lion) before uploading. Documents appeared listed in web page without problem.
    Have tried deleting a document on iPhone that was originally created with Pages on iPhone 3GS prior iOS 5 as a way to jog the listing on iCloud. Listing on iCloud in Safari on Mac continues to show document deleted from iPhone. [Before deleting document, I had updated iPhone 3GS to iOS 5 and signed into iCloud a couple days before getting iPhone 4S, then immediately used the restore from iCloud feature for the iPhone 4S in the Apple retail store, updated all apps on Mac and iPhone, then deleted the document in Pages on iPhone.]
    On iCloud in Safari on Mac: deleted the two documents uploaded from Mac; added the same documents again; edited documents on Mac, then uploaded and chose "Replace documents"; removed documents again; added them again. Never showed up in Pages on iPhone, even after waiting a day.
    Have used iTunes to add the same documents to Pages on iPhone. Successfully opened documents in Pages on iPhone through plus button + > Copy from iTunes. Deleted documents from Pages's document listing, though they remain in iTunes section.
    Removed documents of same name, though older copies, from Pages in iTunes for the iPhone.
    Created a new document with Pages on iPhone, simply added one word "Testing" and then switched to document listing. New document has name "Blank" and an arrow in the upper right corner indicating it will upload next time an internet connection is established. That hasn't happened regardless of being connected to Wi-Fi and cellular for several hours. Next day, reconnected to internet with both Wi-Fi and cellular, the new dcoument "Blank" still is not in iCloud when I visit the site in Safari on Mac, and still has the arrow in the upper right corner in Pages on iPhone.
    iPhone 4S Connected to Internet
    Connected to Wi-Fi several hours each day, and cellular all day except from about 10pm to 7am when I switch it to Airplane mode. Always connected to Wi-Fi and cellular when attempting to access the documents in Pages on iPhone.
    Restart iPhone and Pages
    Have double-pressed Home button on iPhone to reveal along the bottom of screen a list of apps currently open, touched and held an icon to reveal the close badge on all icons, and selected the close badge on Pages, waited a few seconds, then started Pages again.
    Have held On/Off button until "slide to power off" appears, then powered off iPhone, waited a few seconds, then held button again to start. Have done this with Pages either open or closed, per previous note. Still no change in document listing for Pages: test document still has not gone to iCloud, documents in iCloud still have not shown.
    I think the only thing I haven't done is a complete restore.
    Question: Can anybody point out what I might have missed or haven't tried that would get the documents from iCloud to Pages and vice versa?
    I'm not looking forward to several hours of restoring, but if I must…
    TIA

    Okay, I'm not sure what finally jogged it. It seems to be finally working.
    After downloading any documents I could from iCloud to my Mac, I deleted all the documents from iCloud. I also deleted all documents from Pages on iPhone, except the original "Getting Started" document.
    I duplicated the "Getting Started" document (Pages on iPhone) and edited it by moving the butterfly to the left on the same page, then switched to the Documents view. It had the arrow in the upper right corner of "Getting Started Copy", but no progress bar and nothing showed up in iCloud.
    Then, I think I went to Settings > Pages > Use iCloud: NO. Went back to Pages and got a dialog in the Documents listing:
         You are not using iCloud
    What would you like to do with the
         documents currently on this
                        iPhone?
    Keep on My iPhone
    Delete from My iPhone
    Continue Using iCloud
    I tried keeping them, then going back and turning it back on in Pages's settings, then going back to Pages. Finally something different happened: a progress bar on the "Getting Started copy" document. It never seem to finish, and would disappear if the phone went to sleep. I tried the whole sequenece again with same result, and nothing on iCloud.
    I then tried Settings > iCloud > Documents & Data: OFF, and agreed to "Turn Off Documents" and have all documents stored in iCloud deleted, because as far as I could tell there weren't any documents in iCloud at this point anyways. I went back to Pages and the "Getting Started copy" suddenly disappeared.
    So, I went back to Settings > iCloud > Documents & Data: ON, and did the same for Settings > Pages > Use iCloud: ON. Oddly, Pages now tried to download "Getting Started copy" even though it really shouldn't have existed anymore. I tried iCloud in Safari on Mac and saw there now was a document by that name, but when selected it said "Updating…" on it. I deleted it in iCloud, and it disappeared (I think, or I deleted it) in Pages on iPhone.
    I gave up and waited a bit, maybe an hour or two.
    I made sure all the settings were how they needed to be, noticed no documents in iCloud, and only the original "Getting Started" document in Pages on iPhone. I duplicated that document, and that's when it seemed to actually work. First, the arrow in its upper right corner appeared briefly, then a progress bar appeared on it instead, then the progress bar actually moved and completed. (I think. Some indicator happened. Everything is kind of fuzzy at this point while I'm writing this and juggling a couple other technical tasks.) Then I checked iCloud in Safari on Mac and the document was there. Wow.
    So, I immediately tried uploading to iCloud from my Mac the two documents I had been trying, one at a time. Each time the document succeeded in iCloud, it suddenly appeared in Pages on iPhone. In fact, the second document began to appear in the documents listing in Pages on iPhone just before the progress bar in iCloud completed.
    I tried opening each one in Pages on iPhone, and iCloud immediately updated each one with a preview and as downloadable. I downloaded them to the Mac and they opened fine. [Admittedly, the Pages version from iCloud of the "Getting Started copy" with the moved butterfly was a little different in Pages on Mac: it had the butterfly on the previous page underneath everything; the PDF version of that document had everything correct.]
    Anyways, the document listing between iCloud and Pages on iPhone is working now.
    I thinking it might have helped to clear out all the documents in iCloud and deleting all documents in Pages for iPhone. However, be sure to at least email copies from Pages on iPhone first if you don't have any backups. I think it might also have helped to turn off Settings > iCloud > Documents & Data: OFF, so it'll send that signal to delete the documents in iCloud, even if there's already nothing there. I don't know for sure, but that's probably the way to start from scratch. Oh, and maybe wait an hour or two after that before doing anything again, then turn Documents & Data: ON, and Pages > Use iCloud: ON, and then start by creating a new document in Pages on iPhone.
    I'm just glad I didn't have to do a Restore from iTunes. And now that it's working, it's so instant between Pages on iPhone and iCloud! This is seeming like it will definitely be great, now that it's working.

Maybe you are looking for

  • How to design a form with multiple lang(Arabic and Eng) in a page

    Hi All, Could you pls help me how to design a form with multiple languages. when I set the form proprties-->Form Locale as Arabic. English text is comming in reverse and when set the FormLocale as English, Arabic text is comming in revese. Pls help m

  • Downloaded video from itunes wont transfer to pod

    downloaded video from itunes but it wont transfer to pod. I have a video ipod. It shows up in my library under Music Video. But I cant find it anywhere on my ipod. After other new music has tranfered fine.

  • The quest for real estate (USB- monitor question)

    The short question: Any advice or gotchas regarding USB->External Monitor adaptors?  Especially, if the monitor accepts both VGA and DVI, which type of adaptor would be better for performance?  Advice about brands/models is also welcome, but I live i

  • Regarding  dynamically assigning the where clause to select query

    hi,   Please send the code regarding how to dynamically assign the where clause to select query. thanks in advance

  • Cannot Start CDE in Solaris 9

    I have installed Solaris 9, including all supplement CDs. I cannot get the CDE login screen to come up. I have looked in the other forums and tried: dtconfig -e dtlogin dtlogin -daemon All with no luck. Please help. Thank you.