Merge two XSD's

Jun 12, 2009 at 3:45 PM

Hello,

 

I have an XML file whose format is defined by two different XSD files:

<gpx xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="1.0" creator="Groundspeak, Inc. All Rights Reserved. http://www.groundspeak.com" xsi:schemaLocation="http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd http://www.groundspeak.com/cache/1/0 http://www.groundspeak.com/cache/1/0/cache.xsd" xmlns="http://www.topografix.com/GPX/1/0">

How do I use Linq2XSD for accessing the file correctly given that the format is defined y gpx.xsd as well as cache.xsd?

I can use both as arguments for Linq2Xsd.exe, but the file generated then contains naturally two different namespaces. I can use gpx.Load() to load the xml file but how do I access the fields specific to cache.xsd?

Regards,

Chris.