We'd be interested to make use of this feature in the PHP SDO project, too.
I can see one possible workaround and one possible fix for this.
The workaround is that you provide an xsd that defines just the root
element
giving it open content. In your case that would be something like
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="customer" type="customerType"/>
<xsd:complexType name="customerType">
<xsd:sequence>
<xsd:any namespace="##other" processContents="lax"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
Then the root element has a type and will be processed normally, and
everything it contains will be processed as open content. I tried this and
it seems to work.
The fix would be for me to hack the code so that when we find that a root
element has no corresponding type (or possibly when there are no user
defined types at all) then I could automagically create an open type
for it.
This would give the same behaviour as the previous case but spare you the
need to provide the .xsd
I'm inclined to just go ahead and do that since its not obviously any
worse
than the current behaviour but I'm open to other ideas.
Regards,
Geoff.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]