XMLBeans und Änderbarkeit/Erweiterbarkeit von XSD



Hallo allerseits,

ich bin dabei ein Framework zu entwickeln welches intern XMLBeans
benutzt. Ich habe ein XML Schema geschrieben welche erstmal alle
relevanten Informationen enthält. Das Framework soll über eine GUI
gestartet werden und ein Wizard zum Erstellen der XML-Instanz gemäß der
XSD anbieten. Sobald die XML-Datei vorliegt, kann das Framework mit
diesen Informationen weiter arbeiten.

Für diese Zwecke hat mir XMLBeans sehr gut gefallen. Ich kann nämlich
die XSD übergeben und schon bekomme ich eine JAR-Library mit der ich
eine XML-Datei gemäß der XSD erstellen und validieren kann.

Nun soll aber das Framework auch erweiterbar sein. D.h. es könnenn
später weitere Elemente/Attribute zu der momentanen XSD-Datei
dazukommen. Eigentlich kein Problem, denn ich generiere mir neue
JAR-Library und schon habe ich alles was ich brauche.Das Problem ist
jetzt allerdings, dass ich ziemlich tief in den Code des Frameworks
gehen muss, um dort die ganzen dazugekommenen Elemente/Attribute auch
anzupassen, dass sie auch erkannt werden.Meine Frage ist an dieser
Stelle: Mit welchen Mechanismen kann man denn diese erforderlichen
Änderungen minimal halten? Ich habe das mit Wrapping versucht, aber
irgendwie wurde es nur komplizierter. Kann mir vielleicht jemand weitere
Tipps geben?

Bedanke mich im Voraus.

Gruß
Tarik
.



Relevant Pages

  • Re: ByRef/Ref passing in Web Services
    ... > say "The .NET framework will map a ref param onto WebServices semantics". ... > approach to web services is from an object mindset which is fatal. ... > framework (SOAP, WSDL, XSD, etc). ... > implementation of web services that wants to map XML messages onto classes ...
    (microsoft.public.dotnet.framework)
  • Re: ByRef/Ref passing in Web Services
    ... then I'd rephrase "WebServices can indeed pass ByRef/ref parameters" to say "The ..NET framework will map a ref param onto WebServices semantics". ... Web Services are about XML message passing. ... My point is that the framework is so good at hiding the real thing we're working with (XML) such that it lets you do dumb things that you really shouldn't be doing. ... The reason is that XML Schema is how we represent the structure of the XML we're sending across the wire, and the framework infers an XSD from your parameters' type definitions. ...
    (microsoft.public.dotnet.framework)
  • Re: VS2008: should data sets be placed in App_Data?
    ... Datasets aren't the same as XSD schema. ... "Arbitrary file types can be placed in the App_Code folder to create strongly typed objects. ... In VS2008 the framework does not give me that option. ... Does anyone know what is behind the change and what the recommended practice is? ...
    (microsoft.public.dotnet.framework.aspnet)
  • XML Serialization Configurable?
    ... Framework 3.5, I have a DataSet made in C# with a single DataTable ... Nothing comes from a database, I have made the whole thing ... I get XML with an XSD that is not "conformant". ... rehydrate to a DataSet when I want it. ...
    (microsoft.public.dotnet.framework.adonet)