[xmljs-users] XML for source code
Brought to you by:
djoham,
witchhunter
From: Roger F. G. <rog...@ya...> - 2016-05-09 08:29:59
|
I've created a parser in Java for using XML for source code, which is an extremely good idea whenever you want logic stored as data. Since this means that text elements can contain special characters &,',",<,>, the initial files are not valid XML and must be called something else - even though the form is otherwise exactly the same as XML. This alternative is called XPL (eXtensible Process Language). XPL can be used in place of XML when you don't need full XML processing. When you do need more than the XPL system handles, code is translated to valid XML. Even though the XPL parser (StAX-PL) is very very fast, XPL and downstream XML processing can be performed concurrently, completely eliminating the pre-processing cost. There is currently a free command-line version that translates XPL to XML. There is also a developer's version available that includes the Java components along with source code examples for downstream processing with StAX, SAX, and DOM. Samples include concurrent processing with StAX-PL -> SAX. Just pop them into your favorite IDE and work through the quick start guide to get started. All samples are precompiled (Java 7 and 8) and ready to test-run (via batch or bash files - included) XPL eXtensible Process Language | | | | | | | | | XPL eXtensible Process LanguageYou can now process XML data structures that contain special characters without escaping or defining CDATA. This makes files containing program logic and other special entities much easier to create and maintain. | | | | Visa på hll.nu | Förhandsgranskning av Yahoo | | | | | It's not a problem. It's an opportunity. Correlation does not prove causality. |