Message: Can't read xsd extensions file in GDML Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Can't read xsd extensions file in GDML 

Forum: Geometry
Date: 25 Jun, 2015
From: Christopher Walker <Christopher Walker>

Hello,
   I am trying to update a Geant4 program I have inherited from version 4.9.2 to the most recent version of Geant. 
There are several issues with it, but I am now looking at the geometry definition using GDML. 
The top of my main gdml file is this:

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE gdml [
<!ENTITY materials SYSTEM "SEMmaterials.xml">
]> <gdml xmlns:gdml="http://cern.ch/2001/Schemas/GDML" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../GDMLSchema/gdml.xsd" >

The gdml file has defined some extensions in ../GDMLSchema/gdml.xsd, but it seems that the program cannot identify them and I think the file is not read. There are further xsd files where more new GDML elements are defined and everything seems to work under 4.9.2, so I was wondering whether there is anything in GDML that has changed recently that might cause an xsd file not to be read or some other problem? My xsd file is definitely in the right location, but just to be sure I specified the directory tree from the root directory, but still the same result.

According to the GDML Users Guide - Version 2.5 (p. 49), one needs to create a new class that inherits from G4GDMLStructureRead. However, in the program it inherits from is G4GDMLReadStructure. I tried changing the code to the suggested class, but the program could not compile, so I presume that is a typo in the Users Guide.

My program has a routine thus:

void myGDMLReader::VolumeRead(const xercesc::DOMElement* const volumeElement)
{
   G4cerr << "Calling myGDMLReader::VolumeRead" << G4endl;

and this routine seems to be called as the correct output appears on the screen, but there is also a routine

void myGDMLReader::ExtensionRead(const xercesc::DOMElement* const extElement)
{
   G4cerr << "G4GDML: Reading GDML extension..." << G4endl;

and in this case no output is seen on the screen.

Any help gratefully received !

Chris

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Can't read xsd extensions file in GDML   (Christopher Walker - 26 Jun, 2015)
(_ None: Stil having problems with GDML   (Christopher Walker - 29 Jun, 2015)
(_ None: Materials properties not being set in GDML   (Christopher Walker - 01 Jul, 2015)
 Add Message Add Message
to: "Can't read xsd extensions file in GDML"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]