Author Topic: .xml in TrID  (Read 13749 times)

bobsobol

  • Guest
.xml in TrID
« on: May 07, 2007, 10:14:57 PM »
I don't understand how I import the .xml definitions into the .trd file so that TrID will use them... is that possible? or should it just pick up .triddef.xml files in it's directory? Doesn't seem to.

Also... I'd like to say that MIME type, would have been a really nice field to have in the new format. As XML it shouldn't be too hard to add, but someone would have to go through all existing definitions and add a MIME type / MIME types to them. :(

The reason I suggest this, is that CGI should pass an HTML heading containing MIME Type to a browser, before sending on Binary files... You can't always expect the server daemon to know, and just going by file type isn't always a good (safe, or correct) idea. Being able to use TrID to identify the most appropriate MIME type to ascribe to a file would be really useful... but for now, I will have to map the descriptions to MIME types with a separate database, which is a shame. :-\

Mark0

  • Administrator
  • Hero Member
  • *****
  • Posts: 2743
    • Mark0's Home Page
Re: .xml in TrID
« Reply #1 on: May 07, 2007, 10:54:31 PM »
I don't understand how I import the .xml definitions into the .trd file so that TrID will use them... is that possible? or should it just pick up .triddef.xml files in it's directory? Doesn't seem to.
The .XML defs can be used directly by TrIDNet (the GUI version of TrID).
But you can use the TrIDDefsPack utility to create a FileDefs.TRD file from the *.trid.xml ones. You can find it in the same TrID page, or here.

About the Mime type... You are right, off course. When I started developing TrID, MIME wasn't on my priorities list. But I can see it can be very useful, so I will surely consider adding support to that in some way.

Thanks for your feedback,
Bye!