Pessoal o meu xml está sendo validado porem ele ta trazendo os erros e
já verifiquei o XML porem todos os campos já estão prenchidos conforme
o erro está solicitando :
erros :
Erro 1831: Element '{
http://www.portalfiscal.inf.br/nfe}nro': [facet
'minLength'] The value has a length of '0'; this underruns the allowed
minimum length of '1'.
; Erro 1839: Element '{
http://www.portalfiscal.inf.br/nfe}nro': [facet
'pattern'] The value '' is not accepted by the pattern '[!-ÿ]{1}[ -
ÿ]*[!-ÿ]{1}|[!-ÿ]{1}'.
; Erro 1824: Element '{
http://www.portalfiscal.inf.br/nfe}nro': '' is
not a valid value of the local atomic type.
; Erro 1839: Element '{
http://www.portalfiscal.inf.br/nfe}vUnCom':
[facet 'pattern'] The value '' is not accepted by the pattern '0|0\.
[0-9]{1,10}|[1-9]{1}[0-9]{0,10}|[1-9]{1}[0-9]{0,10}(\.[0-9]{1,10})?'.
; Erro 1824: Element '{
http://www.portalfiscal.inf.br/nfe}vUnCom': ''
is not a valid value of the atomic type '{http://
www.portalfiscal.inf.br/nfe}TDec_1110'.
; Erro 1840: Element '{
http://www.portalfiscal.inf.br/nfe}CSOSN':
[facet 'enumeration'] The value '' is not an element of the set
{'101'}.
; Erro 1824: Element '{
http://www.portalfiscal.inf.br/nfe}CSOSN': ''
is not a valid value of the local atomic type.
; Erro 1840: Element '{
http://www.portalfiscal.inf.br/nfe}CST': [facet
'enumeration'] The value '' is not an element of the set {'04', '06',
'07', '08', '09'}.
; Erro 1824: Element '{
http://www.portalfiscal.inf.br/nfe}CST': '' is
not a valid value of the local atomic type.
; Erro 1840: Element '{
http://www.portalfiscal.inf.br/nfe}CST': [facet
'enumeration'] The value '' is not an element of the set {'04', '06',
'07', '08', '09'}.
; Erro 1824: Element '{
http://www.portalfiscal.inf.br/nfe}CST': '' is
not a valid value of the local atomic type.
; Erro 1871: Element '{
http://www.portalfiscal.inf.br/nfe}vNF': This
element is not expected. Expected is ( {
http://www.portalfiscal.inf.br/
nfe}vOutro ).
; Erro 1840: Element '{
http://www.portalfiscal.inf.br/nfe}modFrete':
[facet 'enumeration'] The value 'destinatario' is not an element of
the set {'0', '1', '2', '9'}.
; Erro 1824: Element '{
http://www.portalfiscal.inf.br/nfe}modFrete':
'destinatario' is not a valid value of the local atomic type.
; Erro 1840: Element '{
http://www.portalfiscal.inf.br/nfe}UF': [facet
'enumeration'] The value 'Distrito Federal - DF' is not an element of
the set {'AC', 'AL', 'AM', 'AP', 'BA', 'CE', 'DF', 'ES', 'GO', 'MA',
'MG', 'MS', 'MT', 'PA', 'PB', 'PE', 'PI', 'PR', 'RJ', 'RN', 'RO',
'RR', 'RS', 'SC', 'SE', 'SP', 'TO', 'EX'}.
; Erro 1824: Element '{
http://www.portalfiscal.inf.br/nfe}UF':
'Distrito Federal - DF' is not a valid value of the atomic type
'{
http://www.portalfiscal.inf.br/nfe}TUf'.
; Erro 1840: Element '{
http://www.portalfiscal.inf.br/nfe}UF': [facet
'enumeration'] The value 'Distrito Federal - DF' is not an element of
the set {'AC', 'AL', 'AM', 'AP', 'BA', 'CE', 'DF', 'ES', 'GO', 'MA',
'MG', 'MS', 'MT', 'PA', 'PB', 'PE', 'PI', 'PR', 'RJ', 'RN', 'RO',
'RR', 'RS', 'SC', 'SE', 'SP', 'TO', 'EX'}.
; Erro 1824: Element '{
http://www.portalfiscal.inf.br/nfe}UF':
'Distrito Federal - DF' is not a valid value of the atomic type
'{
http://www.portalfiscal.inf.br/nfe}TUf'.
; Erro Fatal 4: Start tag expected, '<' not found
Abraço.
On 29 mar, 17:24, Roberto Leite Machado
<
roberto.mach...@superig.com.br> wrote:
> Sim !!
>
> A validação pelo XSD contêm "expressões regulares" que não são bem tratadas
> pelo PHP e portanto devem ser alteradas no próprio xsd
> Existem comentários no grupo sobre isso
>
> Roberto
>
> Em 29 de março de 2012 15:17, Edilson Belluomini <
>
edilson.belluom...@gmail.com> escreveu:
>
>
>
>
>
>
>
>
>
> > Seu que existem posts anteriores a respeito, mas não descobri nenhum
> > que resolvesse o problema.
>
> > Estou recebendo a mensagem:
>
> > Erro 1839: Element '{
http://www.portalfiscal.inf.br/nfe}IE': [facet
> > 'pattern'] The value '' is not accepted by the pattern 'ISENTO|[0-9]
> > {0,14}'. ; Erro 1824: Element '{
http://www.portalfiscal.inf.br/nfe}
> > IE': '' is not a valid value of the atomic type '{http://
> >
www.portalfiscal.inf.br/nfe}TIeDest<
http://www.portalfiscal.inf.br/nfe%7DTIeDest>'.
> *Nisi utile est quod facimus, stulta est gloria (*Julius Phaedous*)*