theJavaBasket
XPath is to XML what SQL is to databases. Did i get it right?
The plural of schema is
schemata. Teng !!
Somewhere i read that there are things DTDs can do that XML schemas can't, and vice versa. Now as i was reading XML schemas, i'm
not seeing what DTDs can do that it can't. XML schemas are extensible and have support for data types which DTDs can't do.
The only thing DTD has going for it is that it looks
simpler.
from www.sinfest.net ::
All I ever wanted in life was to be worshipped like a god, live like a rock star, drive women wild, make a fortune, live fast, die young, conquer the universe, travel the world, meet interesting people, solve the Grand Unification Theory, find the Missing Link, fight the good fight, live for the moment, seize each day, know what really matters, end world hunger, cure cancer, change the world, vanquish the dragon, save the princess, be super popular but too cool to care, climb Mount Everest, scale the Great Wall of China, swim the seven seas, howl at the moon, sound my barbaric yawp over the rooftops of the world, tag up this earth with my street name, run around with perfect conviction that my life is the meaning of life, be master of my own fate, embrace my destiny, feel as much as I can feel, think as much as I can think, do as much as I can do, get down, get up, dance to the beat of life on and on and when I'm done let the people go, "Now that was a funky man."
-T.
Tatsuya is a funky d3wd. heh
Castor is used to transform XML to Java objects in a method called data-binding. I was looking at JDOM and thought, does it also do the same?
Apparently, i've been reading through JDOM and the answer seem vague. JDOM says it makes JDOM objects to and from XML, DOM, SAX events, and
something else. That something else is vagueing me out.
It is clear however, that Castor is tied specifically to Java object / XML / Database binding. But an XML document read by JDOM is technically an object structure itself, is it not?
I'm using XMLSpy by Altova to do XML editting, which is a mighty fine tool i say (even though i won't be nor will be using all of its features).
Tidbit: When XMLSpy inserts a DTD definition in your XML (), it will default into the 'backslash-directory' format of the path of your actual DTD file. Running the JDOM parser to parse your XML in a java class might complain of a certain error in your XML. Most probably, it will point to the line where you defined your DOCTYPE definition. Solution? Write your filepath in the 'frontslash' form like this:
<!DOCTYPE commitment SYSTEM "file://C:/TheJavaBasket/XMLprimo/TestXML/commitment.dtd">