Salve ragazzi,
io ho il seguente file xml
Voglio farmi restituire l'elemento ELEMENT per poi poterlo aggiungere come figlio di un altro elemento che ho in un altro file. Come posso fare?codice:<?xml version="1.0" encoding="UTF-8"?><rdf:RDF xmlns="http://www.owl-ontologies.com/micie.owl#" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:protege="http://protege.stanford.edu/plugins/owl/protege#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:swrl="http://www.w3.org/2003/11/swrl#" xmlns:swrlb="http://www.w3.org/2003/11/swrlb#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" xmlns:xsp="http://www.owl-ontologies.com/2005/08/07/xsp.owl#" xml:base="http://www.owl-ontologies.com/micie.owl"> <ELEMENT rdf:ID="ELEMENT_1"> <id_element rdf:datatype="http://www.w3.org/2001/XMLSchema#string">23455878</id_element> <operative_level> <FUZZY_NUMBER rdf:about="#0.3"> <certainty rdf:datatype="http://www.w3.org/2001/XMLSchema#float">0.3</certainty> <left_bound rdf:datatype="http://www.w3.org/2001/XMLSchema#float">1.0</left_bound> <right_bound rdf:datatype="http://www.w3.org/2001/XMLSchema#float">3.0</right_bound> <center_vertex rdf:datatype="http://www.w3.org/2001/XMLSchema#float">2.0</center_vertex> </FUZZY_NUMBER> </operative_level> </ELEMENT> </rdf:RDF>

Rispondi quotando