Srivatsan | 3 Jun 2004 11:09

Xerces APIs to search node by attribute values

Dear Jason E Stewart:

	Thanks for the pointer. I am successful in building a DOM Tree. One quick
question on searching the DOM tree.Are there any APIs for searching a node
by it's attribute value in Xerces?. Thanks in advance.

Regards
Srivatsan.

-----Original Message-----
From: Jason E. Stewart [mailto:jason <at> openinformatics.com]
Sent: Sunday, 30 May 2004 9:07 PM
To: xerces-p-dev <at> xml.apache.org
Cc: srivatsans <at> future.futsoft.com
Subject: Re: Xerces APIs

"Srivatsan" <srivatsans <at> future.futsoft.com> writes:

> Can anyone help me with Xerces perl APIs for manipulating DOM tree
> in the memory ( adding, removing and replacing child nodes, I see
> that replaceChild, removeChild, appendChild etc exists I am not
> clear about their usage). Any pointers would be really
> appreciated.

Please see the file samples/DOMCreate.pl in the distribution.

Cheers,
jas.

***************************************************************************
(Continue reading)

bugzilla | 6 Jun 2004 16:21
Picon
Favicon

Bug report for Xerces-P [2004/06/06]

+---------------------------------------------------------------------------+
| Bugzilla Bug ID                                                           |
|     +---------------------------------------------------------------------+
|     | Status: UNC=Unconfirmed NEW=New         ASS=Assigned                |
|     |         OPN=Reopened    VER=Verified    (Skipped Closed/Resolved)   |
|     |   +-----------------------------------------------------------------+
|     |   | Severity: BLK=Blocker     CRI=Critical    MAJ=Major             |
|     |   |           MIN=Minor       NOR=Normal      ENH=Enhancement       |
|     |   |   +-------------------------------------------------------------+
|     |   |   | Date Posted                                                 |
|     |   |   |          +--------------------------------------------------+
|     |   |   |          | Description                                      |
|     |   |   |          |                                                  |
| 4611|New|Enh|2001-11-02|Convert Xerces-C documentation to POD             |
|20611|New|Nor|2003-06-09|overloaded Attributes::get{Type,Value} and Attribu|
|24604|New|Maj|2003-11-11|Handler/Makefile.PL blocks the effects of the hint|
|24605|New|Maj|2003-11-11|make -C Handler only works for GNU make           |
|24675|New|Maj|2003-11-13|XMLCatalogResolver should support the real standar|
|25675|New|Nor|2003-12-20|Makefile.PL does not use CONFIG_STATUS            |
|25686|New|Nor|2003-12-22|Memory access bug in XMLString2Perl()             |
|25788|New|Maj|2003-12-28|Using UNIVERSAL breaks XML::Xerces;               |
|29119|New|Nor|2004-05-20|relative paths broken                             |
+-----+---+---+----------+--------------------------------------------------+
| Total    9 bugs                                                           |
+---------------------------------------------------------------------------+
Your Name | 8 Jun 2004 00:31

2.5 Squeak

Hi Jason

I just wanted to throw in my squeak to the chorus of squeaks for XML-
Xerces-2.5.  

I appreciate the work you have done.

Mark
Chris Cheung | 11 Jun 2004 05:55
Picon

Appreciation

Hi Jason,

  Also, just want to let you know that I appreciate your voluntary work. 
We are actual using Xerces-Perl in a commercial project, which will be put 
into production in 1 or 2 months. 

Xerces-Perl is good as it enables Perl applications directly access the
Xerces-C ability to perform validation against schema, apart from parsing
and serialization. (It seems that libxml2, which also has a Perl wrapper,
does not do validation so well.) However, the memory leak problem (during
parsing even if validation is turned off, and during serialization) is 
hindering the project to use Xerces in a more large-scale way.

--

-- 
Best Regards,

Chris Cheung
bugzilla | 13 Jun 2004 16:21
Picon
Favicon

Bug report for Xerces-P [2004/06/13]

