Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 177099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T13:59:39+00:00 2026-05-11T13:59:39+00:00

I always wondered how an XML parser handle the check of a URI namespace.

  • 0

I always wondered how an XML parser handle the check of a URI namespace. is it string based, or URI based? in other words, this is the standard URI for SVG

xmlns='http://www.w3.org/2000/svg' 

suppose that I write instead

xmlns='http://www.w3.org/2000/../2000/svg' 

or

xmlns='http://www.w3.org/2000/svg/' 

or even

xmlns='http://www.w3.org:8000/2000/svg' 

Will these cases be recognized as svg namespaces (URI based) or not (string based)?

Thanks

Edit : the fact that you can use URNs (like a uuid) makes me feel like it’s string based, because you cannot apply the proper URL/URI considerations to a non URL-like URI. But maybe in that case it will just work as a string ?

Edit: As Tormod points out it is made with a string comparison. This prompts me to wonder if there are recommendations for defining URIs (like: no slash at the end, all lowercase, etc…). Or is it just a free-for-all ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T13:59:39+00:00Added an answer on May 11, 2026 at 1:59 pm

    They are string based. All your sample URIs resolve to different namespaces.

    http://www.w3.org/TR/REC-xml-names/#NSNameComparison

    URI references identifying namespaces are compared when determining whether a name belongs to a given namespace, and whether two names belong to the same namespace. [Definition: The two URIs are treated as strings, and they are identical if and only if the strings are identical, that is, if they are the same sequence of characters. ] The comparison is case-sensitive, and no %-escaping is done or undone.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

one thing that i always wondered, if i have a method like this: String
I've always wondered about this, and now a client is wondering whether it's feasable:
I have always wondered about this. So many application setups have a zip file
I've always wondered about this. I have an @property called hitCounter and this works
I always wondered how could a game generate a packet like this: 22 00
I've always wondered this - why can't you declare variables after a case label
I've always wondered this. I have a habit of always adding use strict; use
I've always wondered how I could get away with this: int main(int argc, char
I always wondered how exactly you'd handle caching of database-values (in C#, ASP.NET) so
I have always wondered what purpose it serves to redefine new . By this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.