BAO Zipkit - XML Utilities

Version 25
    Share:|

    [Version 2.1]

     

    Bug fix in "XML String to XML". Now handles XML strings with multiple XML declarations. Thanks for reporting Sean Brennan

     

    [Version 2.0]

     

    New Workflow: "Remove Empty Element Attributes"

     

    [Version 1.9]

     

    Bug fix in "XML String to XML". Now handles XML strings with a <!DOCTYPE ....> tag. Thanks for reporting Carl Wilson

     

    [Version 1.8]

     

    Bug fix in "XML String to XML".

     

    [Regular expression contained a trailing space. Not sure how that slipped in. My apologies. Thanks for reporting Roger May]

     

    [Version 1.7]

     

    Bug fix in "XML String to XML". Regular expression was not handling single-quotes in XML Document Type Declarations. Thanks for reporting Iain Taylor

     

    [Version 1.6]

     

    Added two new workflows

     

      - Convert XML to Lower Case

      - Convert XML to Upper Case

     

    [Version 1.5]

     

    Fixed bug in "XML String to XML" where a <?xml version="1.0" encoding="Unicode|UTF-8" standalone="yes"?> header did not get properly removed.

     

    [Version 1.4]

     

    Added two new workflows by request. (Thank you Manoj!)

     

      - Convert Element Values to Lower Case

      - Convert Element Values to Upper Case

     

    [Version 1.3]

     

    This module is starting to become a community project! :-)  Adi Leibowitz was kind enough to contribute the "Change XML Node Value by Xpath". Thank you Adi. I have already found it extremely useful!

     

      - Change XML Node Value by XPath

     

    [Version 1.2]

     

    Added two new workflows:

     

      - Convert Element Names to Lower Case

      - Convert Element Names to Upper Case

     

    [Version 1.1]

     

      - First released version

     

    [Description]

     

    A while back I wrote a couple of XML Utility workflows to make dealing with XML structures in certain instances a little bit easier and I figured it may probably benefit some other folks as well.

    xmlutils2.png

    Change XML Node Value by XPath [Adi Leibowitz]

     

    Changes the value of the node, specified by the given XPath, with a new value.

     

    Convert Element Names to Lower Case [Richard de Vries]

     

    Converts all element names in the specified XML structure to lower case. Values and Attributes will remain untouched.

     

    Convert Element Names to Upper Case [Richard de Vries]

     

    Converts all element names in the specified XML structure to UPPER case. Values and Attributes will remain untouched.

     

    Convert Element Values to Lower Case [Richard de Vries]

     

    Converts all element values in the specified XML structure to lower case. Element names and Attributes will remain untouched.

     

    Convert Element Values to Upper Case [Richard de Vries]

     

    Converts all element values in the specified XML structure to UPPER case. Element names and Attributes will remain untouched.

     

    Convert XML to Lower Case [Richard de Vries]

     

    Converts the complete XML (nodes, attributes, attribute values, node values etc) to lower case.

     

    Convert XML to Upper Case [Richard de Vries]

     

    Converts the complete XML (nodes, attributes, attribute values, node values etc) to UPPER case.

     

    Decode XML String [Richard de Vries]

     

    Changes &amp;  &lt;  &gt;  &quot;  and &apos  to  &  <  >  " and ' respectively

     

    Encode XML String [Richard de Vries]

     

    Changes &  <  >  " and '  to &amp;  &lt;  &gt;  &quot;  and &apos respectively

     

    Remove All Element Attributes [Richard de Vries]

     

    Removes attributes from all the XML elements in the given XML structure


    Remove Empty Element Attributes [Richard de Vries]

     

    Removes all empty element attributes from the given XML structure

     

    Remove Empty Elements [Richard de Vries]

     

    Removes all empty elements from the given XML structure

     

    Remove Specific Element Attribute [Richard de Vries]


    Removes a specific attribute from the XML elements in the given XML structure

     

    Strip Namespaces [Richard de Vries]

     

    Strips all the namespaces from the given XML structure

     

    XML String to XML [Richard de Vries]

     

    Converts a string containing what appears to be XML (but in reality is an escaped XML structure; i.e. AO has the < and > encoded as &lt; and &gt) to a real XML structure.

     

    XML to XML String [Richard de Vries]

     

    Converts a real XML structure to an encoded string; so that it can be written to a file etc.