Re: [Pharo-users] Generating custom classes based on attributes from XML Document

2016-08-17 Thread monty
efine polymorphic extension methods on every node class or use a bunch of isWhatever testing messages when tree traversing. > Sent: Friday, March 18, 2016 at 10:17 AM > From: "Peter Uhnák" > To: "Pharo Users List" > Subject: [Pharo-users] Generating custom classes bas

Re: [Pharo-users] Generating custom classes based on attributes from XML Document

2016-03-19 Thread Hernán Morales Durand
Hi Peter and Stef, Sounds like you want a XML Digester? This is the one in Java: https://commons.apache.org/proper/commons-digester/ May be you want to check as reference. Cheers, Hernán 2016-03-19 9:14 GMT-03:00 stepharo : > We had great fun with peter because I could understand what I was lo

[Pharo-users] Generating custom classes based on attributes from XML Document

2016-03-19 Thread Peter Uhnák
I have a XML like this and I would like to generate UmlClass and UmlAssociation classes for this. I could use XMLPluggableElementFactory, however that only allows me to specify the target class only on the element's name, such as doc := (XMLDOMParser on: someXML) nodeFactory: (XML

Re: [Pharo-users] Generating custom classes based on attributes from XML Document

2016-03-19 Thread stepharo
We had great fun with peter because I could understand what I was looking for around my xml importer. Peter has the same problem so it was fun that we can talk and see the light. What we learned in the process is that the pluggable behavior is nice but limited - type of matching - you