Hi everybody,
I need your help about XML file de-serializing.
Example 1. My XML file starts like this:
<?xml version="1.0" encoding="UTF-8"?><ns0:FatturaElettronica xmlns:ns0="http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2" versione="FPR12">
<FatturaElettronicaHeader xmlns:ns0="http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2">
<DatiTrasmissione>
The xmlRead instruction returns a root node and a subsequent xmlFindFirst makes me able to find "FatturaElettronicaHeader".
It's ok, this is exactly what I need.
Example 2. My XML file starts like this:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="C:\Roberto_Lavoro\Normativa\Fatture e Corrispettivi 2017\fatturaordinaria_v1.2.xsl"?>
<p:FatturaElettronica versione="FPR12" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:p="http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2 http://www.fatturapa.gov.it/export/fatturazione/sdi/fatturapa/v1.2/Schema_del_file_xml_FatturaPA_versione_1.2.xsd">
<FatturaElettronicaHeader>
The xmlRead instruction returns me the following root node:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="C:\Roberto_Lavoro\Normativa\Fatture e Corrispettivi 2017\fatturaordinaria_v1.2.xsl"?>
and from that node I can not find nothin more.
So, the question is: how can I read such an XML file? While the second<?xml ---?> prevents me to read the XML nodes? How can I read the file correctly. I'd avoid to read and re-write the file in order to get a new file starting in the right way. I could generate other errors manipulating the original file, so I'm looking for something more solid and cuter.
Any ideas or suggestions?
thanks in advance
I need your help about XML file de-serializing.
Example 1. My XML file starts like this:
<?xml version="1.0" encoding="UTF-8"?><ns0:FatturaElettronica xmlns:ns0="http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2" versione="FPR12">
<FatturaElettronicaHeader xmlns:ns0="http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2">
<DatiTrasmissione>
The xmlRead instruction returns a root node and a subsequent xmlFindFirst makes me able to find "FatturaElettronicaHeader".
It's ok, this is exactly what I need.
Example 2. My XML file starts like this:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="C:\Roberto_Lavoro\Normativa\Fatture e Corrispettivi 2017\fatturaordinaria_v1.2.xsl"?>
<p:FatturaElettronica versione="FPR12" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:p="http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2 http://www.fatturapa.gov.it/export/fatturazione/sdi/fatturapa/v1.2/Schema_del_file_xml_FatturaPA_versione_1.2.xsd">
<FatturaElettronicaHeader>
The xmlRead instruction returns me the following root node:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="C:\Roberto_Lavoro\Normativa\Fatture e Corrispettivi 2017\fatturaordinaria_v1.2.xsl"?>
and from that node I can not find nothin more.
So, the question is: how can I read such an XML file? While the second<?xml ---?> prevents me to read the XML nodes? How can I read the file correctly. I'd avoid to read and re-write the file in order to get a new file starting in the right way. I could generate other errors manipulating the original file, so I'm looking for something more solid and cuter.
Any ideas or suggestions?
thanks in advance