BizTalk Server General - Re: Taking out namespace from SchemaWithNone object in custom FFDasmComp

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > August 2005 > Re: Taking out namespace from SchemaWithNone object in custom FFDasmComp





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Taking out namespace from SchemaWithNone object in custom FFDasmComp
yakij@court.gov.il

2005-08-01, 5:51 pm

N.m

i run with reflection here is the code

//load schema
Assembly assembly = Assembly.Load(schemaWithNone.AssemblyName);
Type type = assembly.GetType (schemaWithNone.DocSpecName);
//get shena and xml context property
PropertyInfo xmlContentPropertyInfo = ("Schema");
//load Instance of assembly
object assemblyInstance = assembly.CreateInstance(type.FullName);
//get properties values

XmlSchema xmlSchema =
(XmlSchema)schemaPropertyInfo.GetValue(assemblyInstance,null);
//fill privte var
targetNameSpace = xmlSchema.TargetNamespace ;

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com