[xsd-users] Substitution groups & different namespaces.

Moss, David R (SELEX Comms) (UK Christchurch) david.r.moss at selex-comm.com
Wed Dec 13 14:10:44 EST 2006


All,

Given the attached files, using xsd-2.3.1.b2-i686-windows and the
command 
--generate-polymorphic among others, when trying to load the xml file:

auto_ptr<class Base::UserDatabase_t> 
          db( Base::UserDatabase( "test-users.xml" ) );

an exception is thrown stating:

"There is no Grammar for uri: ."
     
I'm thinking it has something to do with the derived xsi:type specified
in the XML file being in a different (i.e. not in one at all) namespace
to the Base types.

Any help greatly appreciated.

Cheers Dave.

Dave Moss
SELEX Communications
Grange Road
Christchurch 
Dorset  BH23 4JE
United Kingdom
Tel: + 44 (0) 1202 404841
Email: david.r.moss at selex-comm.com



********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-users.xml
Type: text/xml
Size: 338 bytes
Desc: test-users.xml
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20061213/1a8d3011/test-users.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: derived-user-config.xsd
Type: application/octet-stream
Size: 744 bytes
Desc: derived-user-config.xsd
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20061213/1a8d3011/derived-user-config.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-user-config.xsd
Type: application/octet-stream
Size: 595 bytes
Desc: test-user-config.xsd
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20061213/1a8d3011/test-user-config.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-users.xsd
Type: application/octet-stream
Size: 555 bytes
Desc: test-users.xsd
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20061213/1a8d3011/test-users.obj


More information about the xsd-users mailing list