Hi!

I have a little problem in handling instances of global types generated
by parsing an xml-string.

In my schema there is defined an element containing a complex type,
which is itself a global type in this schema. When I parse a xml-string
to this complex type everything looks fine until I set this instance of
the complex type as the one in an instance of the element. In the
element the complex type is nested into another instance of the complex
type and seems not to be recognized as a complex type, but as additional
data not defined in the schema.
If I replace the name of the complex type in the xml-string with
"xml-fragment" before parsing, the above described does not happen,
instead everything works fine again until I compare this instance of
complex type to another instance. The comparison fails because the name
of the instance is not the same, it is still xml-fragment...

So for the moment I have to decide which of these problems I have to
work around, but I really would prefer to know how to handle these
correctly.
My best way to avoid this is to write complete elements, parse those and
extract the complex types from them, but thats not really perfect, too.

Thanks in advance for helping
Ramin


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to