FubarDevelopment / QuickGraph

Fork of https://quickgraph.codeplex.com/
Microsoft Public License
9 stars 2 forks source link

CP-14112: Schema error in GraphMLExtensions.DeserializeAndValidateFromGraphML #93

Open fubar-coder opened 6 years ago

fubar-coder commented 6 years ago

From unknown CodePlex user on Thursday, 10 September 2009 20:36:04

If I attempt to use the DeserializeAndValidateFromGraphML(), the following error is presented in the form of an XmlSchemaException:   'SchemaLocation' must successfully resolve if contains any child other than .   I believe the problem occurs because GraphMLExtensions.AddGraphMLSchema only adds "QuickGraph.Serialization.graphml.xsd" to the reader's schema set, and not any of the other schemas that the file references.

GraphMLDeserialization.zip

fubar-coder commented 6 years ago

Form unknown CodePlex user on Thursday, 10 September 2009 22:33:16

It turns out that this fails when the network is disabled on the executing machine. If the network is enabled, the referenced schemas are downloaded from the URI given in the schemaLocation attribute.