+---------------------------------------------------------------------------+
| Bugzilla Bug ID                                                           |
|     +---------------------------------------------------------------------+
|     | Status: UNC=Unconfirmed NEW=New         ASS=Assigned                |
|     |         OPN=Reopened    VER=Verified    (Skipped Closed/Resolved)   |
|     |   +-----------------------------------------------------------------+
|     |   | Severity: BLK=Blocker     CRI=Critical    MAJ=Major             |
|     |   |           MIN=Minor       NOR=Normal      ENH=Enhancement       |
|     |   |   +-------------------------------------------------------------+
|     |   |   | Date Posted                                                 |
|     |   |   |          +--------------------------------------------------+
|     |   |   |          | Description                                      |
|     |   |   |          |                                                  |
| 4611|New|Enh|2001-11-02|Convert Xerces-C documentation to POD             |
|20611|New|Nor|2003-06-09|overloaded Attributes::get{Type,Value} and Attribu|
|24604|New|Maj|2003-11-11|Handler/Makefile.PL blocks the effects of the hint|
|24605|New|Maj|2003-11-11|make -C Handler only works for GNU make           |
|24675|New|Maj|2003-11-13|XMLCatalogResolver should support the real standar|
|25675|New|Nor|2003-12-20|Makefile.PL does not use CONFIG_STATUS            |
|25686|New|Nor|2003-12-22|Memory access bug in XMLString2Perl()             |
|25788|New|Maj|2003-12-28|Using UNIVERSAL breaks XML::Xerces;               |
|29119|New|Nor|2004-05-20|relative paths broken                             |
+-----+---+---+----------+--------------------------------------------------+
| Total    9 bugs                                                           |
+---------------------------------------------------------------------------+
Jason E. Stewart | 15 Jun 2004 15:55

[Ilkka Poutanen] XML::Xerces build error message

Picon Picon
From: Ilkka Poutanen <ilkka.poutanen <at> tut.fi>
Subject: XML::Xerces build error message
Date: 2004-06-15 13:24:36 GMT
Hi,

ran across http://www.mail-archive.com/xerces-p-dev <at> xml.apache.org/msg01132.html
while having the same problem (albeit with Xerces-C 2.5.0) and, while it is a
months-old message, couldn't resist pointing out that the thing that confused
myself and probably him too was this:

1. "> You are attempt to build XML::Xerces-2.3.0 using Xerces-C-2.4.0,"
   "> this will most likely fail, so I am aborting."

2. "> You must use Xerces-C-2.4.0"
                          ^^^^^^^

Those mutually contradicting statements led me to believe the problem was
something more sinister than the obvious version mismatch. Anyway, at least I
think that you *could* in fact make your error message more clear :-)

--

-- 
Ilkka Poutanen <ilkka.poutanen <at> tut.fi>
"Who reigns within himself, and rules
  Passions, desires, and fears, is more a king."
        -- John Milton

-----------------------------------------------------------------
This mail was sent through IMP Webmail at http://www.imp3.tut.fi/
-----------------------------------------------------------------
Anshuman Singh Rawat | 15 Jun 2004 07:08
Picon

help with XML::Xerces::LocalInputSource()

Hi,
I am trying to use LocalInputSource() to parse an xml document contained in a variable 'body'
($parser->parse (XML::Xerces::LocalInputSource($body));) .

I am not sure if I am calling it correctly (I couldn;t find any example on how to use it).

I get the following errom messages - 

Use of inherited AUTOLOAD for non-method XML::Xerces::LocalInputSource() is deprecated at ./parse.pl
line 349.
Error in eval: Can't locate auto/XML/Xerces/LocalInputS.al in  <at> INC ( <at> INC contains:
/n/lion/u/lion2/rawat/XML-Xerces-2.3.0-4/samples/../blib/arch
/n/lion/u/lion2/rawat/XML-Xerces-2.3.0-4/samples/../blib/lib ./lib
/home/rawat/XML-Xerces-2.3.0-4/perl5/site_perl/5.8.0/i386-linux-thread-multi
/home/rawat/MIME-tools-5.411/perl5/site_perl/5.8.0/i386-linux-thread-multi
/home/rawat/MIME-tools-5.411/perl5/site_perl/5.8.0
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at ./parse.pl line 349
 at ./parse.pl line 352

