Explain \\: escaping colon for xml namespace pseudo
See original GitHub issueWhile attempting to parse an RSS feed, I got the SyntaxError: unmatched pseudo-class :origlink
error. Looking through the issues, I only found references to jQuery pseudo-classes.
For XML parsing, it might help to mention escaping the :
with a double backslash. On the other hand, that’s a standard CSS selector feature, so maybe the text of this issue will be enough SEO to help others who run into the same error.
Issue Analytics
- State:
- Created 9 years ago
- Reactions:12
- Comments:5 (3 by maintainers)
Top Results From Across the Web
how to escape colon (:) in XML for XML Reader in extjs 4
Colon is a reserved character in XML identifiers, and may be used only for binding XML Namespaces. There is no way to escape...
Read more >Extensible Markup Language (XML) 1.0 (Fifth Edition) - W3C
Therefore, authors should not use the colon in XML names except for namespace purposes, but XML processors must accept the colon as a...
Read more >Namespaces and Introduction to XPath - Courses
These parts are separated by a colon and called QNames (Qualified Names). ... <c:pseudocode xmlns:c="urn:publicid:IDN+mathdoc.org:pseudocode:en"> <c:comment ...
Read more >General Information on Namespaces
Defining a namespace within an XML document is simple: a document node is given an xmlns attribute to define the default namespace. Similarly,...
Read more >JCR 1.0: 6.4.3 Escaping of Names (Content Repository for ...
For example, a content repository name may contain spaces, whereas XML names ... name (as defined by XML 1.0) by translating invalid characters...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
lol just ended up back here a year and a half later. It might be nice if this error message were slightly different when
xmlMode:true
to give a hint at the quick fix.In case anyone stumbles upon this with the intention to use
attr
, escaping is not necessary (nor possible) in that use case.