You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Dave Minter (JIRA)" <ji...@apache.org> on 2013/12/02 17:29:36 UTC

[jira] [Commented] (JENA-599) RIOT validation logs valid XML as invalid

    [ https://issues.apache.org/jira/browse/JENA-599?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13836656#comment-13836656 ] 

Dave Minter commented on JENA-599:
----------------------------------

Attachment contains full example but relevant code snippet is:

final String sad = "<http://example.com/subject> <http://example.com/predicate> \"<xml/>\"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .";
final Model sadModel = ModelFactory.createDefaultModel();
// Final line incorrectly produces the following error message:
// [line: 1, col: 61] Lexical form '<xml/>' not valid for datatype http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral
sadModel.read(new StringReader(sad), null, "TTL");


> RIOT validation logs valid XML as invalid
> -----------------------------------------
>
>                 Key: JENA-599
>                 URL: https://issues.apache.org/jira/browse/JENA-599
>             Project: Apache Jena
>          Issue Type: Bug
>    Affects Versions: Jena 2.10.0, Jena 2.11.0
>            Reporter: Dave Minter
>         Attachments: jena-bug.zip
>
>
> If an XMLLiteral contains an atomic XML element such as <br/> rather than a start/end element pair such as <br></br> the model validation logs this at WARN as being invalid. See attached example.



--
This message was sent by Atlassian JIRA
(v6.1#6144)