Skip to main content

Multilingual XML - Advanced configuration example

Comments

1 comment

  • Stephan Böhmig

    Let us push the example above a bit further ;-)

    The original file that was used above actually defined so called "namespaces". Such XML contain one or more URL-like declarations in the root node:

    <SAMPLE xsi:schemaLocation="http://publications.europa.eu" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> ...

    As soon as you have namespaces you cannot locate a node using:

    • //ML_TITLES

    Instead you need to substitute by:

    • //*[local-name()="ML_TITLES"]

    The full setup in the post above would then look "somewhat" more complicate: 

     

    Hoping you still enjoy :-)

     

    0

Please sign in to leave a comment.