Re: How to map XML attributes



http://blogs.tedneward.com/2006/06/26/The+Vietnam+Of+Computer+Science.aspx

This is such a good article.

Any attempt at or>xml mapping could be caught/fraught with issues.
Another boundary is that of the distinction of data & information.
Data is raw. Information is meaningful data.
Meaningful is contextual.
Context is a matter of perception.
Perception is not always reality.
</end.of.suck.eggs.yak>

Not that I have any real answer to this.
Though I have noticed that to some, xml is refreshingly raw.
For instance I understand that some airport baggage handling software uses xml.
It's data, it shifts the bag, it expires.

One possible reason to map xml may be to avoid the knarly world of REXml.
Which is actually pretty good in a martial sort of way.
Avoidance does not mean not using.
http://xml-simple.rubyforge.org/
This wraps around Rex in a Ruby sort of way.
Not ORMing.
Though even when using a wrapper like this, usually there will be a
0-day when one has to go under the hood.

http://www.ibm.com/developerworks/xml/library/x-matters18.html
There is another article in alphaworks, canna find now.
It described a wrapper technique using method_notfound.
There was trouble with the '.' occasionally found in the element name..
(Just read your post Trans).

xmlification has been discontinued?
http://newsattic.com/d/hl/xmlification.html

Advantages & disadvantages:
XML is an adv. when debugging, being simple.
Mapping via the xml may be better than via the DTD as flexibility
could be a adv.
In that when the data structure is not totally defined, the mapping
regenerates a 'schema'.
In the arena of impedance mis-match, 2 many mode-shifts betwixt disk &
browser can send you to the corner shop.
When moving towards an object design there is a mapping back to get to
a structure which can be delivered to an xml-database.
Going raw to BDBxml is a major performance advantage.

Design can also factor in the cost of debugging.
If this is to be a tool of general purpose, then it has a high-hit factor.
Would the mapper be suitable if there were to be two storage regimes?
One for development (easy to debug), another for deployment (performance).

How many frameworks are ultimately involved?
xml implies browser interaction?
xml being manipulated by ECMAscript?

These are of course, questions I've been rattling with recently.

Is Ruby too much fun?

MarkT

.



Relevant Pages

  • XML Schema (XSD) from SQL Server
    ... trying to use FOR XML to generate XML data and XSD and ... the XSD I get from: ... It only creates a validating schema. ... You would have to provide the mapping in the XSD afterwards. ...
    (microsoft.public.sqlserver.xml)
  • JAXB 2.0: ambiguity of underscoreHandling="asCharInWord"
    ... I used Google to find information about JAXB 2.0 and I ended up ... downloading a document called "The Java Architecture for XML Binding ... and the latter mapping is possible only if "_" is ...
    (comp.text.xml)
  • Advice for the XML to db problem
    ... Create an XML schema from the db schema using a tool like ... Use MSFT's version of BulkLoad to load up the incoming XML: ... I have done systems using custom Java coding that does the mapping as ...
    (comp.lang.java.programmer)
  • Re: Dataset with many-to-many relationship
    ... having a mapping table in the middle. ... now that you have a good XSD representation for your object, ... based XML to a B based XML (know what i mean? ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: How to Map an incoming large flat file in a performant way
    ... mapping large files in nearly impossible. ... > I have an 80 MB big flat file that needs to be processed by Biztalk Server ... This file needs to be mapped to another XML format. ... > disassembling to XML of this message is way too slow. ...
    (microsoft.public.biztalk.general)