Dear Akira,
Unfortunately, xml syntax you have does not supported by ROOT xml parser. More precisely, this one:
...
<!DOCTYPE gdml [
<!ENTITY materials SYSTEM "MT3_materials.xml">
]>
...
and than reference like this:
...
<!-- Materials definition CallBack -->
&materials;
...
You should merge these files together to be able use them in ROOT.
Regards,
Sergey Linev
-- Sergey Linev Mail: S.Linev_at_gsi.de GSI, Experiment Elektronik Phone: +49-6159-71-1338 Planckstr. 1 FAX: +49-6159-71-2986 D-64291 Darmstadt GSI Helmholtzzentrum für Schwerionenforschung GmbH Handelsregister: Amtsgericht Darmstadt, HRB 1528 Geschäftsführer: Prof. Dr. Horst Stoecker; Christiane Neumann Vorsitzende des Aufsichtsrates: Dr. Beatrix Vierkorn-Rudolph Akira OKUMURA wrote:Received on Mon Feb 08 2010 - 08:31:54 CET
> Hello ROOTers,
>
> I created a GDML file using the trial version of FASTRAD which can
> convert CAD STEP files to GDML files.
> http://www.fastrad.net/
>
> The attached files are those created by FASTRAD. But I cannot open
> MT3.gdml from TGeoManager.
>
> $ root
> root [0] TGeoManager::Import("MT3.gdml")
> Info in <TGeoManager::Import>: Reading geometry from file: MT3.gdml
> Error in <TXMLEngine::ParseFile>: XML syntax error at line 3
> Error in <TGeoManager::Import>: Cannot open file
> (class TGeoManager*)0x0
>
> MT3.gdml includes an external XML file, MT3_materials.xml, which is
> also attached. I suppose this inclusion is the reason of this parser
> error.
>
> Is it possible to handle this kind of files in ROOT? I can open them
> when using Geant4.
>
> Regards,
>
> OKUMURA, Akira oxon_at_juno.phys.s.u-tokyo.ac.jp
> Department of Physics, The University of Tokyo
> 7-3-1 Hongo, Bunkyo-ku, Tokyo 113-0033
> TEL/FAX +81 3-5841-4173/4059
> Skype : okumura.akira
>
This archive was generated by hypermail 2.2.0 : Mon Feb 08 2010 - 11:50:01 CET