MelForC3 Posted June 1, 2011 Posted June 1, 2011 I have some result file from vb which is XML file. I wanted to view it in notepad which appear as text file . Is there any converter from XML to .txt?I've found a few but it's not working. Anyone can help?
jaclaz Posted June 1, 2011 Posted June 1, 2011 See if this fits:http://www.911cd.net/forums//index.php?showtopic=23408&st=21http://www.911cd.net/forums//index.php?showtopic=24300&st=47If you cannot get the xmlparser.exe just post and I will attach a copy here.jaclaz
MelForC3 Posted June 1, 2011 Author Posted June 1, 2011 Im not sure whether im posting the right thing at first. The file i have is .trx extension which i run in Visual Studio. I open with notepad, is a xml script.Trying to convert .trx or maybe can say as xml to the readable text file.Im reading the url u given. Million thanks.Mind providing the xmlparser.exe url? sincerely appreciated
jaclaz Posted June 1, 2011 Posted June 1, 2011 Mind providing the xmlparser.exe url? sincerely appreciatedThis particular file has disappeared from the Homepage:http://www.f2ko.de/(the site has been reworked and maybe it is a case of MIA during restoration)I am attaching it (together with the small batch that I made at the time for the particular xml DriveImageXML creates and the base64 decoder)You won't need these, but the batch may give you some ideas, the xmlparser writes to file "results.tmp", you can run it then open results.tmp with notepad.jaclazDixmlreadD.zip
MelForC3 Posted June 2, 2011 Author Posted June 2, 2011 Thank you jaclaz.Hopefully I'm able to do it. Appreciate your time and effort
MelForC3 Posted June 13, 2011 Author Posted June 13, 2011 Hi Jaclaz,the unit test result file seems to appear as .trx but the format in the file is xml.So, Does xmlparser still apply to .trx file?I kind of lost in doing this.
jaclaz Posted June 13, 2011 Posted June 13, 2011 Hi Jaclaz,the unit test result file seems to appear as .trx but the format in the file is xml.So, Does xmlparser still apply to .trx file?I kind of lost in doing this.Sure it does, if the contents are XML, it should be able to parse them allright.It has NOT a "checking mechanism" for "file extension".Long before computers weren't invented :What's in a name? That which we call a roseBy any other name would smell as sweet.Obviously Mr. Shakespeare, though a profound connoisseur of human nature could not foresee the degradation of costumes that finally led to the perversion of creating .xml file format. Not that difficult:let's say the file is called "myfile.trx"place the xmlparser.exe, xmlparser.dll and the myfile.trx file in a directoryopen a command prompt, and navigate to that directorytype: xmlparser myfile.trxpress [ENTER]open results.tmp in Notepadjaclaz
CoffeeFiend Posted June 29, 2011 Posted June 29, 2011 Not that I'm very fond of MS' testing tools (I'd much rather use NUnit/MbUnit/xUnit or fluent versions thereof) but seemingly you have some programmers on hand. They should be able to handle this kind of work. It's pretty simple to transform XML into a more human-readable format using a simple XML Style Sheet. If they can't handle that, then there's some pre-made ones out there. And if that's still not easy enough, there's some open source automatic converters from .trx to .htm. There's no point in reinventing the wheel poorly by mangling the XML.Then again, other testing frameworks have a lot to offer over MSTest. I personally use NUnit (along with Resharper's test runner) most of the time but MbUnit/xUnit are also very nice. There's plenty of ways to check the results here too.
allen2 Posted July 14, 2011 Posted July 14, 2011 (edited) I found another great (the best IMO) open source xml parser: xmlstarlet. Edited July 14, 2011 by allen2
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now