What are the best tools for opening very large XML files and examining the tree and confirming they are valid?

I am generating some very large XML files (600,000+ lines, 50MB+ characters). I finally have them all being valid XML and valid UTF-8.
But the files are so large Safari and Chrome will often not open them. FireFox will though.
Instead of these browsers, I was wondering if there are there any other recommended apps for the Mac for opening and viewing the XML, getting an error message if they are not valid for some reason and examing the XML tree?
I opened the file in the default app for XML which is Xcode, but that is just like opening it in a plain text editor. You can't expand/collapse the XML tree like you can with a browser, and it doesn't report errors.
Thanks,
Doug

Hi Tom,
I had not seen that list. I'll look it over.
I'm also in touch with the developer of BBEdit (they are quite responsive) and they are willing to look at the file in question and see why it is not reporting UTF-8 errors while Chrome is.
For now I have all the invalid characters quashed and things are working. But it would be useful in the future.
By the by, some of those editors are quite pricey!
doug

Similar Messages

  • Best parser for handling very large XML  document

    which is the best parser whenread and extract information from very large XML document

    Any SAX-parser, since DOM would use 6 times as much primary memory as the file-size.
    Xerces SAX-parser is in my experience the fastest.
    Gil

  • Best method for encrypting/decrypting large XML files ( 100MB)

    I am in need of encrypting XML for large part files that can get upwards of 100Mb+.
    I found some articles and code, but the only example I was successful in getting to work used XMLCipher, which takes a Document, parses it, and then encrypts it.
    Obviously, 100Mb files do not cooperate well with DOM, so I want to find a better method for encryption/decryption of these files.
    I found some articles using a CipherInputStream and CipherOutputStreams, but am not clear if this is the way to go and if this will avoid memory errors.
    import java.io.*;
    import java.security.spec.AlgorithmParameterSpec;
    import javax.crypto.*;
    import javax.crypto.spec.IvParameterSpec;
    public class DesEncrypter {
        Cipher ecipher;
        Cipher dcipher;
        public DesEncrypter(SecretKey key) {
            // Create an 8-byte initialization vector
            byte[] iv = new byte[]{
                (byte)0x8E, 0x12, 0x39, (byte)0x9C,
                0x07, 0x72, 0x6F, 0x5A
            AlgorithmParameterSpec paramSpec = new IvParameterSpec(iv);
            try {
                ecipher = Cipher.getInstance("DES/CBC/PKCS5Padding");
                dcipher = Cipher.getInstance("DES/CBC/PKCS5Padding");
                // CBC requires an initialization vector
                ecipher.init(Cipher.ENCRYPT_MODE, key, paramSpec);
                dcipher.init(Cipher.DECRYPT_MODE, key, paramSpec);
            } catch (java.security.InvalidAlgorithmParameterException e) {
            } catch (javax.crypto.NoSuchPaddingException e) {
            } catch (java.security.NoSuchAlgorithmException e) {
            } catch (java.security.InvalidKeyException e) {
        // Buffer used to transport the bytes from one stream to another
        byte[] buf = new byte[1024];
        public void encrypt(InputStream in, OutputStream out) {
            try {
                // Bytes written to out will be encrypted
                out = new CipherOutputStream(out, ecipher);
                // Read in the cleartext bytes and write to out to encrypt
                int numRead = 0;
                while ((numRead = in.read(buf)) >= 0) {
                    out.write(buf, 0, numRead);
                out.close();
            } catch (java.io.IOException e) {
        public void decrypt(InputStream in, OutputStream out) {
            try {
                // Bytes read from in will be decrypted
                in = new CipherInputStream(in, dcipher);
                // Read in the decrypted bytes and write the cleartext to out
                int numRead = 0;
                while ((numRead = in.read(buf)) >= 0) {
                    out.write(buf, 0, numRead);
                out.close();
            } catch (java.io.IOException e) {
    }This looks like it might fit, but there is one more twist, I am using a persistence manager and xml encoding to accomplish that, so I am not sure how (where) to implement this method without affecting persistence.
    Any guidance on what would work best in this situation would be appreciated.
    Regards,
    vbplayr2000

    I can give some general guidelines that might help, having done much similar work:
    You have 2 different issues, at least from my reading of your problem:
    1) How to deal with large XML docs that most parsers will not handle without memory issues
    2) Where to hide or "black box" the encrypt/decrypt routines
    #1: Check into XPP3/XMLPull. Yes, it's different that the other XML parsers you are used to using, and more work is involved, but it is blazing fast and can be used to parse a stream as it is being read. You can populate beans and process as needed since there is really not much "inversion of control" involved compared to parsers that go on to finish the entire document or load it all into memory.
    #2: Extend Serializable and write your own readObject/writeObject methods. Place the encrypt/decrypt in there as appropriate. That will "hide" the implementation and should be what any persistence manager can deal with.
    Regards,
    antarti

  • What are the best tools for converting .shg files to HTML image maps?

    After trying several different ways to import our WinHelp
    project into RH HTML, I'm left with recreating the project in HTML.
    There are over 200 .shg files. What's the best tool for converting
    them? Is there a free program that converts them? Or is there a
    better way?
    Lacona

    Yes, I have not been able to import the .hlp file, which was
    my last posted question/issue. I have tried creating a Microsoft
    HTML layout in RH4 Word; it begins to compile and, somewhere in the
    process, just freezes. I've tried importing the .hlp file into RH
    HTML; same result. I've tried creating a new HTML project with the
    .hlp file; same result. If I could import the file, it'd be great.
    Otherwise, I'll need to recreate the entire project, which brings
    me to converting the .shg files. Any ideas?

  • What is the best tools for analyzer VoIP

    I need ur help, i looking the tool helps analyzer VoIP in WAN/TDM. What is the best tool for Cisco System or wich recommends.
    Thxs!

    Hey turbot,
    Thanks for contacting National Instruments support.  Each set of the vis you mention are the latest, and some use similar methods to do the FFT than the other.  The SMT is usually the best in most applications.  There is also another option in the case of scope, you can fetch FFT data from the driver.  The FFT is not actually implemented in hardware, but in the driver, and this is transparent to the user.  It's simpler to use, but not as efficient as the SMT.
    I hop this answers your questions.  Let me know if I can be of further help.
    Regards,
    Kenn North
    Senior Product Manager - Search, Product Data
    http://ni.com/search

  • The Best Tool For Multiple Animated Objects

    Hi,
    I am expirimenting with Flash Web Sites, and I would like suggestions as to a starting point for my project, and I am assuming a Flash website is where I would start.
    Basically, If I were to open up a web page, I would like to see multiple animated objects.  For example, if I were to simulate an Emergency Room, I would have an EKG displaying a heart rate, then perhaps see a breathing maching apparatus moving up and down, a Drip bag (sorry, don't know the real term), dripping into a patient's tube.  And of course, if I were to roll over an object it would animate, and if clicked on more animation or on to another page.
    I tried creating the animated objects in Fireworks, and I thought I could combine various Firworks files into one, but it didn't work (too many frames), either becasue I lack the knowlege of how to do this or simply it cannot be done that way in Fireworks.  I had a background with one animated flashing object (that was easy), but combining multiple independent objects, I could not figure it out.
    Someone suggested that I would have to use Action Scripts, which made me realize, I don't know the best way to accomplish my example above, and although I know I may be over my head, I would just like to get direction as to where I should begin.
    Should it all be in Flash in the first place?  To continue on with the example above, after a user clicks on the rollover image, a girney comes rolling in and we are giving choices on a monitor with what our next actions should be, which would take us into another page.  (this is just to give you perpective of what I am trying to accomplish).
    Should I create independent animated objects (files) in Fireworks, then somehow import them into their specified location in Flash.
    I hope this makes sense and I am hoping someone is kind enough to provide a starting point.
    Best.

    Flash is the best tool for what you want and most of it can be done once you get a handle on the basics.
    For you interactivity (rollOvers / triggering more animations with mouse) you will need some actionscript but don't get hung up on that now.
    There is a world of info out there. Google "animation basics in flash) you may have to weed through some garbage but you will find what you are looking for somewhere.

  • Is Dreamweaver the best tool for building HTML?

    Just wondering if Is Dreamweaver the best tool for building HTML? What are your thoughts?

    DW is an industry standard, pro-level software.  It can do as little or as much as your coding skills allow for. It supports modern X/HTML, CSS, JavaScript, XML, PHP, ASP & ColdFusion.
    Unlike plain text editors (NotePad), DW has powerful site management tools to assist you.  And it is very well supported by 3rd party extensions to enhance your productivity.  If you're serious about web development, you won't go wrong with DW .
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Is Business Manager the best tool for our company?

    I have a number of quesitons to answer to figure out if Busienss Manager is the best tool for our company. The ONLY reason we are pursuing changing from individual accounts is that Share Screen has been removed from some of our accounts with the latest Skype update.
    Can we port existing Skype account names to Business Manager?
    Will Skype contacts be kept?
    Is 'Share Screen' part of Business Man.?
    Is it east to add and delete user accounts in Business Manager?
    What are the admin issues?
    Can more than one person be the administrator? Is it easily transfered?
    The Business Manager literature refers to credit allocation, tracking and reporting as a benefit of Business manager. Credit is not a concern for our company as we seldom use Skype to call phones. What are the other benefits of Skype business Manager?
    Thank you for your time and help.

    Up until a few weeks ago I would certainly reccomend Skype, but my advice is for youy to look for another company.
    Skype doesn't care about it's business customers, I and others have been trying to buy credits for week but the system is broken with no fix in sight, I was told it would be fixed by the end of the week, it hasn't been!!
    Read for yourself then go look for another phone provider, Skype is not responsive to business customers!
    http://community.skype.com/t5/Skype-for-business/As-a-manager-I-am-unable-to-purchase-skype-credit/t...

  • What is the best way to handle very large images in Captivate?

    I am just not sure the best way to handle very large electrical drawings.
    Any suggestions?
    Thanks
    Tricia

    Is converting the colorspace asking for trouble?  Very possibly!  If you were to do that to a PDF that was going to be used in the print industry, they'd shoot you!  On the other hand, if the PDF was going online or on a mobile device – they might not care.   And if the PDF complies with one of the ISO subset standards, such as PDF/X or PDF/A, then you have other rules in play.  In general, such things are a user preference/setting/choice.
    On the larger question – there are MANY MANY ways to approach PDF optimization.  Compression of image data is just one of them.   And then within that single category, as you can see, there are various approaches to the problem.  If you extend your investigation to other tools such as PDF Enhancer, you'd see even other ways to do this as well.
    As with the first comment, there is no "always right" answer.  It's entirely dependent on the user's use case for the PDF, requirements of additional standard, and the user's needs.

  • HT204053 Is it possible to have two (or more) different icloud mail accounts (not alias) under the same apple id? If not what is you best advice for all family members to have their own e-mail and still share the purchases under the same apple id. Thanks

    Is it possible to have two (or more) different icloud mail accounts (not alias) under the same apple id? If not what is you best advice for all family members to have their own e-mail and still share the purchases under the same apple id. Thanks

    mannyace wrote:
    Thanks for the response.
    So I basically won't run into any trouble? I
    There should be no issues. Its designed to work like that.  You don't change Apple IDs just because you get a new device.
    mannyace wrote:
    Thanks for the response.
    Is there any chance that the phones can fall out of sync?
    Unlikely. But nothing is impossible.   Though I don;t see how that would happen. As long as both are signed into the Same Apple ID / iCloud Account they will be N'Sync. (Bad Joke)
    mannyace wrote:
    Thanks for the response.
    If I get a message or buy an app or take a photo on the iPhone 5, how do I get those things onto the iPhone 6?
    If you buy an App, you have 2 ways to get it to the iPhone6: If Automatic Downloads is enabled in Settings->iTunes & App Store, it will automatically download to the iPhone 6 when you buy it on the 5 and vice versa if you buy it on the 6, it will download to the 5.
    Alternatively, you can simply go to the App Store App->Updates->Purchased and look for the App there and download it. Purchased Apps will not require payment again. i.e They'll be free to download to the iPhone 6 once purchased.
    SMS Messages will sync over using Continuity as long as they are on the same Wifi network. Otherwise, restoring the iPhone 5 backup to the iPhone 6 will transfer all messages received up until the backup was made onto the iPhone 6.
    Images, can be transferred either through Photo Stream
    My Photo Stream FAQ - Apple Support
    Or any Cloud service you want such as Dropbox, or One Drive.
    mannyace wrote:
    Also, something i forgot to ask initially: Should I update the iPhone 5 to iOS 8 first or does that not matter?
    If you want the Continuity features as explained above you need to update the iPhone 5 to iOS 8. Otherwise its not all that important.

  • What is the best app for backing up my mac. I do publication work and need to save my work?

    what is the best app for backing up my mac. I do publication work and need to save my work?

    My answer does not have the black Apple logo but the hardearned black belt of (bad) experience.
    There is one problem with TimeMachine. It can get corrupted out of the blue with no warning and it will not want to restore correctly (as an added "bonus" you get to find this out the "hard" way, when you need it most). Plus it takes ages for the data to be copied back, sometimes days. Haven't tried my 600gb backup on Mavericks but Mountain Lion had this knack of breaking Timemachine after a couple of months.
    To back up my entire server is use SuperDuper. It mirrors the drive to an external one (usb for example) The cool thing is you can use that usb drive and start the OS X from it (by holding Alt when you hear the boot chime).
    This way you have a working copy of your entire machine. You can even go to another mac and boot it from there. I literally ran the OS X Server in my company from a usb drive on an old MacBook Pro until i got around to fix the problems with the actual server machine.
    This has saved me twice already as the Hitachi drives Apple uses, tend to die like clockwork after 4000-5000 hours of use with no warning.
    http://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html
    PS. As a sidenote... SSDs are more reliable than a normal HDD (not to mention faster) I can't stress this enough, my Server is on two SSDs now. I can't tell you how stress free the setup is, it doesn't feel like a computer but more like a router, it just works... forever. After two years with SSDs my server has had two days of downtime and their health is at 97%, they will literally last 100 years with normal use. I'd go so far as to recommend you buy an SSD and move your old HDD to an external enclosure and use that as a usb backup. (for SSDs i use Plextor / Lite-On M3s (older) or the M6s (newer))

  • What is the best way to remotely lock/clear/locate a macbook pro or iphone 6 if they are lost or stolen?

    What is the best way to remotely lock/clear/locate a macbook pro or iphone 6 if they are lost or stolen?
    macbook serial C02LG23EFH00
    running latest OS
    thanks

    Hi
    See here for remotely wiping and securing devices when stolen, you will need to use icloud with the find my mac/iphone feature
    http://support.apple.com/kb/PH2701

  • What is the best software for burning a large slideshow with 500 photos and music to DVD?

    What is the best software for burning a large slideshow with 500 photos and music to DVD?

    Are you talking about strictly burning an already put-together slideshow or composing one and then burning it?
    My all time favorite slide show maker is Photo to Movie; you can then burn it from there or get it into iMovie and/or iDVD for the "finishing" touch. My favorite burn software is Toast, although you can use iMovie, iDVD, and Finder as well.
    http://www.lqgraphics.com/software/phototomovie.php
    http://www.roxio.com/enu/products/toast/titanium/

  • Suggestions about the best tool for quality check for an ADF application

    Hi All,
    I need a few suggestions about the best tool for quality check in our ADF applicaiton.
    ours is a small size WebCenter Portal application which neither uses any task flows nor consumes any portlets.
    It has many jspx pages that use ADF components like table etc, consume web services using web service clients, and has some java classes.
    We have come across below option to implement the code quality tools.
    1. Jdeveloper inbuilt Staus option in View tab
    2. PMD extension for Jdeveloper
    3. Red Samurai
    Few more suggestions or best practices would be really helpful.
    Thanks,
    Usha

    Some general ADF / Webcenter coding standards -
    http://umeshagarwal24.blogspot.com/2012/06/adf-coding-standards-check-points.html
    You can use JAudit as well as mentioned in the blog.

  • Is Rh the Best App for Managing 41 manuals, with many pages being the same?

    I'd like to automate a labor intensive task that I will soon be assuming. We have 41 install manuals for an automotive accessory that fits 41 different models of vehicles. The current manual is 28 pages with at least 24 pages being identical. The documents are done in Word, along many pictures and drawings. When the document is finished, it is converted to a PDF and sent with the item. The pdf is also made available online for folks who may need the electronic version. When we change one page that is common to all, we have to manually update each Word file and then convert it. As you can imagine, the manuals don't get updated and corrected as often as they should
    Since most of the pages are the same, I would like software that can manage changes to these pages and automatically update all manuals. For example, if a change is necessary on page 6 and 34 manuals use this page, I simply change one page and the software "exports" this new page to all affected manuals.
    1) Would Rh do this?
    2) Would it be the best choice for this task?
    3) If Rh is the best choice for this, what is the best approach for beginning this task? Get a book and read or just jump in?
    4) I came across a book written by a firm called GooberGuides, is this a good resource? Do you recommend a better one?
    5) Does my project require a special technique when setting it up in an app like Rh or is the process fairly intuitive? I don't want to waste time by implementing this incorrectly, only to start over again when I realize there was a better way.
    I would be very grateful for any guidance you could provide.
    Thank you.
    Rodger

    I don't think your questions were answered, except for the tool one, which is not the most important one. I would reverse your questions:
    Does my project require a special technique? Yes! Single sourcing, which is a methodology for developing modular, reusable information, not a tool. Before you even approach a tool, you must analyze your content, define standards for it, define information types (Google for DITA), and convert it from linear (as your Word documents are) to modular.
    I have not seen the GooberGuides book, but I can definitely offer these:
    Content Managment for Dynamic Web Delivery - Jo Ann Hackos
    DITA 101 - Anne Rockley, Charles Cooper, and Steve Manning
    Introduction to DITA: A User Guide to the Darwin Information Typing Architecture - Jennifer Linton & Kylene Bruski
    Managing Enterprise Content: A Unified Content Strategy - Anne Rockley
    Single Sourcing: Building Modular Documentation- Kurt Ament
    Tools - obviously since we're on the Adobe forum, Technical Communication Suite must be acknowledged. But you can accomplish single sourcing with several tools. Check out a brief overview of some at http://www.writersua.com/restools.htm.
    Jan Shelton

Maybe you are looking for

  • Firefox will not start after upgrade to 7.0.1

    I get crash reporter evry time I try to start firefox even in safe mode.

  • Emailing Form in PDF format instead on xml? -need help!-

    I have a webpage that has a link that directs customers to a pdf form I created with Adobe Designer 7.0 and when the customer is done filling out their information in the form and click's the submit email button. It comes to my inbox in an .xml! is t

  • Backlight keyboard issue (MBP 2011)

    Well I installed Lion and my MBP 2011, brand new illuminates when starting up.  It goes bright then dims down to the setting I have (off).  It's annoying but how can you stop it from illuminating at start up.  I tried a SMC reset for my intel MBP i7

  • Why can't I select imessages and email them?

    I used to be able to select from an imessage string and forward the string as an email.  Now it appears to "go" but doesn't appear in my email account.  What can I do?

  • CKMLCP - Zero-stock Product Impacts Material Ledger

    Dear experts, We've executed a monthly costing run using material ledger. It's run smoothly every month but, at this time, the system selected a material which stock quantty is zero, that hasn't had any movements since last year and hasn't been chang