Baanboard.com

Go Back   Baanboard.com > Forum > Baan Quick Support: Functional & Technical > Tools Development

User login

Frontpage Sponsor

Main

Google search


Poll
How big is your Baan-DB (just Data AND Indexes)
0 - 200 GB
15%
200 - 500 GB
30%
500 - 800 GB
4%
800 - 1200 GB
4%
1200 - 1500 GB
11%
1500 - 2000 GB
15%
> 2000 GB
22%
Total votes: 27

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 28th October 2018, 22:14
I.Benini I.Benini is offline
Member
 
Join Date: Jan 2002
Location: Italy
Posts: 39
I.Benini is on a distinguished road
XML issue
Baan: Baan IVc4
C/S: Server

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
Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Generate XML issue gianci Tools Development 6 14th October 2015 19:52
Generic solution for writing XML files from Baan en@frrom Tools Development 1 11th April 2011 11:53
Problem with multiple XML documents.... BaaNovva Open World, Portal & Decision Manager 0 11th February 2008 13:12
XML READING ERROR (baan IV) mr_suleyman Tools Development 5 2nd February 2007 16:08
Tomcat & OW XML parser issue edalzell Open World, Portal & Decision Manager 5 23rd October 2003 05:36


All times are GMT +2. The time now is 15:00.


©2001-2018 - Baanboard.com - Baanforums.com