isawnyu / awld-js

A javascript library for Ancient World Linked Data.
BSD 3-Clause "New" or "Revised" License
21 stars 7 forks source link

Parsing files with namespaces in tag names #1

Closed regisrob closed 12 years ago

regisrob commented 12 years ago

There is a problem while parsing RDF files with namespaces in tag names (eg dc:title). It seems this is due to a lack of namespaces support in jQuery (problem with colon escaping). Maybe some tips here : http://stackoverflow.com/questions/853740/jquery-xml-parsing-with-namespaces Thx for your help!

regisrob commented 12 years ago

Sorry, it was a "non-issue". The solution was right here at the bottom of this post : http://stackoverflow.com/questions/853740/jquery-xml-parsing-with-namespaces. Just have to escape colon in the selector (with double ) : Eg : getText('dc\:title') [double antislash is filtered and replaced by a single one in this example]