Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Senior Coder nikos101's Avatar
    Join Date
    Dec 2006
    Location
    London
    Posts
    1,005
    Thanks
    58
    Thanked 10 Times in 10 Posts

    Question what is the purpose of xmlns:xsd etc

    what is the purpose of this xmlns:xsd="http://www.w3.org/2001/XMLSchema in does it actually do anything to my program? its just a webpage


  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,606
    Thanks
    6
    Thanked 997 Times in 970 Posts
    “xmlns” means “XML namespace”. In such a namespace document you can define the elements you want to use in your document. For example, XHTML is a namespace of an XML document (you might have noticed the xmlns="http://www.w3.org/1999/xhtml" on the <html> element in XHTML documents). If you have similarly named elements in your XML document you can differentiate them by assigning a namespace. Wikipedia has a good article about that.

  • #3
    Senior Coder nikos101's Avatar
    Join Date
    Dec 2006
    Location
    London
    Posts
    1,005
    Thanks
    58
    Thanked 10 Times in 10 Posts
    cheers VIP!


  • #4
    Senior Coder nikos101's Avatar
    Join Date
    Dec 2006
    Location
    London
    Posts
    1,005
    Thanks
    58
    Thanked 10 Times in 10 Posts
    I see, so what does it do to effect the xml,
    eg I have an xml which points to

    http://schemas.microsoft.com/sqlserv...elWarrAndMain/
    should it not point to
    http://schemas.microsoft.com/sqlserv...arrAndMain.xsd
    instead because that is where the schema info is?


  • #5
    New Coder
    Join Date
    May 2012
    Posts
    34
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Actually whatever coding a person would have done in his MVC or JSP pages, the same thing gets stored to XML and then while redirecting the page, it points to the page from where it has been taken from.

  • #6
    Senior Coder Dormilich's Avatar
    Join Date
    Jan 2010
    Location
    Behind the Wall
    Posts
    3,215
    Thanks
    12
    Thanked 338 Times in 334 Posts
    Quote Originally Posted by nikos101 View Post
    I see, so what does it do to effect the xml,
    it allows you to define and validate namespaces separately (even use the same names in different namespaces)
    The computer is always right. The computer is always right. The computer is always right. Take it from someone who has programmed for over ten years: not once has the computational mechanism of the machine malfunctioned.
    André Behrens, NY Times Software Developer


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •