I relived an intense past discussion while reading Uche Ogbuji’s nice introduction to XML elements and attributes design. We had discussed exactly the same issue, with the exact same examples of date and name to justify our decisions. What we ended up with was a lot different than what any of us had devised, because our examples were comletely out of context. [Continue]
Paul Stamatiou details XML parsing in PHP 5 using SimpleXML. SimpleXML lets you navigate the XML document as a data structure. PHP 5 also introduces a class called XMLReader that operates in stream mode and lets you do pull parsing. [Continue]
XML Pull Parsing is seen as one of the most efficient ways of parsing big documents, especially when the entire document has to be parsed. It has been pretty active in the Java world and in relatively newer languages like C#. For pull parsing the parser should be able to operate in streaming mode. [Continue]
Brian Sullivan points out that code injection need not be always through SQL. Though SQL injection is popular, malicious code can be injected through user input during any data retrieval, including for XML and LDAP. He discusses some techniques for protecting against the injection with the common principle of validating every single input from the user. [Continue]
W3C is going to try and keep both of them alive (discussion here). The reason is that move from HTML to XHTML, SGML to XML is not just a syntactical shift, but a paradigm shift. And it has not be adopted very easily. [Continue]
We are seeing novel uses of markup languages, like publishing, syndication and even for desktop applications. Think about HTML, XML if you are uncomfortable with the markup languages phrase. There are different categories of markups – presentational (HTML), procedural (Tex, PostScript) and descriptive (XML). [Continue]