I have to say you need to refer back to my original question where I ask the
question about SOM.
"SQL Server Development Team [MSFT]" <sqldev@microsoft.com> wrote in message
news:O80gTLgVDHA.2212@TK2MSFTNGP12.phx.gbl...[color=blue]
> You can load schema to memory (XmlSchema.Read) and use SOM model to access
> it.
> Thanks,
>
> - ilia
>
> --
> This posting is provided "AS IS" with no warranties, and confers no[/color]
rights.[color=blue]
> Use of included script samples are subject to the terms specified at
>
http://www.microsoft.com/info/cpyright.htm.
> "Matt Frame" <mdframe@sorvive.com> wrote in message
> news:uZ8MszRVDHA.2224@TK2MSFTNGP09.phx.gbl...[color=green]
> > I am just starting to work with Schemas and VB.Net. I created a simple
> > schema with a structure of a top level group, then inside that group I[/color]
> have[color=green]
> > sub-groups and elements and within the sub-groups I have other elements,
> > some of these elements have attributes.
> >
> > I want to read that schema into a simple VB.Net app that reads the[/color][/color]
schema[color=blue][color=green]
> > file and just prints out the information about the schema like so:
> >
> > For Each grp in schema.groups.values
> > console.writline("Group: {0}", grp.name)
> > For Each elm in grp
> > Console.Writline("Element: {0}, elm.name
> > For Each att In elm
> > Console.Writeline("Attribute: {0}, att.name
> > Next
> > Next
> > Next
> >
> > As I said I may have groups within groups and so on and elements within
> > elements so I am really not sure how to use the SOM and do this. Is[/color][/color]
this[color=blue][color=green]
> > possible? Does anyone have a sample of doing something similar to this?[/color]
> I[color=green]
> > have looked for samples around the internet and at Microsoft but I have[/color]
> not[color=green]
> > come up with anything.
> >
> > Your help is greatly appreciated.
> >
> > Thanks,
> >
> > Matt
> >
> >[/color]
>
>[/color]