XML declaration not accepted in parseXmlRDF #4

Open
robstewart57 opened this Issue Apr 11, 2012 · 0 comments

Comments

Projects
None yet
1 participant

The top line of a typical XML input is not accepted by Text.RDF.RDF4H.XmlParser.parseXmlRDF . Typically, the top line of an RDF/XML input looks something like this:

e.g. This is accepted:

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:foaf="http://xmlns.com/foaf/0.1/">
  <rdf:Description rdf:about="http://www.example.com/users/joe">
    <foaf:holdsAccount
    foaf:OnlineAccount="http://twitter.com/joe"></foaf:holdsAccount> 
  </rdf:Description>
</rdf:RDF>

This is NOT accepted (and yet is valid RDF/XML serialization):

<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:foaf="http://xmlns.com/foaf/0.1/">
  <rdf:Description rdf:about="http://www.example.com/users/joe">
    <foaf:holdsAccount
    foaf:OnlineAccount="http://twitter.com/joe"></foaf:holdsAccount> 
  </rdf:Description>
</rdf:RDF>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment