Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Convert Java Model to Java Model without XML

Reply
Thread Tools

Convert Java Model to Java Model without XML

 
 
erinbot@gmail.com
Guest
Posts: n/a
 
      10-06-2006
Is there a way to convert a Java model to anyother java model without
XML?

I am planning on converting Java data model-> xml->xslt->xml->java data
model

I'd like to cut out the xml part and replace the xslt with something
that can do a straight data model to data model conversion. Is there
some mechanism that does this? If there isn't, why doesn't one exits?

 
Reply With Quote
 
 
 
 
Andreas Wollschlaeger
Guest
Posts: n/a
 
      10-06-2006
wrote:
> Is there a way to convert a Java model to anyother java model without
> XML?
>
> I am planning on converting Java data model-> xml->xslt->xml->java data
> model
>
> I'd like to cut out the xml part and replace the xslt with something
> that can do a straight data model to data model conversion. Is there
> some mechanism that does this? If there isn't, why doesn't one exits?
>

Indeed, I suspect that sometimes XSLT is (mis)used as a poor-mans
replacement for a technique known as pattern matching in functional
programming languages, eg Haskell (see haskell.org).
Where XSLT works on XML structures (thus the temptation to convert your
'models' to XML, perhaps), whereas Haskell's pattern matching mechanism
directly applys to arbitrary data structures.
The closest thing i am aware of in java world (if you ignore the fact
that it's a completely new programming language) is perhaps Scala:
http://scala.epfl.ch/ , but well err no free lunch here :-/

Not sure, but HTH...
Andreas
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XSL to convert an XML in similar format's without changing any tags Amit XML 1 05-31-2007 11:42 AM
Different results parsing a XML file with XML::Simple (XML::Sax vs. XML::Parser) Erik Wasser Perl Misc 5 03-05-2006 10:09 PM
FYI: VTD-XML, the latest XML processing model Jimmy zhang XML 0 11-11-2004 01:26 AM
FYI: VTD-XML, the latest XML processing model Jimmy zhang Java 0 11-11-2004 01:25 AM
WebService returns XML in a String - how can I 'convert' this to an XML document? Ben Turner ASP .Net 2 01-02-2004 05:20 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57