X-Received: by 10.157.37.123 with SMTP id j56mr4809016otd.101.1479021258539; Sat, 12 Nov 2016 23:14:18 -0800 (PST) X-Received: by 10.157.56.132 with SMTP id p4mr861957otc.20.1479021258506; Sat, 12 Nov 2016 23:14:18 -0800 (PST) Path: csiph.com!weretis.net!feeder6.news.weretis.net!news.glorb.com!q124no1191592itd.0!news-out.google.com!c26ni1165itd.0!nntp.google.com!q124no244319itd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: it.comp.java Date: Sat, 12 Nov 2016 23:14:18 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=79.55.151.172; posting-account=alWjRAoAAABzAQDIs-0m2KU-hS1ktifO NNTP-Posting-Host: 79.55.151.172 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: creazione file XML con java From: =?UTF-8?B?UGHCsEzCsA==?= Injection-Date: Sun, 13 Nov 2016 07:14:18 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Xref: csiph.com it.comp.java:9001 Il giorno sabato 12 novembre 2016 21:26:44 UTC+1, Paolo ha scritto: > Quando c'=C3=A8 scritto nelle specifiche XSD di un campo "minOccurs=3D0 = " ,=20 > significa che quel nodo lo posso omettere oppure lo lascio con valore vuo= to? >=20 > Esempio (devo mettere 1 se il pagamento =C3=A8 anticipato, altrimenti se = non lo=20 > fosse? ) : >=20 > > > > > > > >=20 >=20 > Grazie Quel "minOccurs=3D0", numero minimo di occorrenze a 0, significa che l'elem= ento pu=C3=B2 non essere presente nell'XML. Qui trovi info sulle cardinalit=C3=A0: http://www.w3schools.com/xml/schema_= complex_indicators.asp Se l'elemento =C3=A8 presente, il solo valore che pu=C3=B2 avere =C3=A8 1: Qui trovi info su Restrictions/Facets: http://www.w3schools.com/xml/schema_= facets.asp > Esempio (devo mettere 1 se il pagamento =C3=A8 anticipato, altrimenti se = non lo=20 > fosse? ) L'XSD ti dice che l'elemento "flagPagamentoAnticipato" pu=C3=B2 non esserci= nell'XML ma, se presente, deve avere valore 1.