[wpkg-users] wpkg-0.9.9-test1 xml parsing error

Tomasz Chmielewski mangoo at wpkg.org
Sat Jun 3 00:06:12 CEST 2006


Falko Trojahn wrote:
> Hi,
>>>> BTW: What does wpkg do with files in any of profiles/hosts/packages
>>>> dir if e.g.
>>>> only one file throws a syntax error - is just this certain xml file
>>>> ignored
>>>> (would be really nice for testing purposes) or does it make stop
>>>> wpkg.js at all?
>>>
>>> Right now WPKG will not break and will tell you the file where the
>>> error was.
>>
>> I meant: it WILL break (and will tell you where the error was).
>>
> Hmm. =8-<<
> So, as we have a new way with directories for multiple xml files, I
> would like it if only the file with the error is ignored and an notice
> shown with the error. I'll try to find some time and dig a bit into it
> to find a way to only wipe out the file with. I know, perhaps it cannot
> be done because of the xml parsing, but we'll see.

Also, something screwed with detailed info on where the error is.

Previously (in 0.9.8) it was:


C:\wpkg>cscript wpkg-0.9.8-test1.js /query:a
Microsoft (R) Windows Script Host, Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. Alle Rechte vorbehalten.

Error while parsing XML document:  C:\wpkg\profiles.xml
Reason    Das Endtag 'profile' stimmt nicht mit dem Starttag 'package' 
.berein.

Line      20
Linepos   7
Filepos   569
srcText       </profile>
Unable to load specified XML document from C:\wpkg\profiles.xml


Now, in 0.9.9-test it is less specific about the error:

C:\wpkg>cscript wpkg.js /query:a
Microsoft (R) Windows Script Host, Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. Alle Rechte vorbehalten.

Error parsing xml: Das Endtag 'profile' stimmt nicht mit dem Starttag 
'package'
.berein.

'profiles' ist Null oder kein Objekt


-- 
Tomasz Chmielewski
http://wpkg.org


_______________________________________________
wpkg-users mailing list
wpkg-users at lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users




More information about the wpkg-users mailing list