Development Log in categories XML/Ada and XMLAda

  • GNAT Pro | XMLAda
    Aug 16th, 2016

    schema: large values of maxOccurs
    Values of maxOccurs larger than 300 previously resulted in an XML validation error. This is instead a limitation of XML/Ada, so this has now been changed to a warning (we still recommend using "unbounded" to limit the size of the state machine, but XML/Ada will now try to build that machine and use the XSD nonetheless).

  • GNAT Pro | XMLAda
    Jun 2nd, 2016

    unicode names from the Unicode 8 standard
    The unicode-names-* packages were updated to match the Unicode 8 standard. The new bindings are generated via a new importer, which fixes a number of issues with the previous bindings:

       - some characters were put in the wrong block (and thus wrong package)
       - some typos due to incorrect parsing of the Unicode files
       - some name aliases would hide canonical names occurring later (for
         instance 1F5E2 was hidden by 1F48B)
       - some unofficial aliases were used (Bell is not long valid, for
         instance)
    
    This change is not fully backward compatible, due to changes in the Unicode standard itself, since some blocks were renamed, as well as some characters. Contributed by Nicolas Boulenguez

  • GNAT Pro | XMLAda
    Nov 19th, 2015

    new function Schema.Dom_Treader.Current_Node
    This function makes it easier to override primitives like Start_Element to add custom attributes to elements

  • GNAT Pro | XMLAda
    Nov 19th, 2015

    new function Schema.Dom_Treader.Current_Node
    This function makes it easier to override primitives like Start_Element to add custom attributes to elements

  • XMLAda
    Oct 13th, 2015

    schema: preloading multiple no-namespace XSD files
    The subprogram Parse_Grammar can now be overloaded so that multiple XSD files can be preloaded, and reused automatically when parsing XML files later on. The documentation gives a full example.

  • XMLAda
    May 6th, 2014

    New subprograms Import_Node and Adopt_Node
    These subprograms, part of respectively DOM level 2 and DOM level 3, are now implemented, and can be used to move or copy one node from a tree to another. In addition, subprograms like Append_Child will now correctly complain when the new node was not created for the same tree.

  • XMLAda
    Mar 24th, 2014

    New configure option—enable-build
    This switch improves compatibility with other AdaCore addons like GtkAda. It enables one to choose the default build mode (Debug or Production) at configure line, rather than through environment variables.

  • XMLAda
    Oct 8th, 2013

    Expose utf8 functions in unicode-ces-utf8.ads
    Some specialized UTF8 functions were added to this package, which can therefore be used in more contexts that just XML/Ada

  • XMLAda
    Sep 17th, 2013

    Allow relative URI in namespace location
    For compatibility with older XML documents, XML/Ada can now be set up to allow relative URI when declaration namespaces. This needs to be activated through Sax.Allow_Relative_IRI_Feature.

  • XMLAda
    Aug 21st, 2013

    Tree_Reader gives access to the current node
    The package DOM.Readers gives access to the DOM node that is being created. This allows users to more easily extend the Tree_Reader object to add their own processing, like creating custom attributes.

  • XMLAda
    Nov 8th, 2012

    attributeGroup support in simple type extensions
    It is now possible to extend a simple type in a XSD file, and define which attributes are valid in the extension through a <attributeGroup> tag. Previously, the attributes had to be specified one by one through the <attribute> tag.

  • XMLAda
    Dec 20th, 2011

    License updated to GPL3
    The license for XML/Ada Pro is now GPL3 with the standard exception allowing the creation of proprietary software.

  • XMLAda
    Dec 8th, 2011

    Documentation converted to Sphinx
    The documentation was converted to another format, providing nicer looking output. It also adds support for searching in the documentation.

  • XMLAda
    Dec 1st, 2011

    Schema: Ignore unsupported xsd:unique
    In the 4.2 version, we added support for silently ignoring some schema constructs rather than receive a fatal error. This has been extended to <xsd:unique> elements.

  • GNAT Pro | XMLAda
    Aug 16th, 2011

    Schema: Ignore unsupported schema elements
    It is now possible to ignore unsupported elements from a XSD file (<key>, <keyref>, <field> and <selector>) rather than receive a fatal error. This is activated through a call to Set_Feature, see schema-schema_readers.ads

  • GNAT Pro | XMLAda
    Jul 26th, 2011

    Schema: Improved multi-tasking support
    It is now possible to parse an XSD file once, and then use it for several parsers in different threads.

  • GNAT Pro | XMLAda
    Dec 16th, 2010

    New input source for streaming sockets
    A new package was contributed by a user as an example on how to handle streaming input, as opposed to reading the whole input at once.

  • GNAT Pro | XMLAda
    Nov 9th, 2010

    Support for XML 1.0 (Fifth Edition)
    XML/Ada now support the fifth edition of XML 1.0 (but you can still chose to use earlier versions). The differences mostly have to do with the range of characters allowed for names. This change was needed to run the most recent version of the W3C XML testsuite.

  • GNAT Pro | XMLAda
    Nov 5th, 2010

    Rewrite schema validation module
    The schema validation module was almost fully rewritten. It is now based on a finite-state machine (which changes dynamically if you use features such as xsi:type to override types in your XML documents). This results in slightly better performances, better results in the W3C testsuite (where, given a valid XSD file, we have 100% correct results when checking the validity of XML files), and much more readable code.

  • GNAT Pro | XMLAda
    Aug 31st, 2010

    Unicode: new exception Incomplete_Encoding
    A new exception was defined in the unicode module. This exception is used to distinguish between cases where we might simply be missing some characters (and thus should wait for more) with cases where the encoding is indeed invalid.

  • GNAT Pro | XMLAda
    Jun 29th, 2010

    XML/Ada is compatible with pragma Ravenscar
    XML/Ada is now compatible with the ravenscar profile

  • GNAT Pro | XMLAda
    Mar 24th, 2010

    New exception XML_Not_Implemented
    A new exception is raised when using a schema (.xsd) validator, and the schema uses features that are not supported by XML/Ada. Unsupported features are: xsd:key elements, IDREF and IDREFS types, various forms of regexps, and redefine. It is also possible to explicitly disable support for some features to make sure the subset of Schema you use is fully supported by XML/Ada and passes all relevant tests of the W3C testsuite The W3C committee has reviewed the status of some of their schema tests since their last release. Support was added to use this latest version. See the README file for information on the setup.

  • GNAT Pro | XMLAda
    Mar 24th, 2010

    New exception XML_Not_Implemented
    A new exception is raised when using a schema (.xsd) validator, and the schema uses features that are not supported by XML/Ada. Unsupported features are: xsd:key elements, IDREF and IDREFS types, various forms of regexps, and redefine. It is also possible to explicitly disable support for some features to make sure the subset of Schema you use is fully supported by XML/Ada and passes all relevant tests of the W3C testsuite The W3C committee has reviewed the status of some of their schema tests since their last release. Support was added to use this latest version. See the README file for information on the setup.

  • GNAT Pro | XMLAda
    Jul 25th, 2009

    Improved error msg when element repeated too much
    If your schema requires a sequence of "a", then "b", and your XML file contains "<a><a><b>", XML/Ada used to complain on the second occurrence of "a" that at least one occurrence of "b" is expected. The error message has now been improved to indicate "Too many occurrences of a".

  • GNAT Pro | XMLAda
    Jan 23rd, 2009

    Support for windows-1251 encoding
    XML files can now be encoded with windows-1251.