#1
  1. A Change of Season
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    2,675
    Rep Power
    171

    Why multiple namespaces?


    Hello;

    Why does this xml have multiple namespaces?
    Code:
    <name xmlns = "http://www.somethjing.com/name"
    xmlns:xsi="http://www.w3.org/2001/MXLSchema-instance"
    xsi:schemaLocation="http://www.example.com/name name5.xsd"
    title = "Mr.">
  2. #2
  3. Transforming Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,180
    Rep Power
    9398
    It has two: the default for the document and one for XMLSchema-instance (xsi). Probably the only point of the latter is so that there's a reference to the name5.xsd, in case a reader wanted to validate the XML.

IMN logo majestic logo threadwatch logo seochat tools logo