Any help in this regard will be appreciated.
Thanks,
Anshuman
Ted Onley | 15 Jun 2004 21:40

Build error with XML::Xerces


I was very interested to find out about Xerces.  My understanding about 
the install was that I must install the C++ libraries for the Perl version 
to work.  I downloaded the current versions of both Xerces-C and Xerces-P, 
dir the build of the C++ code, and then tried the build of the Perl code.  
I received a version mismatch error:

	You are attempt to build XML::Xerces-2.3.0 using Xerces-C-2.5.0,
	this will most likely fail, so I am aborting.

	You must use Xerces-C-2.5.0

I'm assuming the last line meant to say 'Xerces-C-2.3.0', although I could 
be wrong there.  Anyhow, when searching the download archives, I can only 
find XML::Xerces-2.3.0 and Xerces-C-2.5.0 --  Not XML::Xerces-2.5.0, which 
I would think would work with Xerces-C-2.5.0 - OR - Xerces-C-2.3.0, which 
I would think would work with XML::Xerces-2.3.0.

Am I missing something???

Ted
--

-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Adam Witney | 15 Jun 2004 21:54
Picon

Re: Build error with XML::Xerces


Hi Ted,

I don't think there is a XML::Xerces-2.5.0 yet, but you can get the
Xerces-C-2.3.0 from here

http://archive.apache.org/dist/xml/xerces-c/Xerces-C_2_3_0/

There was another message about that incorrect warning earlier today I
think, so it is a recent known problem.

Cheers

adam

 
> I was very interested to find out about Xerces.  My understanding about
> the install was that I must install the C++ libraries for the Perl version
> to work.  I downloaded the current versions of both Xerces-C and Xerces-P,
> dir the build of the C++ code, and then tried the build of the Perl code.
> I received a version mismatch error:
> 
> You are attempt to build XML::Xerces-2.3.0 using Xerces-C-2.5.0,
> this will most likely fail, so I am aborting.
> 
> You must use Xerces-C-2.5.0
> 
> I'm assuming the last line meant to say 'Xerces-C-2.3.0', although I could
> be wrong there.  Anyhow, when searching the download archives, I can only
> find XML::Xerces-2.3.0 and Xerces-C-2.5.0 --  Not XML::Xerces-2.5.0, which
> I would think would work with Xerces-C-2.5.0 - OR - Xerces-C-2.3.0, which
> I would think would work with XML::Xerces-2.3.0.
> 
> Am I missing something???
> 
> Ted

--

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Jason E. Stewart | 16 Jun 2004 03:39

Re: [Ilkka Poutanen] XML::Xerces build error message

jason <at> openinformatics.com (Jason E. Stewart) writes:

> From: Ilkka Poutanen <ilkka.poutanen <at> tut.fi>
> Subject: XML::Xerces build error message
> To: "" <jason_e_stewart <at> users.sourceforge.net>
> Date: Tue, 15 Jun 2004 16:24:36 +0300
>
> Hi,
>
> ran across http://www.mail-archive.com/xerces-p-dev <at> xml.apache.org/msg01132.html
> while having the same problem (albeit with Xerces-C 2.5.0) and, while it is a
> months-old message, couldn't resist pointing out that the thing that confused
> myself and probably him too was this:
>
> 1. "> You are attempt to build XML::Xerces-2.3.0 using Xerces-C-2.4.0,"
>    "> this will most likely fail, so I am aborting."
>
> 2. "> You must use Xerces-C-2.4.0"
>                           ^^^^^^^
>
> Those mutually contradicting statements led me to believe the problem was
> something more sinister than the obvious version mismatch. Anyway, at least I
> think that you *could* in fact make your error message more clear :-)

Hi Ilkka,

Yes, this error was previously reported, and is fixed in the
development version. But I haven't released a version fixing it.

Cheers,
jas.

Gmane