Ok, I am not sure if it is possible. But what I'm trying to do is
validate an XML file with out having to add namespace in the xml.
What I mean is lets say I have 2 XSD
they have different namespaces and lvl2 is used in lvl using the
import feature
lvl1.xsd
-> lvl2.xsd
the xml I would like to validate would be as follow
<level1>
<level2>
<string>hello</string>
<Number>10</Number>
</level2>
<level1>
right now I have to define the namespace of a level to to use the
sublevel tag that way:
....
<l2:string>hello</l2:string>
<l2:Number>10</l2:Number>
....
my problem is I don't want the guy who write the xml to be aware of
the structure I use for the XSD. and I want the possibility of having
multiple tags with the same name having different signification based
on where they are placed in the schema.
what I though of is in someway, if he find a tag <level2> it
automaticaly switch the default namespace to the level2 and so on
until it reach </level2> where it would switch back to the level1
namespace.
I think what I want should be pretty easy to do but I just can't
manage make that work.
Thx in advance for your help