Menu

XML Tools plugin 2.1 available

2008-05-03
2012-11-14
  • Nicolas Crittin

    Nicolas Crittin - 2008-05-03

    A new version of the XML Tools plugin has been released. You can grab it here:

    DLL: http://www.calodox.scene.org/morbac/other/xmltools-2.1-r545.zip
    Installer: http://www.calodox.scene.org/morbac/other/xmltools-2.1-r545.exe

    Here is an overview of the changelog, and lower, some words about the new functions.

    Release 2.1 (r545):
    -------------------

    - Make XPath Expression Evaluation input field multiline

    - Change XPath Expression Evaluation window to resizable toolbox
      and make it allow user to access to editor while open

    - Change destination path for  libXML DLL's  installed by plugin
      auto-installer.  DLL's are now  installed in  Windows\System32
      directory.

    - Fix an overflow error in "Comment selection" function

    - Add "Linarize XML" function

    - Add XML Schema + DTD validation

    ****************************************************************

    XML Schema + DTD Validation
    ---------------------------
    Performs an XML validation against  XML Schema (*.xsd file)  and
    DTD (*.dtd file). The function can also be  activated to execute
    after each file save.

    Note: The validation performs an XML syntax check automatically.
          So if you  activate the  auto-validation,  you should  not
          activate the auto-syntax check (or it will execute twice).

    Note: By default XSD validation uses schema defined in attribute
          "xsi:noNamespaceSchemaLocation" of your xml root node. For
          instance:

          <?xml version="1.0" encoding="ISO-8859-1"?>
          <foo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:noNamespaceSchemaLocation="foobar.xsd">
            <bar>any value</bar>
          </foo>

          If it cannot find the attribute, the function opens a file
          selection dialog and you can enter the schema manually.
          However, the use of "noNamespaceSchemaLocation"  attribute
          is recommended if you enable auto-validation.

    Note: DTD validation uses DTD declaration or definition given in
          DOCTYPE element before the  xml root node.  You can either
          specify external DTD using following syntax:

          <?xml version="1.0" encoding="ISO-8859-1"?>
          <!DOCTYPE foo SYSTEM "foobar.dtd">
          <foo>
            <bar>any value</bar>
          </foo>

          or define the DTD inline like this:

          <?xml version ="1.0"?>
          <!DOCTYPE message [
             <!ELEMENT foo (bar)>
             <!ELEMENT bar (#PCDATA)>
          ]>
          <foo>
            <bar>any value</bar>
          </foo>

    Linarize XML
    ------------
    Reformat XML on one single line only. The current version of the
    function is not compatible with CDATA blocs, and format comments
    also.

    ****************************************************************

    Hope you'll enjoy ;)

    ps: Don, I couln't post the files on NPP Plugins project directly because I didn't get any answer from Jens... maybe on holidays ? ;)

     
    • Don HO

      Don HO - 2008-05-03

      > ps: Don, I couln't post the files on NPP Plugins project directly because I didn't get any answer from Jens...
      > maybe on holidays ? ;)

      Jens has a PC problem so he is inactive for the moment.
      I'll add your release in Notepad++ Plugins project page.
      Could you provide me the code source?

      Don

       
    • Nicolas Crittin

      Nicolas Crittin - 2008-05-03

      No problem. I've uploaded source here (including all required libs)

      http://www.calodox.scene.org/morbac/other/xmltools-2.1-r545_source.zip
      (has been compiled with MSVC++ 6.0)

      Btw, really nice work Don for the new 4.9 release ;) Thx

       
    • Nicolas Crittin

      Nicolas Crittin - 2008-05-04

      Thanks. I noticed that infos about plugin are not up to date anymore. Can you update with:

      This plugin is a small set of useful tools for editing XML with Notepad++. The plugin is libXML2-based and features:
        - XML syntax Check
        - XML Schema (XSD) + DTD Validation
        - XML tag autoclose
        - Pretty print
        - Linarize XML
        - Current XML Path
        - Conversion XML <-> Text
        - Comment/Uncomment
        - XPath expression evaluation

       
      • Don HO

        Don HO - 2008-05-06

        Are you talking about here :
        http://notepad-plus.sourceforge.net/uk/download.php
        ?

        Don

         
    • Nicolas Crittin

      Nicolas Crittin - 2008-05-06

      yes, but no stress, do it when you have time ;)

      thanks

       
      • Don HO

        Don HO - 2008-05-08

        Updated.

        Don