jeu. 13 juin 2013, 14h55
Gregory
atoutfox.public.association
Re: [SEPA] fichier XSD
No, not on purpose - don't know how it got there
______
Gregory
______
"Cesar Ch" wrote in message news:kpceai$11sk$1@news.niouzes.net...
F A N T A S T I C !!!!!
Le jeu. 13 juin 2013, 08h39 Gregory Adam a écrit :
> (1) the second line below text to lcHeadCountXSD contains semicolons
Thanks!
In your original message at
http://www.atoutfox.org/nntp.asp?ID=0000012110, in "HeadCound.xsd" you
probably left a unique semicolon in the 2nd line. Was that on purpose?
> this line
> =STRTOFILE(m.lcHeadCount, xsdFile)
> should be
> =STRTOFILE(m.lcHeadCountXSD , xsdFile)
Thanks, In fact, I was working with the files in the disk directly. I tried
to create a sample PRG for you to run directly. I need to take more care in
the future, sorry for that !
> ps:concerning pretext 15
> There was a time - don't know about today - that the Xerxes parser had a
> problem when ther was no newline after the first line (and mabe the root
> node)
>
> That is why I always put a CRLF after the first line, comment line - if
> any- the root node opening tag and the root node closing tag
> Example
<?xml version="1.0" encoding="UTF-8"?>
<!-- (c) Gregory Adam 2009-2013 -->
<biztax>
<xbrl
xmlns:d-empreg='http://www.minfin.fgov.be/be/tax/d/empreg/2013-04-30'
xmlns:tax-inc-rcorp='http://www.minfin.fgov.be/be/tax/inc/rcorp/2013-04-30'
--- from here no CRLF any more until just before the closing tag of the
root node
</biztax>
Thanks for the advice !
Now your sample works perfectly, thanks very much !
One only single modification that I would suggest is to replace the line
nameSpace = 'xsdHeadCount'
with
nameSpace =
xsdObj.documentElement.getAttribute("targetNamespace")
This change is useful when you don't know the namespace that is being used,
and need to confront a XML against a XSD
Now I'm just fine tuning your function, and will send it back to you
shortly.
THANK YOU SOOOO MUCH !!!
This will go to production immediately :-D
You rock Gregory !
Permalink : http://www.atoutfox.org/nntp.asp?ID=0000012118