Yukisama / x2js

Automatically exported from code.google.com/p/x2js
0 stars 0 forks source link

namespaces not working in chrome #28

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. addind a xml file with namespaces in chrome
2. in firefox it works.
3.

What is the expected output? What do you see instead?
json 

What version of the product are you using? On what operating system and
browser version?
ubuntu , chrome

Please provide any additional information below.

<?xml version="1.0" encoding="UTF-8"?><sv:node 
xmlns:dc="http://purl.org/dc/elements/1.1/" 
xmlns:nt="http://www.jcp.org/jcr/nt/1.0" 
xmlns:ns001="http://purl.org/dc/elements/1.1/dc:" 
xmlns:foaf="http://xmlns.com/foaf/0.1/" 
xmlns:cnt="http://www.w3.org/2011/content#" 
xmlns:ns002="http://www.w3.org/1999/02/22-rdf-syntax-ns##" 
xmlns:test="info:fedora/test/" 
xmlns:fedoraconfig="http://fedora.info/definitions/v4/config#" 
xmlns:xs="http://www.w3.org/2001/XMLSchema" 
xmlns:image="http://www.modeshape.org/images/1.0" 
xmlns:oax="http://www.w3.org/ns/openannotation/extensions/" 
xmlns:fedorarelsext="http://fedora.info/definitions/v4/rels-ext#" 
xmlns:premis="http://www.loc.gov/premis/rdf/v1#" 
xmlns:mix="http://www.jcp.org/jcr/mix/1.0" 
xmlns:mode="http://www.modeshape.org/1.0" 
xmlns:dcterms="http://purl.org/dc/terms/" 
xmlns:jcr="http://www.jcp.org/jcr/1.0" 
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" 
xmlns:oa="http://www.w3.org/ns/oa#" 
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
xmlns:sv="http://www.jcp.org/jcr/sv/1.0" 
xmlns:authz="http://fedora.info/definitions/v4/authorization#" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:fedora="http://fedora.info/definitions/v4/rest-api#" 
sv:name="0390"><sv:property sv:name="jcr:primaryType" 
sv:type="Name"><sv:value>nt:folder</sv:value></sv:property><sv:property 
sv:name="jcr:created" 
sv:type="Date"><sv:value>2014-09-29T13:07:58.306+02:00</sv:value></sv:property><
sv:property sv:name="jcr:createdBy" 
sv:type="String"><sv:value>bypassAdmin</sv:value></sv:property><sv:node 
sv:name="9ae8bb354ee659ad949829080c2a2df8"><sv:property 
sv:name="jcr:primaryType" 
sv:type="Name"><sv:value>nt:folder</sv:value></sv:property><sv:property 
sv:name="jcr:mixinTypes" sv:type="Name" 
sv:multiple="true"><sv:value>fedora:resource</sv:value><sv:value>fedora:object</
sv:value></sv:property><sv:property sv:name="jcr:uuid" 
sv:type="String"><sv:value>a844128d-6614-4418-a6c1-7f9278ff6aba</sv:value></sv:p
roperty><sv:property sv:name="jcr:created" 
sv:type="Date"><sv:value>2014-09-29T13:07:58.306+02:00</sv:value></sv:property><
sv:property sv:name="dc:description-de" sv:type="String" 
sv:multiple="true"><sv:value>Die Familie des hier abgebildeten Goeslis von 
Ehenheim lebte südlich von Straßburg und bekleidetet das Burgmannenamt in 
Oberehenheim und Werd. Als Ritter ist er unter dem Namen Gozmar von Ehrenheim 
1242 und 1276 urkundlich erwähnt, er ist jedoch wahrscheinlich nicht identisch 
mit dem Minnesänger gleichen Namens.</sv:value></sv:property><sv:property 
sv:name="jcr:lastModified" 
sv:type="Date"><sv:value>2014-09-29T13:07:58.306+02:00</sv:value></sv:property><
sv:property sv:name="dc:language" sv:type="String" 
sv:multiple="true"><sv:value>de</sv:value></sv:property><sv:property 
sv:name="jcr:lastModifiedBy" 
sv:type="String"><sv:value>bypassAdmin</sv:value></sv:property><sv:property 
sv:name="jcr:createdBy" 
sv:type="String"><sv:value>bypassAdmin</sv:value></sv:property></sv:node><sv:nod
e sv:name="903b6fc1-5415-34aa-8629-22a6a8c640c1"><sv:property 
sv:name="jcr:primaryType" 
sv:type="Name"><sv:value>nt:folder</sv:value></sv:property><sv:property 
sv:name="jcr:mixinTypes" sv:type="Name" 
sv:multiple="true"><sv:value>fedora:resource</sv:value><sv:value>fedora:object</
sv:value></sv:property><sv:property sv:name="jcr:uuid" 
sv:type="String"><sv:value>4ec278de-ebf6-4c7a-81a3-90fc87b0a8f3</sv:value></sv:p
roperty><sv:property sv:name="dc:title" sv:type="String" 
sv:multiple="true"><sv:value>Herr Goesli von 
Ehenhein</sv:value></sv:property><sv:property sv:name="jcr:created" 
sv:type="Date"><sv:value>2014-09-29T14:24:02.617+02:00</sv:value></sv:property><
sv:property sv:name="jcr:lastModified" 
sv:type="Date"><sv:value>2014-09-29T14:24:02.617+02:00</sv:value></sv:property><
sv:property sv:name="jcr:lastModifiedBy" 
sv:type="String"><sv:value>bypassAdmin</sv:value></sv:property><sv:property 
sv:name="jcr:createdBy" 
sv:type="String"><sv:value>bypassAdmin</sv:value></sv:property></sv:node><sv:nod
e sv:name="17117ca7"><sv:property sv:name="jcr:primaryType" 
sv:type="Name"><sv:value>nt:folder</sv:value></sv:property><sv:property 
sv:name="jcr:mixinTypes" sv:type="Name" 
sv:multiple="true"><sv:value>fedora:resource</sv:value><sv:value>fedora:object</
sv:value></sv:property><sv:property sv:name="jcr:uuid" 
sv:type="String"><sv:value>de92fcc5-b6ee-4dd5-b40d-e8c859e539fe</sv:value></sv:p
roperty><sv:property sv:name="jcr:created" 
sv:type="Date"><sv:value>2014-10-01T11:24:59.194+02:00</sv:value></sv:property><
sv:property sv:name="dc:description-de" sv:type="String" 
sv:multiple="true"><sv:value>aosduzoi</sv:value></sv:property><sv:property 
sv:name="jcr:lastModified" 
sv:type="Date"><sv:value>2014-10-01T11:24:59.194+02:00</sv:value></sv:property><
sv:property sv:name="dc:language" sv:type="String" 
sv:multiple="true"><sv:value>ger</sv:value></sv:property><sv:property 
sv:name="jcr:lastModifiedBy" 
sv:type="String"><sv:value>bypassAdmin</sv:value></sv:property><sv:property 
sv:name="jcr:createdBy" 
sv:type="String"><sv:value>bypassAdmin</sv:value></sv:property></sv:node></sv:no
de> 

Original issue reported on code.google.com by dulip.wi...@gmail.com on 1 Oct 2014 at 12:05

GoogleCodeExporter commented 8 years ago
Chrome DOM parser throws 'wrong URI exception' for URI in namespaces with '##'. 
It's not an issue in x2js. It's just browser behaviour for namespaces URI with 
'##' symbols.

Original comment by abdulla....@gmail.com on 3 Oct 2014 at 1:17

GoogleCodeExporter commented 8 years ago
thanks,  i have this xml format and it is  the java content repository format, 
where i have no control of. it all works in ie and chrome using your library.  
do you have any recommendations  for chrome?

Original comment by dulip.wi...@gmail.com on 4 Oct 2014 at 5:28