MCPcopy Create free account
hub / github.com/Exiv2/exiv2 / RDF_NodeElement

Function RDF_NodeElement

xmpsdk/src/ParseRDF.cpp:692–707  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

690// A node element URI is rdf:Description or anything else that is not an RDF term.
691
692static void
693RDF_NodeElement ( XMP_Node * xmpParent, const XML_Node & xmlNode, bool isTopLevel )
694{
695 RDFTermKind nodeTerm = GetRDFTermKind ( xmlNode.name );
696 if ( (nodeTerm != kRDFTerm_Description) && (nodeTerm != kRDFTerm_Other) ) {
697 XMP_Throw ( "Node element must be rdf:Description or typedNode", kXMPErr_BadRDF );
698 }
699
700 if ( isTopLevel && (nodeTerm == kRDFTerm_Other) ) {
701 XMP_Throw ( "Top level typedNode not allowed", kXMPErr_BadXMP );
702 } else {
703 RDF_NodeElementAttrs ( xmpParent, xmlNode, isTopLevel );
704 RDF_PropertyElementList ( xmpParent, xmlNode, isTopLevel );
705 }
706
707} // RDF_NodeElement
708
709
710// =================================================================================================

Callers 2

RDF_NodeElementListFunction · 0.85

Calls 3

GetRDFTermKindFunction · 0.85
RDF_NodeElementAttrsFunction · 0.85
RDF_PropertyElementListFunction · 0.85

Tested by

no test coverage detected