I want to parse the result of a SPARQL XML result like this:
<sparql xmlns="http://www.w3.org/2005/sparql-results#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/2001/sw/DataAccess/rf1/result2.xsd">
<head>
<variable name="blurb"/>
</head>
<results>
<result>
<binding name="blurb">
<literal datatype="http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral">
<p xmlns="http://www.w3.org/1999/xhtml">My name is <b>alice</b></p>
</literal>
</binding>
</result>
</results>
</sparql>
and get everything under the literal node as a string, i.e. <p xmlns="http://www.w3.org/1999/xhtml">My name is <b>alice</b></p>.
Is this possible with SweetXML somehow?
I want to parse the result of a SPARQL XML result like this:
and get everything under the
literalnode as a string, i.e.<p xmlns="http://www.w3.org/1999/xhtml">My name is <b>alice</b></p>.Is this possible with SweetXML somehow?