Hi,
I am trying to map a custom xml file to existing smalltalk objects and got some questions. 1. Namespaces The given document does not declare any namespace. Is it possible to process the document without specifing a namespace in the binding? If not, which is the best way to apply a namespace to the whole document? 2. Nested Elements Imagine the following structure: <foo> <name>name 1</name> <bar attr="value 1"/> </foo> or: <foo> <name>name 2</name> <bar> <buzz>value 2</buzz> </bar> </foo> and a Mapping like: (Foo new) name: 'name 1' ; bar: 'value 1'. or: (Foo new) name: 'name 2' ; buzz: 'value 2'. How can I realized something like this? 3. Binding Does a complete description of binding specifications exist (all elements, attributes and possible values)? Thanks in advance! Steffen Märcker _____________________________________________________________________ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=100071&distributionid=000000000066 _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Steffen,
I haven't checked in the new Version 7.6 docs, but back when we mapped some objects to XML there was some documentation in the web services guide. It is far from being complete, and you are on your own and have to experiment a bit. This list has shown to be very helpful with specific questions, including some friendly and helpful advise from Cincomers. We tried both approaches: building the mapping spec in code as well as in an xml mapping file. In the end, we decided not to use xml too much ;-) I remember having had quite some trouble getting references to work and heterogeneous collections still are rough, but you can get a lot of stuff to ork nicely with mappings. Debugging what an xml parser does is - as with all xml related code no matter which language - simply hell. But that's not to blame on Cincom or Smalltalk. It's just the bitter sweet truth about XML parsers... ;-) Joachim Steffen Märcker schrieb: > Hi, > > I am trying to map a custom xml file to existing smalltalk objects and got some questions. > > 1. Namespaces > The given document does not declare any namespace. Is it possible to process the document without specifing a namespace in the binding? If not, which is the best way to apply a namespace to the whole document? > > 2. Nested Elements > Imagine the following structure: > <foo> > <name>name 1</name> > <bar attr="value 1"/> > </foo> > or: > <foo> > <name>name 2</name> > <bar> > <buzz>value 2</buzz> > </bar> > </foo> > and a Mapping like: > (Foo new) name: 'name 1' ; bar: 'value 1'. > or: > (Foo new) name: 'name 2' ; buzz: 'value 2'. > > How can I realized something like this? > > 3. Binding > Does a complete description of binding specifications exist (all elements, attributes and possible values)? > > Thanks in advance! > Steffen Märcker > _____________________________________________________________________ > Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! > http://smartsurfer.web.de/?mc=100071&distributionid=000000000066 > > > _______________________________________________ > vwnc mailing list > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Free forum by Nabble | Edit this page |