validation - Is a valid xml node name? -


I read millions of questions about the rules of naming the XML node. But none of them answers the simple question: Can the node name begin with the colon?

Example:

  & lt ;: nodename & gt; Internal text & lt; /: Nodename & gt;   

This can be associated with blank namespace (global namespace). But are not sure whether this is valid, and what is the likely use of such a name.

No real use of the PS code, or to use ideas, just the purpose of curiosity and self-education

PS 2. Some research links:

  • This one: It says
  • - Namesh place [xml name] in xml recommendation The meaning specifies the colon character named I, therefore, the authors should not use the colon in the XML names except namespace purposes, but the XML processor should accept the colon as a name. There is still no response ...

    This is XML 1.0 and XML 1.1 is well-formed according to the specifications, but not according to the namespace specification Most people (and software) need to make XML namespace-well, so it will definitely be best to avoid .

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -