Ho il seguente XML:
vorrei leggere il nodo <a:M_RAGAPTable>, e faccio la seguente (la variabile ws_envr contiene l'XML di sopra):codice:<?xml version="1.0"?> <GetGAPListResult xmlns:a="http://schemas.datacontract.org/2004/07/MHT_RASWindowsService" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <a:M_RAGAPTable> <a:Description>Sforamento prezzi</a:Description> <a:Id>VEN003</a:Id> <a:SialSubProjId>ACSD02EXTR01</a:SialSubProjId> <a:Source>GAP</a:Source> </a:M_RAGAPTable> </a:M_RAGAPTable> </GetGAPListResult>
Tuttavia alla fine di queste istruzioni il valore di "numero_M_RAGAPTable" è 0 e non riesco ad eseguire le operazioni successive.codice:-- Recupero il documento in formato XML var := xmltype(ws_envr); doc := dbms_xmldom.newdomdocument(var); -- Lettura del nodo a:M_RAGAPTable nodo_M_RAGAPTable := xmldom.getelementsbytagname(doc, 'a:M_RAGAPTable'); numero_M_RAGAPTable := xmldom.getlength(nodo_M_RAGAPTable);
Grazie in anticipo per l'aiuto.

Rispondi quotando