Slashdot Mirror


Inside XML

Years after the virtues of XML were first extolled (and plenty of uses both front-and-center and behind-the-scenes later), XML still isn't the do-all, be-all wonder we were led to believe. Book reviewing genius chromatic here dissects a book that sounds aimed at intermediate or advanced programmers (of other languages) who want extend their grasp with a greater understanding of the flexibility inherent to XML. How well it succeeds? Well, see what he's got to say about that.

Inside XML author Steven Holzner pages 1102 publisher New Riders rating 7 reviewer chromatic ISBN 0-7357-1020-1 summary A detailed but uneven treatment of XML and related topics.

The Scoop People love it, but XML won't save the world. If properly applied, it will improve the transfer of information between different individuals, platforms, and programs. A language that describes languages, XML in the real world has spawned hundreds of applications. In Inside XML, Steven Holzner attempts to make sense of the basic principles and more popular implementations as things stand right now. What's to Like? Holzner's caught platform independence fever, and he imparts a healthy sense of respect for W3C standards to his readers. While the current state of XML handling, especially in web browsers, is mediocre at best, he varies platforms when possible. Though most examples use IE on Windows, the author occasionally examines offerings from Mozilla and IBM.

The book's strength is describing a technology. The first five chapters explore XML's essential concepts, including DTDs and schemas, in as good an explanation as you'll find anywhere. Later chapters cover XSL (used to format and to transform documents), XHTML (the successor to HTML), CSS (governing the presentation of XML and XHTML documents) and RDF and CDF (to describe available resources) in sufficient detail. The explanations here are good, with accurate information and plenty of examples.

Java programmers will appreciate the extended descriptions of the DOM and SAX parsing styles. Though the examples themselves are in Java, most concepts translate fairly well to other languages. JavaScript also gets some attention, mostly in the confines of IE5.

What's to Consider? Though the cover blurb claims otherwise, most programming examples use Java. Perl earns a brief 13-page treatment, while ASP and Java Servlets share just eight pages in the same chapter. Exotic languages like C and C++ are conspicuously absent. A detailed description of the DOM and SAX approaches would benefit everyone, not just Java hackers.

This massive tome could have stood another round of editing. Many examples run up to a page and a half in length when only two to four lines have changed from the previous listing. Other material is arguably filler, such as four and a half pages of JavaScript events supported in IE, or fifteen pages detailing XML DOM objects and associated methods before giving a single example of DOM usage. The publisher could have cut between 100 and 200 pages, instead adding footnotes to authoritative sites.

Worse yet, the book's organization is questionable. After describing the basics of XML, it veers off into a 50-page JavaScript tutorial. Java soon suffers the same fate. These chapters break the flow of subjects, use no XML in their examples, and should be appendices. (They're decent, as far as tutorials go. They just don't belong in the middle of the book.) Readers will have difficulty finding useful reference material mixed in with tutorials.

English majors will also find Holzner's transitions awkward. Logical sections often conclude with a phrase such as "Now I will talk about the topic named in the heading immediately following this sentence." XML is not a serial radio cliffhanger, and most readers can find their way down the page by themselves. It occurs often enough to be distracting.

The Summary Besides the reservations above, most of the information is solid and usable. Inside XML is at its best when describing technologies instead of how to work with them. Uneven presentation hinders (not hobbles) the book, making it a better introduction than a definitive guide. Though falling short of its claims, cautious readers will learn plenty. Table of Contents
  1. Essential XML
  2. Creating Well-Formed XML Documents
  3. Valid XML Documents: Creating Document Type Definitions
  4. DTDs: Entities and Attributes
  5. Creating XML Schemas
  6. Understanding JavaScript
  7. Handling XML Documents with JavaScript
  8. XML and Data Binding
  9. Cascading Style Sheets
  10. Understanding Java
  11. Java and the XML DOM
  12. Java and SAX
  13. XSL Transformations
  14. XSL Formatting Objects
  15. XLinks and XPointers
  16. Essential XHTML
  17. XHTML at Work
  18. Resource Description Framework and Channel Definition Format
  19. Vector Markup Language
  20. WML, ASP, JSP, Servlets, and Perl
  1. The XML 1.0 Specification

