NotesFor a node.js project Iâm working on I wanted to generate a Sphinx xmlpipe2 data stream. The options for generating XML with node.js seemed a bit limited. The main contender appeared to be libmljs but it segfaulted whenever I tried to use it. So with previous experience using Tim Brayâs Genx C library I decided to write bindings for node. The result is node-genx, which is available via npm.Unfurl
Notes"In response to a user recently, I told him he had fallen into the most common elephant trap for XSLT users. Rather than being annoyed, which I half expected, he thanked me and asked me if I could tell him what the next most common elephant traps were. Although some of us have been helping users avoid these traps for many years, I don't recall seeing a list of them, so I thought I would spend half an hour compiling my own list. "Unfurl
Notes"PHP 5's SimpleXML module is one of the the biggest reasons to upgrade to 5. If you're parsing RSS feeds or the results of webservice requests it works beautifully and saves a ton of time. The only problem with it is that it'll only load valid XML. I banged my head against it for way to long before coming up with the following:"Unfurl
Notes"E4X, short for âECMASCript for XMLâ, is an extension to ECMAScript (i.e. JavaScript, JScript, ActionScriptâŚ) with new syntax and built-in objects for more convenient handling of XML fragments. It seems to be used most frequently with ActionScript 3 (Flash), but is also available in recent Mozilla/Firefox releases."Unfurl
Notes"David Robinson, Harlan Yu, William Zeller, and Ed Felten, all of Princeton's Information Technology Policy Center, suggest that government officials abandon the dream of developing usable web sites, and instead focus on providing raw public data such asUnfurl
Notes"It seamlessly passes log data through the file system and directly into a database. Unlike existing log parsers, which often run periodically and scan the entire file for changes, LoggerFS takes a unique approach by masking the database backend with a fiUnfurl
Notes"For Firefox 2, only the application/vnd.mozilla.maybe.feed, application/atom+xml, and application/rss+xml MIME types are supported. All values have the same effect, and the registered handler will receive feeds in all Atom and RSS versions."Unfurl
Notes"An OPML namespace wiki page lists attributes in the namespace. An OPML attribute wiki page documents the attribute and its value. An OPML profile wiki page is intended to capture common practice by listing attributes used in practice. A namespace qualifiUnfurl
Notes"take your XML source (using the format defined in RFC 2629 and its unofficial successor) and see how the results look like in the original ASCII look-and-feel or the new modern HTML rendition of that look-and-feel."Unfurl
Notes"You go to your favorite Web 2.0 search engine and set up a query like http://web20.example.com/search=john+doe&ouptut=atom and search for "john doe," but rather than getting back results as the usual HTML web page, you get it back in Atom format."Unfurl
Notes"The jQuery Taconite Plugin allows you to easily make multiple DOM updates using the results of a single AJAX call. It processes an XML command document that contain instructions for updating the DOM."Unfurl
Notes"Used to indicate the re-distribution restrictions for a feed. The 'relationship' attribute is used to indicate whether a feed will 'allow' or 'deny' access."Unfurl
Notes"But perhaps more significantly, to develop a mashup, you already needed to be a programmer. Yahoo! Pipes is a first step towards changing all that, creating a programmable web for everyone."FeedUnfurl
Notes"Google has announced a new Ajax Feed API makes it possible to extract information from multiple RSS feeds with only a few simple lines of JavaScript"Unfurl
Notes"With the overwhelming majority of our content available in one syndicated form or another, I can see an increasing demand for Pipes style filtering and recombination. I doubt, in other words, that this particular business problem is the last one Iâll sUnfurl
Notes"An XML Pipeline specifies a sequence of operations to be performed on a collection of XML input documents. Pipelines take zero or more XML documents as their input and produce zero or more XML documents as their output."Unfurl
Notes"In the intervening months since I first mentioned my plans to implement XProc, I've ripped it apart and started over twice. Third time, it seems, really is a charm."Unfurl
Notes"It may seem clear to some that parsing/generating JSON is more efficient than XML, but hereâs some numbers that make things a little clearer."Unfurl
Notes"Hence, mixed content. Hence XML. If you need mixed content you really need it. If you don't need it, sometimes you cannot even conceptualise the problem it solves. And yes, mixed content totally complicates the lives of those who are using XML for data-cUnfurl
Notes"Scenario: a chrome and a content application are aware of their respective existence and wish to communicate. Communication should be able to flow both ways."Unfurl
Notes"JSON is a better fit for Web services that power Web mashups and AJAX widgets due to the fact it gets around the cross domain limitations put in place by browsers that hamper XMLHttpRequest and that it is essentially serialized Javascript objects which mUnfurl
Notes"Please. As if <foo>bar</foo> has any more "semantic meaning" [1] than "foo": "bar". Symbols have meaning when some agent imparts meaning to them."Unfurl
Notes"Use XML - If you want to provide general-purpose data that the receiver might want to do unforeseen weird and crazy things with, ... or if the data is potentially long-lived (as in, more than seconds) XML is the way to go."FeedUnfurl
Notes"We don't really have "XML on the Web". We have RSS on the web, plus a bunch of mostly JSON and YAML for those who didn't care for pointy brackets."Unfurl
Notes"Build a list of links through a simple AJAX web interface, published via HTML and RSS. Sort of a mini-blog for links. Written in PHP5 and runs off XML files - no database needed."Unfurl
Notes"One of the latest features added to the XSLT extension is the ability to call any PHP function from within an XSLT stylesheet. While XML/XSLT purists will certainly dislike this.., it can be very useful in some special cases."Unfurl
Notes"Considering how useful it could be to transform the XHTML based web to another format or to use XHTML as an XML data store, it is surprisingly tricky to transform XHTML. Most XSLT developers need to be told the secrets of XHTML transformation in order toUnfurl
Notes"A new framework is included for publishing and subscribing to RSS and Atom feeds, including complete RSS parsing and generation. Local feeds can be shared over Bonjour zero-configuration sharing and discovery."Unfurl
Notes"With just these few commands (an admittedly small subset of XSLT) and a strong background in HTML (DHTML and JavaScript included), I believe web developers could meet the majority of their presentation needs."Unfurl
Notes"UNIX pipes for the most part line-oriented, they have not been readily applicable to XML processing. You'll review some existing tools that result from the many attempts to address this."Unfurl