I've got two xml schemas which look something like:
<xs:schema xmlns:xs1="http://www.w3.org/2001/XMLSchema" ...>
<xs:schema xmlns:xs2="http://www.example.com" ...>
I'm wanting to take these two separate schemas and merge them into one,
so the result would be:
<xs:schema xmlns:xs1="..." xmlns:xs2="..." ...>
So my question is, how can I pull out the namespace definitions from
each of the separate schemas? I can do "$root attributes" but what it
returns doesn't have all the information I want.
Do I even need to do this step or is there a tdom command I'm missing
that can merge these two schemas into one in one fell swoop?
I'm tempted just to use string commands to pull that stuff out, but
surely there must be a way to take advantage of tdom to do the work.