You can purchase this book at FatBrain.

38 of 127 comments (clear)

  1. Wrox Press's "Professional XML" by Malc · · Score: 2

    This book has served me well.

  2. Re:xml by Doug+Merritt · · Score: 2
    We use XML extensively to get data from remote sites, like movies.com and abcnews.com, and then display that data on wireless devices like web enabled cell phones.

    It was a huge advantage, but not because XML is some amazing breakthrough, no, just because it's a standard meta-syntax. So we can re-use the XML parser on each data source rather than having to write a whole new parser for each data source, which is the way that sort of thing used to go.

    So if MapQuest started offering a new data service that we subscribed to, like driving directions for flying cars, it would be very helpful if they offered the data served from their servers in XML -- just because we are already set up to use XML.

    So the whole magic of XML is just that it's standard and flexible. That makes it highly worthwhile.

    I have my doubts about other XML related subjects like XSL and XHTML, which may not ever get hugely popular. But XML itself is already hugely popular -- behind the scenes where you may never notice it, busily exchanging data with remote servers.

    --
    Professional Wild-Eyed Visionary
  3. Re:xml by Alan+Shutko · · Score: 2

    This usage predates XML. Many compilers are written this way, in fact. One could just as easily substitute any intermediate format for XML and get the same advantages.

    The main advantage of XML is that it gives you not a common document format (since DTDs differ) but a common syntax, so you can use a common parser. That's a win, but it's not the cure for all the world's problems.

  4. Old idea new format by jbert · · Score: 2

    [This is on-topic, honest...]

    I don't know if it is just me, but does anyone else here deal with that "interesting" data represenation language "ASN.1" (Abstract Syntax Notation 1) with its associated binary representation BER (Basic Encoding Rules)?

    ASN.1 defines a textual language for the representation of named primitive data types (strings, integers, real numbers, bitstrings, etc), structured ways of grouping them together (sequences, sets, etc).

    BER provides a machine-independent way for these to be represented 'on-the-wire'. These representations are also abritrary-precision and have other cool features.

    Fortunately or unfortunately (depending on your perspective and religion with respect to 'ISO/OSI' standards) ASN.1 never really caught on in the Internet world (SNMP and LDAP permitting).

    However, I see it as playing a very similar role as XML. (Machine-independent representation of arbitrarily complex structured/nested data).

    The main difference is that the BER represenation of ASN.1 is a (somewhat complex) binary format, whereas XML is text-based.

    This is both an advantage and a disadvantage (more compact, harder for humans to read).

    I'm wondering whether it is worth anyone's time writing up a BER XML translator to attack those 'but XML is too verbose' criticisms...

    1. Re:Old idea new format by StormyMonday · · Score: 2

      "Those who do not understand ASN.1 are condemned to reinvent it. Badly."
      --SM

      Seriously, after dealing with some of the butt-ugly binary encoding schemes out there, ASN.1 looks pretty darn good.

      As others have pointed out, however, ASN.1 and XML live in totally different domains. ASN.1 is not human-readable, and XML is useless for binary data.


      --

      --
      Welcome to the Turing Tarpit, where everything is possible but nothing interesting is easy.
  5. Now that is a profound observation! by shanelenagh · · Score: 2
    I'm glad you took the time to post that comment. Although it is fairly self-evident and completely non-controversial (you could post the same comment, unaltered, about almost any technology story on Slashdot), I guess some idiot had to say it. What would Slashdot be without incisive comments like that? Well put, my friend.

    Maybe I will write a Perl program to post that comment to Slashdot about every article that comes up. I'll call it "first_post.pl" It will do constant HTTP GET's of the webserver, and post that comment right away whenever there is a new article. I will be the first-post king!

  6. XML not being the "do-all" by garcia · · Score: 2

    of course it isn't. No language does EVERYTHING you want it to do as easily as you want it to. You have to put work into it. XML is a useful language just like every other language.

    It really irks me when people say that about "X", each language has something that it does especially well, XML has its place...

  7. we've been shipping for over a year by peter303 · · Score: 2

    Several our products use XML as a scripting
    control language, parameter management, and
    report generation. It's not the core technology
    but useful. It is not necessarily the best
    featured way of performing these functions,
    but from a life-cycle maintenance point of view.
    We need things likely to be around for ten years.

  8. Re:Is this a good first book on XML? by Zico · · Score: 2

    Well, I'm currently reviewing O'Reilly's Learning XML, but I'd still say that Inside XML still seems to be a better book for beginners. Mainly because you can continue on with this book and increase your knowledge once it teaches you the basics, whereas advanced topics like XPointers and XLinks are pretty lacking in the O'Reilly book. O'Reilly's XML in a Nutshell is good, but if you choose Learning XML, it's pretty much a necessity (if you're into that fancy book learnin') because of Learning XML lack of advanced topics.

    Another book that I'd recommend for beginners just below Inside XML is the second edition of Just XML. It's not as thorough as Inside XML, but it still manages to delve into quite a bit, like XLinks and XPointers (and covers them well for beginners, slowing down for parts that the author knows his readers will have trouble wrapping their heads around). The cool thing about it is the author's very approachable style, which makes for a very quick read (plus, there's a lot of anecdotal fluff that you can skip if you're not up for being amused), and the best part is that throughout the book, you're working toward building a B-movie database. The hands-on approach is nice, as I know a lot of XML newbies are left thinking, "But what can I use this stuff for?" Do make sure that you get the second edition. Again, I've just started Learning XML, but it's not seeming like it'll top either of these two. (Not that I think it's a poor book.)

    Stay away from O'Reilly's XML Pocket Reference. It's too old. In the next month or two, they're coming out with a second edition of it, which I would expect to be a great pickup for the price. Wait 'til then.


    Cheers,

  9. Re:Did Vince McMahon just buy the XML? by King+Babar · · Score: 2
    It's like the regular HTML, but we now have extra tags like:
    • <TAUNT>
    • <FLYING BUTTRICE>
    • <CHAIRWHIP>

    Uh, scotch that. "flying buttrice" won't fly as a tag name, as one can clearly see from the spec. The BNF (buttrice-naming form) clearly states that whitespace separates a tag name from an (optional) list of attributes or the final ">". Nobody wants a malformed buttrice. ;-)

    --

    Babar

  10. Portability. by Pahroza · · Score: 2

    XML does offer great portability of content across devices. IBM uses it to provide content to their website, wap site, bluetooth devices, etc. Using XML, XSL, XSLT, Apache's Coccoon, and numerous other additions. The dynamic generation of PDFs is always nice too.

  11. Little XML data by harmonica · · Score: 2

    I think that one can offer great services processing XML data, but I can't seem to find a whole lot of it. As an example, some online TV guide could provide the information on what's on at what time simply in XML. I could retrieve that, add links to IMDB or whatever... Right now, one would have to download (messy) HTML, which is a pain to parse and likely to change its structure with the next site facelift (of whoever provides it).

    Is there a repository of XML data? A list of links, maybe?

  12. The virtual machines exist by harmonica · · Score: 2

    There are virtual machines for almost every platform. Some of them (esp. Kaffe) are free _and_ very portable.

  13. Re:xml by wiredog · · Score: 2

    That's what I should have said, "gives a common syntax".

  14. Re:xml by wiredog · · Score: 2

    At DMSO they are using xml for communication between different model systems. The XML defines a common format. Instead of having to support filters to convert each doc type to each other doc type you just have to be able to convert each to/from xml. If there are 3 doc types, you need 8 filters (3^2) to get to/from each. If you use XML you need 3 filters to get to/from xml. Assuming the filter is 2-way,from/to. If it is one way, to or from only, double the number of filters. This is what xml is really designed for. To get a common document format.

  15. XSLT book by selectspec · · Score: 2

    Wrox press has a really good book on XSLT, called XSLT, Programmer's Reference. Of course the key to XML is the Apache projects parser and transformer libs over at http://www.apache.org

    --

    Someone you trust is one of us.

    1. Re:XSLT book by pr0nbot · · Score: 4

      Wrok wrote: Of course the key to XML is the Apache projects parser and transformer libs over at http://www.apache.org

      Funnily enough I have been trying to use the Apache code (Xerces-C & Xalan) for 2 weeks with marginal success. It's a huge, sprawling library, abstracted to the point where you can't hope to do more than copy and paste the sample code. Clearly they've been having a lot of fun with the patterns book. E.g. before you even think about performing an XSLT transformation there are around 10 factory/liaison/environment objects that need to be set up, and without a deep knowledge of what each is, you've little choice but to just copy-and-pray.

      Besides, there has to be something iffy about a library that has 3 implementations of a string class...

      *sigh* oh for the days when slim, well-defined libraries were the norm.

  16. Re:xml by daniell · · Score: 2
    Umm, you could mark up data using XML making it self describing.

    Or don't, since arguably, you're the only person/company that'll ever use that data. Just send the data.

    XML describes the syntax only, not the content. I would argue that the syntax is never the important part of the message. Hence regardless of whether the reader can figure out the syntax of the XML encoded data that describes itself (woo.) your reader would still have to be partial to information about what to do with it.

    Since the bulk of your data is content, and the bulk of what must be done with it cannot be described through XML and syntax descriptions, then the bulk of your work will be writing your reader, and your writer. Whom does it aid in that case that the data is in the almost human unreadable XML format, as opposed to being either more readable or more compact as per your inevitable specifications?

    -Daniel

    don't believe the hype - zootv [U2]

  17. Centralized ASN.1 vs. Decentralized XML Standards by billstewart · · Score: 2

    Ignoring the minor problem that ASN.1's binary representations are the ugliest thing since Intercal or maybe PGP and that people who try too hard to steal bits should be locked up in padded rooms, and that in spite of its ugliness it's still offers incompleteness and ambiguity, the important difference between the two standards is that ASN.1 is a top-down centrally-controlled standard where anybody who wants to define an object type has to either negotiate with a committee to get namespace or buy a hunk of private vendor namespace, while XML is decentralized and anybody can define any object type they like that doesn't start with [Xx][Mm][Ll] and propagate the definitions. The good part about centralization is that it's unambiguous, doesn't lead to conflicts, and reduces portability problems, but it's slow, cumbersome, and often not worth the bother (though the slowness and cumbersomeness does encourage you to get the design right before going through the pain of registration.) Decentralized groups who want to do reusable interoperable XML DTDs still have to negotiate namespace with each other, but you can resolve much of that with naming conventions like FooProjectWidget1 instead of just calling your object Widget1, so you only need to discuss with other FooProject makers what kinds of widgets you need.

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
  18. Also analogous to SQL by billstewart · · Score: 2

    I agree that XML does have some similarities to Unix tab-delimited text files, but I think a better analog is SQL databases - the database is a bunch of tuples, and the database schema is also a bunch of tuples.

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
  19. Cool, but not trivial by dingbat_hp · · Score: 2

    any XML book that's any larger than a post-it note, to largely be filled with useless information on unrelated topics.

    My "XML Book" is mainly double-sided prints of TR's from the W3C site in a ring-binder. It recently spilled over into a second 2" thick binder. I use all of this stuff on a regular basis - I also have most of it available as off-line webbage on my laptop.

    Do you understand HTML tags

    There's more to it than that. If you said SGML, then you might be closer to it.

    Try this - Is a "naked ampersand" (i.e. not ) valid HTML ? Is it valid XML ? If anyone still reads Usenet, and the webmastering groups, then follow the recent thread in there on just this subject (where I had my butt spanked for getting it wrong). It's not as simple as you think, and it's not all the same as HTML.

    1. Re:Cool, but not trivial by scott1853 · · Score: 2
      I'm sure you could print a ream of paper about ANSI. Does that make it complex? No.

      The following are the only reasons I can think of about why somebody would have even one 2" binder on XML.

      They are writing a parser and want it to adhere to the specs.

      They are anal-retentive and absolutely have to know everything about everything or they feel they now nothing.

      They feel they're more professional if they have large binders full of "specs" to make them seem more intelligent to clients/PHBs/co-workers.

      They truly don't understand the simplicity of a given subject and make it more complex than it is.

      Sadly, it's the last bunch that seems to have the most influence and usually end up bastardizing everything they touch into something it should have never been.

      Let's get one thing straight. XML is nothing more than a fucking file format! If you need anything more than a basic structure of the format then you are stupid. If you need a book to tell you absolutely every way to use the format in every language, then you are also the laziest person on the planet. You want to parse an XML file in Perl, spend 3 minutes glancing over the XML::Parser mod. You want to do it for Windows, spend 10 minutes browsing the DOM reference on MSDN. Its so basic, don't try to turn it into something complex so you can impress others.

      If you can't understand it, then you must be a VB programmer probably on your way to upper management. If you would spend the time looking up how "&" is treated and discussing it in newsgroups instead of just putting one in an XML file and parsing it, then you already ARE upper management. Don't forget to mark on your time card, just exactly how much time you spent on research of a single character.

      Just what the world needed...
      ...something so simple, idiots can understand it well enough to make themselves look smarter to other idiots.

  20. What XML is "really" about by garoush · · Score: 2

    It saddens me when ever I see people talk about XML as if it is "just a markup language" while this is true, but that is only small part of what XML is "really" about.

    Lets face it. When Java was interdicted, its goal was to have Applet running in your home refrigerator, and toaster to name a few -- this was the basic goal of Java. With the arrival of the browsers, this goal was extended to computers so that you can write your program once and it will run on any computer (the "write once run everywhere" slogan.)

    While the underlying principle of Java is very powerful, achieving it is so hard. The main reason is due to the fact that you will need a JVM, without which the idea of run "everywhere" is useless.

    While for a full fledge PC this is not much of a problem (almost every flavor of an OS out there today has some version of JVM), this is a serious problem for new devices and as well as for companies that want to use Java. Here is why:

    1) In order for Java to run on a new device, a JVM must exits for it.

    2) In order for an existing application to run in a Java environment (using JVM) the application must be re-written in Java

    Sure those issues can be addressed, but doing so you end up by making the new device and the new language "tightly coupled" to Java and JVM. In a client/server environment, this is a limited design such that it means the client part must be bounded to the server part.

    XML frees you from this "tight coupling". All that I need to do is publish my Schema using XML and any application written in any language running on any device can now communicate with my application. So if my application provides a service to process patient record and I publish my API to my server-application via a Schema and XML-SOAP, than the client can get my service by simply adhering to my Schema -- the client can be written in any language and running on any device.

    In short, XML is all about "data exchange protocol" -- the communication between two XML enabled applications is happening at the data-encoding-level. This is the power of XML where an API or SDK based solution can't solve.

    So from now on, stop thinking about XML as "just a markup language" -- XML is a new way for which applications (and soon, components) well start communicating. The future of programming is based on data-communication not API or SDK or a language.

    -- George


    ---------------
    Sig
    abbr.

    --

    Karma stuck at 50? Add 2-5 inches.. err.. 2-5x Karmas Count to your pen1es.. err.. Karma all naturally and private
  21. Re:XML has limited use by Anonymous._.Coward · · Score: 2
    it's not even a language

    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.

    --

    take a triptonica to subthunk

  22. XML, GNOME, you'll just have to wait. by Angelwrath · · Score: 2

    Years after the virtues of XML were first extolled XML still isn't the do-all, be-all wonder we were led to believe.

    GNOME wasn't built in a day.

  23. Re:Learn XML. by Pinball+Wizard · · Score: 2
    I found several, from MS, Sun, W3C, and others:

    http://www.google.com/search?sourceid=navclient&q= xml+tutorial

    --

    No, Thursday's out. How about never - is never good for you?

  24. XML is cool by scott1853 · · Score: 2

    However, I don't think we need an 8 foot tall case of books on it at Borders.

    XML Certification Test:

    Question 1: Do you understand HTML tags?
    Answer: Yes.
    Result: You're certified.

    Anyways, you'd have to expect any XML book that's any larger than a post-it note, to largely be filled with useless information on unrelated topics.

  25. Re:Why write a book about it by thex23 · · Score: 2
    I'd like to point out that the CFL is much older than the NFL, and is still going strong.

    But I do hope your little XFL thing lasts. I believe that at long last the US soul has been mirrored in sport: a pefect mix of agression, vanity, and reductive dualism that reflects everything that Americans hold dear.

    We thieves, we liars, we vandals, and poets. Networked agents of Cthulhu Borealis.

  26. Re:xml by tswinzig · · Score: 2

    Aside from what the other guy pointed out about your example, XML provides for much more than just simple x=y type data passing. The beauty is in the heirarchies that can be setup to make data passing so much easier.

    What if you're transmitting results from a database query in plain text? With your example, you might say, "put all data for one row on one line." Then what happens if some of the data is multi-line? Well, you have to escape that data somehow.

    With XML you can define a "row", and inside a row you can define a "column", and each value in your columns can have well-defined types.

    So, by all means use

    KEY1="value1"
    KEY2="value2"

    but if you want something more robust for passing data across standard implementations in many languages, use XML.

    --

    "And like that ... he's gone."
  27. XML--logical next step up from UNIX text files by q000921 · · Score: 2
    UNIX used to rely on tabular data a lot: that's what awk, grep, cut, paste, and other UNIX programs were designed to deal with. That was a great system, because it allowed you to deal with huge amounts of data on machines with very limited memory.

    The problem with tabular data is that it doesn't let you represent a lot of information in a convenient form: people often do need and want hierarchical/tree-structured data. And tabular data in UNIX isn't self-describing. Configuration files, package descriptions, bibliographic citatinos, etc. all need fairly complex descriptions.

    There are many ways of representing tree structured data. XML wouldn't be my favorite, but it is workable. And XML is getting a fairly complete set of tools for dealing with tree structured data: search, extraction, restructuring, etc.

    With this, maybe the Linux community will pick up some of that old UNIX spirit again. Today, the habit seems to be that when anything needs to get done on Linux, someone writes a big Gnome or command line program in C, or, on a good day, writes a monolithic Perl program. For example, something like "rpmfind" should really just be a collection of a few command line tools: something like the Xerces tools for extracting information, gunzip to uncompress the data, and curl to retrieve information. The same is true for a lot of other Linux applications.

    Oh, if you want to play around with XML, I found some of the Apache Xerces tools at http://xml.apache.org/ to be quite useful. They come in both Java and C++ flavors.

  28. Re:xml by CaseyB · · Score: 3
    What happens when there's a " character in value1? What values are valid for KEY2, and how do you check them? How many platforms are you prepared to write code on that can parse your format?

    The idea is that XML spares you the trouble of defining your own file format and managing all the grunt work of data files. It lets you use common parsing, validation, and document manipulation tools.

  29. Re:XML will set you free by Anonymous+Commando · · Score: 3

    Hmmm.... let's try a little something here:

    s/XML/Java/
    Funny... it still sounds right. now let's try:
    s/Java/ActiveX/
    Spooky - sounds like a Microsoft press release. Now, for the grande finale:
    s/ActiveX/SlashDot/
    OK, well maybe that was pushing it just a little...
    ________________________
    --
    Corporate Jenga: You take a blockhead from the bottom and you put him on top...
  30. When XML is useful by geophile · · Score: 3
    XML is great if you have to specify something of moderate complexity and a GUI is not necessary. Instead of just hacking a parser of some little language invented for some specific purpose, or building the stupid GUI, you can just lay out your data in XML, and then use the SAX parser to deliver the data to your application.

    If you're using Java, then a properties file is a good alternative, but if your data gets too complex, (e.g. repeating fields), XML will be much simpler.

  31. Re:XML by orblee · · Score: 3
    The simplicity is an advantage. Yes, on its own XML is a bit pants, but because of its simplicity, many add-in facilities are available. XSLT allows you to turn an XML document into anything (a Postscript Document if you want) and certainly back to SGML if necessary. It is an object-oriented language which some people will hiss at, but it does settle really nicely when coding in most programming languages. Okay, XML isn't ideal for databases (because it is object oriented and most databases aren't - hence why OOP languages work on recordsets and pass SQL as strings to a connection object), however, there are ways around this.

    To me, the main advantage is the fact that it is both machine and human readable. An XML config file is normally instantly understandable and programming languages can manipulate it quite easily without having to worry about CR/LFs and the completely different formats in flat file databases.

    Also, the new XML Schemas allow a fully self-documenting, detailed explanation of what the content of an XML document should contain. You could use a stylesheet to turn the Schemas into DocBook documentation if you so desired. Certainly better than going over your application, taking notes, and writing up the documentation.

    To be honest, although all of here at Slashdot can think that XML hasn't had an effect. MS's .NET is going to be entirely XML based, which is a good thing as it will allow communication with their platform easily. Sun's released ONE, which is just a rebranding name against .NET for Java, but it works now and is being used now. GNOME uses XML heavily and why not? Anyone writing applications can easily read the config files and output of another application and know what to do with it.

    Okay, I've ranted a bit here, sorry, but it isn't just the future, it's the present. Of course, in the UNIX world we'll continue to use flat files and standard non-object oriented databases, but when we want to talk with the rest of the world, we will have a method of doing so now that doesn't involve reverse-engineering and so is a lot quicker to develop.

  32. Other XML synergies: Re:XML is very useful... by mesocyclone · · Score: 3
    I have been doing XML in Java for over a year, and friends have extensively used it for 3 or 4 years. XML is one of those rare things, like Java, that has synergistic value.

    Prior to XML, we had used our own text based markup language (surprisingly similar to XML except only two levels of hierarchy) since 1989. We (30 year OLTP designers and coders) found it *much easier* to design, develop, debug, comunicate about, and communicate with than prior fixed field non-text formats

    List of Synergies in case of XML (and mostly true with our old approach) include:

    • Use of off the shelf editors to create debug messages.
    • Messages (documents to an XML purist) easy to generate from auxiliary programs for data loading.
    • Logging using the same XML as the original messages, and adding other XML message/subtree types for internal actions, is very easy, and you can use all sorts of available tools to work on the logs.This true for data export logs and debug logs.
    • >b>Use of XML display programs (the best I have used so far includes the dreaded M-word - Microsoft explorer). With Explorer 5.0 and above (and I think 4.0 and above), if you click on a .xml file, it will bring it up "pretty printed". I suspect there are similar tools under Linux but I haven't used them in my Linux work.
    • Synergistic use in programs: if you create an application that uses XML for input and-or output, it is trivial to also use XML for configuration files for that application. Furthermore, you can take the hierarchical DOM data structures and use sub-trees (from the original input message) to pass data to lower levels of your architecture, without having to convert it into instance variables or some other protocol (e.g. RMI, COM or just method calls).
    • Multiple implentations of parser/generator API's. As another post mentioned, in the case of Java, the standardized two API's - DOM and SAX - allow one to pick and choose parsers from a widely available set, and not change any code. This is a powerful feature, letting you use, for example, a parser with strong error handling for test, and then changing it to a parser that is very fast for production. This can be done with a runtime command line argument if you want!

      I would also point out that I have used SAX in some cases and DOMs in another. I had no problem quickly using SAX for message-based uses. It may be harder when using all the features of XML, but not all are needed for most data interchange usages.

    --

    The only good weather is bad weather.

  33. XML is just a descriptive markup by graniteMonkey · · Score: 3

    Of course you can't think of XML as some sort of godsend. It won't make your children's teeth straighter and whiter. It won't solve world hunger, and it won't create a tax law that is equally fair and acceptable to all.

    It's just a markup language. It's only strengths lie in the fact that 1)it clearly and easily represents heirarchical data and 2)could become a standard way of representing data in many applications.

    If XML finds its way into wide acceptance under certain industries(if it hasn't already), then its strength as a descriptive markup is perfectly valid. It will make business easier if you can unambiguously exchange information, rather than sifting through proprietary annotations or trying to convert a flat ASCII file into [proprietary language of your choice].

    <rant>
    I am sorry to see from the looks of the review that New Riders has gone the way of Sybex and Que, though. As far as books in "pop tech" go, you can usually go by this rule of thumb: thickness is inversely proportional to quality.

    Take two examples: My O'Reilly XML(before the standard) pocketbook, and our Que "Mastering Javascript" Special edition. My O'Reilly book is a scant 107 (small) pages, yet has proven to be a completely invaluable reference. I wouldn't trade it for anything but the next edition of the same book. Back when I was trying to learn Javascript, that freaking Que book wasted more of my time than anything else I've ever read. By the time I needed to know about the syntax for multi-dimensional arrays you could just forget it.
    </rant>

    --

    This is a manual virus. Copy it to your sig and help me spread!
  34. XML will set you free by cluge · · Score: 3
    According to many knowledgeable source, XML is my savior. You see, my new coffee machine has an ip address, and because of XML I can now program it to start my coffee before I get up!! People scoff at XML, and say what can it do, well here are some examples for the naw sayers

    • XML will soon be in most household appliances. Imagine not having to update the vacum cleaner OS with hard commands. Now with XML all your appliances have the updates "pushed" to them with XML.
    • XML will be installed into new super sneakers by Nike. It's a proven fact that little Asian girls are the best XML coders in the world. Nike is using this great source of talent to bring us the most technically advanced pair of running shoes.
    • XML can toast your toast on one side!! Toaster manufacturers have for years had to design to different toasters, one for the people that want toast only toasted on one side (Sting's preference) and the rest of the world. Now with XML, set your preference and voilla, toast YOUR way.

      People that explain XML carefully should be revered. These scholars are pointing the way to the future. WHO CARES if the book uses strange English. It is after all a technical document and should be as obfuscated as possible!

      Quote from early car manual (Subaru 360) "if one wish to engage first gear, one is pleased to depress clutch." Who needs clarity in writing and loginc when gems such as this are produced. I'm awaiting my XML update to that great old car

    --
    "Science is about ego as much as it is about discovery and truth " - I said it, so sue me.
  35. Did Vince McMahon just buy the XML? by tenzig_112 · · Score: 5
    It's like the regular HTML, but we now have extra tags like:
    • <TAUNT>
    • <FLYING BUTTRICE>
    • <CHAIRWHIP>

    Some say that the XML isn't even a real language, that in spite of its proclaimed extensibility, it is "fixed." But I think they're cultural elitists.

    Applications for the XML