Berin Loritsch a écrit : > > Peter Donald wrote: > > > > On Sat, 29 Sep 2001 03:24, Berin Loritsch wrote: > > > The changes would entail the following: > > > > > > 1) Creation of the Namespace object > > > 2) Adding the "getNamespace()" method to Configuration > > > > > > The implementation of the Namespace object would have an > > > interface like this: > > > > > > Namespace > > > { > > > String getPrefix(); // the portion of the xmlns that is the prefix > > > String getURI(); // the portion of the xmlns that is the uri > > > String toString(); // the xmlns as it would appear in an element > > > boolean equalTo(); // tests namespace objects and strings > > > } > > > > While I actually like the feature (I remember near begging for it at one > > stage) I am a bit cautious about how it is planned to be used. Could you give > > a usecase so I can be comforted to know your not using it to process data - > > which would be better served by dom4j, jdom or similar ;) > > First of all, I don't like DOM APIs. Anyway, I will be using it to > register a type mapping. A type mapping in Apache Axis is one that maps > a schema (or primitive type) to a serializer component.
I agree with you, W3C DOM APIs are painful to use. But don't you think that by adding namespace in Configuration, and then selection by namespace and then... , you will end up with a yet another java-friendly equivalent to DOM when there are already JDOM and DOM4J ? DOM4J's nice interface-based design can be mapped on about anything (there are great examples in the distro), even on data structures where you cannot travel up in the hierarchy like Configuration. So what about a DOM4JConfigurable interface and two adapter classes to wrap a Configuration as a DOM4J and a DOM4J as a Configuration to ensure compatibility with existing code ? Just my .02 euro... > Therefore, I need the ability to read the namespace data for that purpose. > In the future, WSDD will be introduced, requiring the schema to be in > a specific namespace, and embedding portions of a WSDL document inside > of it. Each of these will require determining the namespaces involved. > -- Sylvain Wallez Anyware Technologies - http://www.anyware-tech.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]