You bind to records one at a time as they arrive. Processing starts right away and finishes when your stream ends. If the stream doesn't end, so what you just keep parsing on the fly.
None of the tools I mentioned do that. An extension of one will. Soon.
They're still DOM underneath, with all the disadvantages.
No they're not. These tools compile a schema to generate classes and then build instances of those classes (the objects) using the XML values to initialise them. JAXB, castor and SNAQue have nothing to do with DOM.
Binding tools let you, as a programmer, write code over the XML using the same semantic model that the data represents. You never see nodes, children, attributes. You see the real world view. If it's XML about books, ISBN and prices your code works with books ISBN and prices with associated types string, int, float etc.
Yep, I've been using that technology for the last few weeks and it's pretty cool. Takes a while to get used to their mapping from Java classes to XML but when you do the rest is simple.
And when the XML changes, the system rebinds just to the data you want! Adding new tags doesn't break your old code. Sweet!
There's more than SAX and DOM out there. What about data binding tools? Generate some classes from your DTD/schema, call bind(xmlFile) and you've got objects to work with.
There are even partial matching binding architectures. The best one I've seen is SNAQue.
Not only have Microsoft submitted the C# and CLR (latter called CLI in this context) specs to ECMA, they have been accepted and standardised. C# is ECMA-334 and and CLI is ECMA-335.
Anyone can implement their own versions under any license.
I think he means built-in. The new Sony vaio has built in wireless ethernet. Dunno about built-in bluetooth on laptops. BT still has problems with compatibility between vendors so it aint great. Yet.
I met Don Syme in MSR Cambridge last September. He showed a game of life simulator written in ML with a graphical front end in C#. They are working on Haskell with SPJ for.NET but Don's been busy working on generics (C++ style templates) with Andy Gordon and others. They wanted to get generics into the CLR before the specification was sealed.
That's exactly the thing to do. If we ever get DSL rolled out though - still waiting:(.
Re:This shouldn't happen again
on
Tito In Space
·
· Score: 2
They're more worried about him pressing the "crash land" button. I wonder if the Chinese would give it back?
Re:What worries me most...
on
Tito In Space
·
· Score: 2
Denis Tito is Russian
Eh? He's from California. Read the BBC's profile of him and you'll see that he worked in NASA in the 60s for 5 years.
Re:oh yeah that proves something: NASA deserpation
on
Tito In Space
·
· Score: 2
Tito began his career working as a NASA engineer. He left to make more money and set up his investment banking company. He's spent the last year training with the Rusian cosmonauts for this. Calling him a common man / rich fool is well off the mark.
On your NT box: bring up the Task Manager, switch to the "performance" tab and the hold down the left mouse button anywhere on the desktop. 100% CPU usage baby!
It's from an early 90's Sega Genesis game with a badly translated intro (from Japanese to English). "All your base are belong to us" is just one of the (many) gramatical errors the translators made:
In A.D. 2101
War was beginning.
Captain: What happen ?
Operator: Somebody set up us the bomb
Operator: We get signal
Captain: What !
Operator: Main screen turn on
Captain: It's You !!
Cats: How are you gentlemen !!
Cats: All your base are belong to us
Cats: You are on the way to destruction
Captain: What you say !!
Cats: You have no chance to survive make your time
Cats: HA HA HA HA....
Cats: Take off every 'zig'
Captain: You know what you doing
Captain: Move 'zig'
Captain: For great justice
1) XML gives you more than just label-value pairs. XML documents have an implicit heirarchical structure (e.g. parent-child and ancestor). You can use this to group and nest related data.
2) With the inclusion of DTD's, to enforce a common layout, you can check to see if an XML document will fit your data model and work with your exisitng applications.
3) Off the shelf parsers (e.g. SAX and DOM) will save you time generating and reading your data sets.
I thought ShoeBoy was referring to all the goatse.cx links on slashdot. Everytime he gets duped into clicking the link and the image loads up he just *has* to drop his pants and have a go!
"Oops, I've put my knob through the fscking screen again!!!"
You bind to records one at a time as they arrive. Processing starts right away and finishes when your stream ends. If the stream doesn't end, so what you just keep parsing on the fly.
None of the tools I mentioned do that. An extension of one will. Soon.
They're still DOM underneath, with all the disadvantages.
No they're not. These tools compile a schema to generate classes and then build instances of those classes (the objects) using the XML values to initialise them. JAXB, castor and SNAQue have nothing to do with DOM.
Binding tools let you, as a programmer, write code over the XML using the same semantic model that the data represents. You never see nodes, children, attributes. You see the real world view. If it's XML about books, ISBN and prices your code works with books ISBN and prices with associated types string, int, float etc.
Yep, I've been using that technology for the last few weeks and it's pretty cool. Takes a while to get used to their mapping from Java classes to XML but when you do the rest is simple.
And when the XML changes, the system rebinds just to the data you want! Adding new tags doesn't break your old code. Sweet!
There's more than SAX and DOM out there. What about data binding tools? Generate some classes from your DTD/schema, call bind(xmlFile) and you've got objects to work with.
There are even partial matching binding architectures. The best one I've seen is SNAQue.
Yesss, and it would be your preciousssss...
Anyone can implement their own versions under any license.
You could get a genetically modified pet from Transgenic Pets. Their latest idea is to create alegy-proof pets.
I think he means built-in. The new Sony vaio has built in wireless ethernet. Dunno about built-in bluetooth on laptops. BT still has problems with compatibility between vendors so it aint great. Yet.
I met Don Syme in MSR Cambridge last September. He showed a game of life simulator written in ML with a graphical front end in C#. They are working on Haskell with SPJ for .NET but Don's been busy working on generics (C++ style templates) with Andy Gordon and others. They wanted to get generics into the CLR before the specification was sealed.
USB Cradle $50 bucks
AC Adapter $30 bucks
You need to buy an AC Adapter? I've got a little check box that says "Post Anonymously", just above the submit button, that seems to do the trick.
Nah, you could never ban him. Bernard knows what he's doing. He'll just upload an internet to his mouse mat and store it on a CD RAM for later use.
Bernie, stop posting here! There are enough ignorants on /. without you too. And BTW the dot-gone has nothing to do with your lack of employment.
If we all send Bernie emails addressed only to Bernie then it is not spam. To be spam emails must be both bulk and unsolicited.
That's exactly the thing to do. If we ever get DSL rolled out though - still waiting :(.
They're more worried about him pressing the "crash land" button. I wonder if the Chinese would give it back?
Eh? He's from California. Read the BBC's profile of him and you'll see that he worked in NASA in the 60s for 5 years.
Tito began his career working as a NASA engineer. He left to make more money and set up his investment banking company. He's spent the last year training with the Rusian cosmonauts for this. Calling him a common man / rich fool is well off the mark.
On your NT box: bring up the Task Manager, switch to the "performance" tab and the hold down the left mouse button anywhere on the desktop. 100% CPU usage baby!
But I thought that: "if all the people in China simultaneously skinnydipped in a lake it would send a tidal wave around the world FIVE TIMES".
2) With the inclusion of DTD's, to enforce a common layout, you can check to see if an XML document will fit your data model and work with your exisitng applications.
3) Off the shelf parsers (e.g. SAX and DOM) will save you time generating and reading your data sets.
I think you mean it is not a programming language.
XML = eXtensible Markup Language
It is a language. It has a defined syntax and semantics.
Umm, you could mark up data using XML making it self describing.
Except maybe over the photocopier...
"Oops, I've put my knob through the fscking screen again!!!"
Eugh!