[xsd-users] Serialization Problem with namespace
Boris Kolpackov
boris at codesynthesis.com
Wed Mar 5 02:15:22 EST 2008
Hi,
kun lv <lvkun2006 at gmail.com> writes:
> <ContentDefine xmlns="http://ContentImport <http://contentimport/>"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
> http://ContentImport <http://contentimport/> ContentDefine">
>
> [...]
>
> how can I get the string without the namespace. like:
> <ContentDefine>
> </ContentDefine>
If the schema that defines the ContentDefine element has target
namespace then you will need to get rid of that first. Then, in
your code, you have a fragment that looks like this and which
you need to remove:
map[""].name = "http://ContentImport <http://contentimport/>";
map[""].schema = "ContentDefine";
If this does not help then send the code sample that shows how
you perform the serialization.
Boris
More information about the xsd-users
mailing list