List Info

Thread: Problem validating package2.xml




Problem validating package2.xml
user name
2007-03-22 04:18:53
Hello,

I have problems validating XML while trying to upload the
first release of
package... I will be appreciate if anybody could help me
with
package2.xml.

The archive is here:
http://www.tozalakyan.com/fc/HTTP_FloodControl-0.1.1.tgz


Thanks in advance.

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


Re: Problem validating package2.xml
user name
2007-03-22 06:02:04
Hi,

Vagharshak Tozalakyan wrote:
> I have problems validating XML while trying to upload
the first release of
> package... I will be appreciate if anybody could help
me with
> package2.xml.
> 
> The archive is here:
> http://www.tozalakyan.com/fc/HTTP_FloodControl-0.1.1.tgz

> 
> Thanks in advance.


Your package.xml validates if <phprelease/> tag is
added before the closing 
</package>. BTW, I think this tag should be somewhat
better documented, 
especially the non-obvious fact that it is in fact
required...

Also please change the name of your package to
HTTP_FloodControl from PEAR. :]

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


Re: Problem validating package2.xml
user name
2007-03-22 06:58:29
I make the changes you have mention, but still receive the
error: Parsing
of package.xml from file
"/tmp/pearxVUSps/package2.xml" failed. How do you
think what may cause the problem now? Thanks.

> Hi,
>
> Vagharshak Tozalakyan wrote:
>> I have problems validating XML while trying to
upload the first release
>> of
>> package... I will be appreciate if anybody could
help me with
>> package2.xml.
>>
>> The archive is here:
>> http://www.tozalakyan.com/fc/HTTP_FloodControl-0.1.1.tgz

>>
>> Thanks in advance.
>
>
> Your package.xml validates if <phprelease/> tag
is added before the
> closing
> </package>. BTW, I think this tag should be
somewhat better documented,
> especially the non-obvious fact that it is in fact
required...
>
> Also please change the name of your package to
HTTP_FloodControl from
> PEAR. :]
>

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


Re: Problem validating package2.xml
user name
2007-03-22 08:44:40
On 3/22/07, Vagharshak Tozalakyan <vaghtozalakyan.com> wrote:
> I make the changes you have mention, but still receive
the error: Parsing
> of package.xml from file
"/tmp/pearxVUSps/package2.xml" failed. How do you
> think what may cause the problem now? Thanks.
>

Message I received was that notes cannot be empty.

ucommbieber:~/Desktop/test/HTTP_FloodControl bbieber$ diff
-u
~/Desktop/HTTP_FloodControl-0.1.1/package2.xml
./package.xml
---
/Users/bbieber/Desktop/HTTP_FloodControl-0.1.1/package2.xml
2007-03-22 06:39:00.000000000 -0500
+++ ./package.xml       2007-03-22 08:37:54.000000000 -0500
 -38,7
+38,7 
   <api>alpha</api>
  </stability>
  <license uri="http://www.gnu.org/copyleft/lesser.html&quo
t;>LGPL</license>
- <notes/>
+ <notes>First Release</notes>
  <contents>
   <dir name="/">
    <file name="FloodControl/Container.php"
role="php" />


I also named the package file package.xml... placed it
inside the
HTTP_FloodControl Directory, then ran pear package which
made the
package.

I think you should be good to go. If you don't plan on using
the
automated package.xml which is available on your package
homepage I
would suggest PEAR_PackageFileManager which can
automatically build
the XML file for you. Good luck!

-- 
-Brett Bieber

http:saltybeagle.com aim:ianswerq

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


Re: Problem validating package2.xml
user name
2007-03-22 09:37:47
Vagharshak Tozalakyan wrote:
> I make the changes you have mention, but still receive
the error: Parsing
> of package.xml from file
"/tmp/pearxVUSps/package2.xml" failed. How do you
> think what may cause the problem now? Thanks.

Hi Vagharshak,

Please take these steps:

1) log into http://
pear.php.net/package/HTTP_FloodControl by clicking
the "Log in" text in the upper right corner.
2) on the right, you will see: "First release should be
version 0.1.0,
stability alpha" click the "0.1.0" link
3) write "initial release" into the "Describe
the Goals of this Release"
section, write "today" in the "Scheduled
Release Date" section, click "Save"
4) when the page refreshes, click "Generate package.xml
for this release"
5) cut and paste the package.xml text, replacing the
<contents> tag with
the contents of your existing package.xml

This will solve your problem.

Greg

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


Re: Problem validating package2.xml
user name
2007-03-22 12:15:54
The problem was that <notes/> should not be empty.
Thanks to all.


> On 3/22/07, Vagharshak Tozalakyan <vaghtozalakyan.com> wrote:
>> I make the changes you have mention, but still
receive the error:
>> Parsing
>> of package.xml from file
"/tmp/pearxVUSps/package2.xml" failed. How do
>> you
>> think what may cause the problem now? Thanks.
>>
>
> Message I received was that notes cannot be empty.
>
> ucommbieber:~/Desktop/test/HTTP_FloodControl bbieber$
diff -u
> ~/Desktop/HTTP_FloodControl-0.1.1/package2.xml
./package.xml
> ---
/Users/bbieber/Desktop/HTTP_FloodControl-0.1.1/package2.xml
> 2007-03-22 06:39:00.000000000 -0500
> +++ ./package.xml       2007-03-22 08:37:54.000000000
-0500
>  -38,7 +38,7 
>    <api>alpha</api>
>   </stability>
>   <license uri="http://www.gnu.org/copyleft/lesser.html&quo
t;>LGPL</license>
> - <notes/>
> + <notes>First Release</notes>
>   <contents>
>    <dir name="/">
>     <file
name="FloodControl/Container.php"
role="php" />
>
>
> I also named the package file package.xml... placed it
inside the
> HTTP_FloodControl Directory, then ran pear package
which made the
> package.
>
> I think you should be good to go. If you don't plan on
using the
> automated package.xml which is available on your
package homepage I
> would suggest PEAR_PackageFileManager which can
automatically build
> the XML file for you. Good luck!
>
> --
> -Brett Bieber
>
> http:saltybeagle.com aim:ianswerq
>

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


[1-6]

about | contact  Other archives ( Real Estate discussion Medical topics )