EDN Admin
Well-known member
When I load a xml-document with the related schema in VB6 to an object of type MSXML2.DOMDocument40 I get more attributes in the loaded object as declared in the original xml document.
In C# I get only the attributes which are declared in the original xml document.
<div style="color:Black;background-color:White; <pre>
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; complexType <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; WohnungTyp<span style="color:Black; " <span style="color:Red; abstract<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; mixed<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; "<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; complexContent <span style="color:Red; mixed<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; "<span style="color:Blue; >
.....
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; attribute <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Ausstattungsqualitaet<span style="color:Black; " <span style="color:Red; type<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; AusstattungsqualitaetsTyp<span style="color:Black; " <span style="color:Red; use<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; optional<span style="color:Black; " <span style="color:Red; default<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; KeineAngabe<span style="color:Black; "<span style="color:Blue; />
....
<span style="color:Blue; </<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; complexType<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; complexType <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; VirtuelleImmobilieBaseTyp<span style="color:Black; " <span style="color:Red; abstract<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; true<span style="color:Black; " <span style="color:Red; mixed<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; "<span style="color:Blue; >
....
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; attribute <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Importmodus<span style="color:Black; " <span style="color:Red; type<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; AktionsTyp<span style="color:Black; " <span style="color:Red; use<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; optional<span style="color:Black; " <span style="color:Red; default<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; importieren<span style="color:Black; "<span style="color:Blue; />
....
<span style="color:Blue; </<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; complexType<span style="color:Blue; >
[/code]
When I remove the default-keyword I dont see the attributes in VB6 anymore. Does anybody know the phenomenon?
View the full article
In C# I get only the attributes which are declared in the original xml document.
<div style="color:Black;background-color:White; <pre>
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; complexType <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; WohnungTyp<span style="color:Black; " <span style="color:Red; abstract<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; mixed<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; "<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; complexContent <span style="color:Red; mixed<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; "<span style="color:Blue; >
.....
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; attribute <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Ausstattungsqualitaet<span style="color:Black; " <span style="color:Red; type<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; AusstattungsqualitaetsTyp<span style="color:Black; " <span style="color:Red; use<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; optional<span style="color:Black; " <span style="color:Red; default<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; KeineAngabe<span style="color:Black; "<span style="color:Blue; />
....
<span style="color:Blue; </<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; complexType<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; complexType <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; VirtuelleImmobilieBaseTyp<span style="color:Black; " <span style="color:Red; abstract<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; true<span style="color:Black; " <span style="color:Red; mixed<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; "<span style="color:Blue; >
....
<span style="color:Blue; <<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; attribute <span style="color:Red; name<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Importmodus<span style="color:Black; " <span style="color:Red; type<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; AktionsTyp<span style="color:Black; " <span style="color:Red; use<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; optional<span style="color:Black; " <span style="color:Red; default<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; importieren<span style="color:Black; "<span style="color:Blue; />
....
<span style="color:Blue; </<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; complexType<span style="color:Blue; >
[/code]
When I remove the default-keyword I dont see the attributes in VB6 anymore. Does anybody know the phenomenon?
View the full article