Please recommend a  tool or framework that parsing delimited text to XML

Working on a project that need me read data from delimited text file, the data will be converted to a tree-structure. So it's better parse the data into XML format first.
Besides j2se or jdom, any fast tool for it?
Thank you

alex888 wrote:
Working on a project that need me read data from delimited text file, the data will be converted to a tree-structure. So it's better parse the data into XML format first.What??? Why? You've got a text file and need an object tree, why do you think going to XML in between is a good idea?
Besides j2se or jdom, any fast tool for it?What do you mean with "j2se", that's not a XML handling tool (it contains several, 'though).
SAX sounds good for building object trees from XML, but there are several XML mapping libraries out there (try google).

Similar Messages

  • Please recommend a tool for stress-testing ?

    Could anyone please recommend a (free) tool to do multi-threaded stress-test, on plain java classes ?
    In more detail: I'd like to do unit-test for some plain java methods (only mathematical calculations. No web interface, no swing).
    The emphasis is stress test: i need to launch multiple threads, all of them repeately invoking my method. Under these conditions, I need to report correctness (has the method yielded the expected return value), and statistics on response time.
    Any recommendations would be appreciated . Thanks !

    alex888 wrote:
    Working on a project that need me read data from delimited text file, the data will be converted to a tree-structure. So it's better parse the data into XML format first.What??? Why? You've got a text file and need an object tree, why do you think going to XML in between is a good idea?
    Besides j2se or jdom, any fast tool for it?What do you mean with "j2se", that's not a XML handling tool (it contains several, 'though).
    SAX sounds good for building object trees from XML, but there are several XML mapping libraries out there (try google).

  • Please recommend a best practices book

    Can someone recommend a core java best practices book.
    I have read several books and yet when someone says use a tagging interface... I just look at them and wonder what they are talking about.. then I google and find out.. There may be several such terms that I am not aware of... How do I learn about these terms like POJOs etc.. People keep using words like POJOs and then I find out its nothing but a java class object.. but how do I know that?
    Someone once said "You know only 5%, 20% you know you dont know, 75% you dont even know that you dont know".. Which book can give me that 75% ?
    I know basic datastructures etc.. but when to apply what is what I want to learn.
    A book which talks about when to use which datastructure, good usage of interface examples, and best practices that are used in real application production environment. Can someone please recommend a good book like that ? Is there any ? Real cases?

    Maybe this should be a different thread but how do
    programmers organize folders for projects?
    Every company has a common java classes shared by
    programmers I presume? That must be located in a
    central access place and I am curious how they
    organize folders?Folders? Maybe. Version control system, with a "commons" tree? Better.
    Have a look at Matt Raible's AppFuse. It's a fine example organization for a project.
    As for me, I do something like this:
    I build with Ant: http://ant.apache.org
    /source is the directory where anything I check out of version control will go.
    Under that:
    /java - .java source files.
    /lib - 3rd party JARs (e.g., JDBC drivers, etc.)
    /jsp - JSPs
    /etc - deployment descriptors, like web.xml, etc.
    /xml - XML files
    /xsl - XSL stylesheets
    /html - HTML files
    /css - cascading stylesheets
    /sql - SQL scripts for creating, altering, populating relational tables.
    %

  • @XmlAttribute/@XmlValue need to reference a Java type that maps to text

    Hi,
    I get this exception when marshalling with xjc (either 2.0.1 or 2.1.3) generated classes. The xsd looks like this:
    <xs:complexType name="ExtensionType">
         <xs:simpleContent>
              <xs:extension base="xs:anySimpleType">
                   <xs:attribute name="nombre" use="required">
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:maxLength value="50"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:attribute>
                   <xs:attribute name="tipo" use="optional">
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:minLength value="0"/>
                                  <xs:maxLength value="30"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:attribute>
                   <xs:attribute name="id" use="optional">
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:minLength value="0"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:attribute>
              </xs:extension>
         </xs:simpleContent>
    </xs:complexType>and the generated class looks like
    public class ExtensionType {
        @XmlValue
        protected Object value;
        @XmlAttribute
        protected String id;
        @XmlAttribute(required = true)
        protected String nombre;
        @XmlAttribute
        protected String tipo;
    }If I change value's type to String I don't get the error any more. I've tried some binding customizations, but without luck.
    Any hints on how to a) customize de binding or b) modify the schema so that jaxb doesn't choke on xjc's bindings?
    tks

    I am running into the same problem. I need an @XmlValue to be an Object (xs:anyType). Here are the basic annotations:
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "argument")
    public class Argument {
        @XmlAttribute(name = "type")
        protected String type;
        @XmlValue
        protected Object value;
    }The desired output is as follows:
    <argument type="arg1.type"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">
        test
    </argument>However, I am getting the same exception: "@XmlAttribute/@XmlValue need to reference a Java type that maps to text in XML." when attempting to marshal.
    Any suggestions would be appreciated.

  • I purchased Label Printer Pro 7, but it does not work. It crashes. Please recommend an address/shipping label program that works with Avery labels. Thanks.

    I purchased Label Printer Pro 7, but it does not work. It crashes. I press print, and the program closes. I press save, and the program closes. I press print and the program closes. I have had an email exchange with Pabel Printer Pro 7, but the best they could offer was to go to Utilities and click on fixed permssions. I have done that several times, and the program still doesn't work.
    Can you please recommend an address.shipping label program that works with Avery labels that I can purchase, and that is also simple to use?
    Thanks,
    Paula

    I purchased Label Printer Pro 7, but it does not work. It crashes. I press print, and the program closes. I press save, and the program closes. I press print and the program closes. I have had an email exchange with Pabel Printer Pro 7, but the best they could offer was to go to Utilities and click on fixed permssions. I have done that several times, and the program still doesn't work.
    Can you please recommend an address.shipping label program that works with Avery labels that I can purchase, and that is also simple to use?
    Thanks,
    Paula

  • Please recommend personal finance software for Mac that allows month to month analysis of spending by categories.  Quicken on a PC was good at this.  Mint seems very limited.

    Please recommend personal finance software for Mac that allows month to month analysis of spending by categories.  Quicken on a PC was good at this.  Mint seems very limited.

    Quicken for Mac 2007 works just fine (and is said to be compatible with Mavericks).  It is often denounced for not being "modern", but when something works, and does everything I want, I need a good reason to switch. 
    A few years ago (2011), I got that reason when I upgraded OSX and Quicken stopped working due to the absence of Rosetta.  I switched to iBank.  I used it for more than a year.  It was cumbersome, they have no sense of a helpful user interface, but it "works".  I found ONE feature that I liked:  you can attach an image (or any file) to a register entry, so I can save receipts right with the register.
    But when Intuit came out with the revised Quicken 2007 for Mountain Lion, I gladly went back.  I found that being able to update stock prices right in the portfolio view (for those not automatically found online) was handy - in iBank you have to generate a report to see the holdings, and then you have to switch to a view of "Securities" then scroll down through that list to find your stock, then "edit" then change the price, then "Save" then go back to reports and re-generate the portfolio view.  Also, if you enter a stock purchase in a Quicken register, the price you paid gets added to the price history for the stock (as of the date of the transaction).  No such help in iBank.  Most of the helpful UI features (like increasing the date with the + key) are glaringly missing in iBank.  I find I am getting no more than about 3-4 keystrokes before having to move the mouse and click.
    If you are considering sharing the app on an iPad, Quicken won't work, but I found that iBank for iPad doesn't work either.  The interface is completely different from the Mac version, you can't do much with it, and if you have a stock whose price is $11.25 / share and sell 200 shares, you might find that $22.50 gets added to your cash in the account.  (I actually made a few million dollars when it decided that 200 shares at $11.25  yielded $2,250,000.)  Luckly, I received a refund for that app.
    Depending on how the Mavericks switch goes, I hope to be able to stick with Quicken, but I am keeping my records up-to-date in both now, because I can live with iBank.  I will just have to keep an eye on its arithmetic.

  • Please recommend a good tool to make JSP page.

    Hi, can someone please recommend me a good tool to make JSP page? Until now, I use notepad which I found is not professional.

    Hi kvols:
    Thanks a lot for your reply. I had used JEditor before I switched to JCreator. I found both of them quite good. I also tried to use CVS sometime back, but got totally confused about it. I will try to search for the other toolkits you mentioned. Just now, I find one named XMLspy from google. Yet I don't know whether or not it is really as good as stated on its website. I will try it out soon.

  • Please recommend an app that allows me to scan recipes and sort them.

    Please recommend an app that allows me to scan recipes on my printer to sort on my macbook pro.

    I did find this:
              http://www.simpleindex.com/Barcode_Recognition/document_scanning_barcode.asp
    But was hoping for something more apple like or even transparent (like a script or soemthing in automator)

  • I am using an iMac7.1 with 1GB DDR2 SDRAM of speed 667 MHz on board memory. I would like to know what is my best option to upgrade to 4GB on board memory so that I can run Lion OS. Is there a speed limit of the DRAM I can use? Please recommend.

    I am using an iMac7.1 with 1GB DDR2 SDRAM of speed 667 MHz on board memory. I would like to know what is my best option to upgrade to 4GB on board memory so that I can run Lion OS. Is there a speed limit of the DRAM use? Please recommend or suggest as soon as possible.

    You can install 2 - 200-pin PC2-5300 (667MHz) DDR2 SO-DIMMs. The maximum amount of RAM is 6 GBs. Visit DataMem or OWC to get the proper RAM at reasonable prices.

  • Tool or framework to interact with OTM and Logistic Service Provider(LSP)

    Hi,
    We are using Oracle Transportation Management (OTM) service for the transportation management. But to interact with the LSP(logistic service provider) We need some tool.
    Please suggest me some tool or stable framework that can interact with OTM and Logistic Service Provider, just like Apache Camel
    if you have any any idea please guide me on this, it is very urgent .
    Edited by: 902943 on 13-Mar-2013 23:36

    @riatest Thanks for the info.
    I downloaded flex sdk to see if there is anything that will help me. But, In flex sdk, I cannot find anything that would ease my path. I want to stick to developing in C# to talk to Flash applications. What is the best way to proceed? Are there any sdks that I can download and use for C# development to interact with the flex controls? What is the way to go? I seem not to find any good hits in the web as well
    Thanks
    Sailesh

  • Have any extension framework that design based on BC4J/ADF

    Hi all:
    have any one know that whether have any commercial or opensource extension framework that design based on BC4J or ADF, we need a complete application framework to build ERP system through JClient technology,
    we wish concentrate on translating business rules and process to code instead of worrying about the technical plumbing required to create application systems. and need a set of standard components to ensure a consistent look-and-feel and corporate identity among all applications.
    Oracle JHeadstart is good extension framework and 4GL tool that is based on struts/JSP/UIX solution, but we need a JClient 4GL tool like it.
    JTwister is a good application framework solution for Swing technology, but cannot adopt with BC4J/ADF.
    if you have any idea, please give me a suggestion.

    http://www.inpowersoft.com/bc4j/index.htm - might be what you are looking for.

  • Looking for new All in One. Is Officejet as good as Photosmart? Please recommend an All in One.

    I have the HP Photosmart C7180 All in One that's a few years old and is starting to give me a lot of errors (mostly ink level errors).  I'm thinking about replacing it, because I want one that doesn't use as much ink -- and one that has a bigger scanner bed (at least 11 x 14 or bigger).  I'm a budding artist and I want to have the ability to scan in my drawings.
    However, I do print a few photos now and then.  Does anyone know if Officejets will print decent pictures?
    Please recommend an All in One (the newer the better) for my needs. 

    Thanks! It sounds like a potential nightmare. Does
    anyone have a different experience? I'm not
    committed to an all-in-one, but it does save space.
    If you're willing to take time and effort into the process, HP's MFDs and Brother's MFDs work... mostly. HP has even improved their drivers. It took 'em long enough.
    No, I repeat, no MFD I've ever seen has been trouble-free, Mac or Windows. That includes Epson, Canon, HP, Brother, and (ugggh!) Lexmark devices. They all give problems. Not necessarily the same problems, but problems. HPs and Brothers give the least trouble with Epson a close third... but YMMV. I know people who swear by Canon, while in my personal experience Canon devices have been... not so good. But it was a limited sample, and maybe I had lemons.
    Most MFDs (that is, everyone but Brother) don't easily do networking unless it's a Specific Feature™. My HP PSC1350, for instance, does not believe that such a thing as a network exists, and is that way if connected to Macs or Windows machines. I can make it visible over the network, but it's a pain.
    If you want wireless network printing, get a wireless router (hint: Apple sells something called an AirPort Base Station) or access point which has a USB port and supports putting printers on the network. Note that you'll likely not be able to scan over the network.
    There are network MFDs; HP makes some. They're expensive. The OfficeJet 74xx is $500, and it's the cheap HP network MFD. I do NOT own one, so I have no idea how well they work, other than they're HPs... which means that the hardware will probably be excellent, and the software dreck.

  • Please Recommend - AIO/MFP Printer

    Hi,
    i'm looking for a AIO/MFP printer that support "scan to email" and "scan to network folder".
    the above functionality should not require the printer to be directly attach to a pc via USB/LAN/WiFi.
    the printer should only need to be be configured as network printer with a fixed IP, and the above requirement can be achieved.
    other than that, it should also capable of fax and scan.
    there are 5 users, and monthly usage is around 500 pages & above.
    please recommend me relevant models in these 3 categories (if available):
    -black & white laserjet
    -color laserjet
    -inkjet
    thanks & regards,
    LauCN

    Well here's what I've done and learned.
    Shane - I should have listened to you (ultimately I did!).
    I went out and bought an Epson Artisan 810 thinking maybe most of the problems had been solved. Long story short - printed a test page and one other page and then went dead - so two pages out-of-the-box it became a beautiful black brick. Epson was less than useful on the phone - suggested they would send a replacement in 5-7 days. I got a case number from them, and returned the printer to OfficeMax.
    While there I mentioned the Lexmark '05 series - and looked at a couple choices. the salesman was very friendly, says the Lexmark rep had spent a lot of time with them. Ended up buying a Lexmark Platinum Pro905 series multifunction machine, with two paper trays. Was discounted down to $299 at OfficeMax along with some free stuff and OfficeMac bonus dollars thrown in.
    Snow Leopard 10.6 drivers were available from the Lexmark website, downloaded those and used them along with the install disc that came with the unit.
    So far - I'm in printer/fax/scan/copy heaven! Working great. Only glitch for me so far is the second paper drawer does not seem to be adjustable down to photo paper sizes, basically it's a letter paper sized drawer (I think?). It still will suit my purpose, my plan is to keep my checks in the second drawer so I can easily print out on check stock from Quicken, QuickBooks, etc. - so really that solves my problem.
    I did play with some 4x6 photo paper in the top drawer and the quality of the photo prints were very much to my liking.
    So thanks for everyone's comments, let's keep our fingers crossed.

  • HT202807 I have a MB Air 128gb and a Time Cap.802.11AC. My HD is maxed out because of 30GB of photo storage after migration to 10.3.3 Photos. Please recommend an external drive best for connecting to TC and moving the iPhoto Lib off my HD

    I have a 13" mid 2011 MB Air 128gb and a Time Cap.802.11AC. My HD is maxed out because of 30GB of photo storage after migration to 10.10.3 Photos. I have reduced apps and files as much as possible so the only thing left is to move the photos.  Please recommend an external drive compatible for connecting to my TC 802.11ac and moving the iPhoto Lib off my HD which will free approx 15 gbs. of space. I don't plan on using it for any other purpose so a small capacity drive will suffice. I know the "optimization" is supposed to adjust for this condition but I don't trust that assertion.I only have 2gb free space remaining. 

    I don't plan on using it for any other purpose so a small capacity drive will suffice.
    If you really only want such a small capacity drive.. what about just buying a 32GB or 64GB USB memory stick.
    You should still have a back up to the internal hard disk of the AC TC.
    Or just buy a WD Passport.. don't waste your money buying 500GB as it is only a bit more to buy 1TB and a bit more again for 2TB.. For future use if you do buy a USB hard disk buy 2.5" type.. and buy 1TB or if the budget stretches 2TB..

  • Could someone please recommend the best program to convert AVI and MPEG files for use (and exporting) into IMovie 11?

    Hi - I understand I need to convert AVI and MPEG files for use within IMovie 11. I have one particular file that has a watermark stating "Created with Flip4Mac WMV Demo". Can someone please recommend the best program for a novice?  Thanks!

    Hi Susan,
    It is no simpler converting vobs to mp4 than mpg (mpeg2).
    There is *always* a loss of quality converting video from one lossy-compressed format to another, e.g. mpeg2 to mp4.
    So, if you want to not lose any quality, then converting vobs to mpeg2 (mpg) is the thing to do (since there will be no video/audio re-compression), assuming Lr5 will accept them (sorry, but I do not know). example commands:
    Mac: ffmpeg -i myvideo.vob -sameq myvideo.mpg
    Win: ffmbc -i myvideo.vob -sameq myvideo.mpg
    If Lr5 won't accept them, then you can convert to mp4 with minimal quality loss using a command like:
    Mac: ffmpeg -i myvideo.vob -sameq myvideo.mp4
    Win: ffmbc -i myvideo.vob -sameq myvideo.mp4
    You may need variations of these commands depending on encoding of vob.
    Note: -i means -input-file; -sameq means -same-quality, as much as possible.
    ffm... is smart enough to avoid re-encoding, if possible, when -sameq is used, and makes reasonable choices for audio/video codecs based on extension of output file.
    Of course, you'll need to download/install ffm... program if not already on your machine, and execute commands in a terminal or command window.
    Do keep us posted please .
    Cheers,
    Rob

Maybe you are looking for