Re: [PHP] Re: Xpath arguments in variable

2010-09-15 Thread Sridhar Pandurangiah
dan.co.uk (Ashley Sheridan) To: Date: Wed Sep 15 2010 14:04:33 GMT+0530 (IST) On Wed, 2010-09-15 at 14:03 +0530, Sridhar Pandurangiah wrote: Original Message Subject: Re: Xpath arguments in variable From: php-gene...@garydjones.name (Gary) To: Date: Wed Sep 15 2010 13:34

[PHP] Re: Xpath arguments in variable

2010-09-15 Thread Sridhar Pandurangiah
[. = ' . $MemberId . ']'); The $MemberId should be substituted with A192 and then the xpath query should be executed. The result should be that I locate the membernumber XML element that has the value A912. Best regards Sridhar Sridhar Pandurangiah wrote: now I need to pass

[PHP] Xpath arguments in variable

2010-09-15 Thread Sridhar Pandurangiah
Hi I have the following statement that locates the node "membernumber" with the value A192. This works perfectly fine. $v = $row->xpath('//membernumber[. = "A192"]'); But now I need to pass this value to XPath within a string variable say $v = $row->xpath('//membernumber[. = $MemberId]'); B

[PHP] Re: Counting Children!

2010-09-14 Thread Sridhar Pandurangiah
echo $member->line[$i]->particular2; echo $member->line[$i]->amount2; } Best regards Sridhar Sridhar Pandurangiah wrote: Hi I have an XML generated by another computer application. The format is as below. (Don't worry ab

[PHP] Counting Children!

2010-09-13 Thread Sridhar Pandurangiah
Hi I have an XML generated by another computer application. The format is as below. (Don't worry about the data in the XML. Its the test data). I am able to locate the correct member bill using XPATH. However I have hit a bottleneck. I am unable to echo all the elements. This is what happens

[PHP] Re: workflow system design

2010-09-12 Thread Sridhar Pandurangiah
Hi Try BPEL. You can look at Intalio which supports BPEL and has a community edition. You can download and try out a few examples. I guess the big players like IBM, Oracle etc should have some BPEL based tools. Best regards Sridhar Original Message Subject: workflow sys

Re: [PHP] Error in initialising XML parser

2010-09-06 Thread Sridhar Pandurangiah
uk - Reply message - From: "Sridhar Pandurangiah" Date: Mon, Sep 6, 2010 09:12 Subject: [PHP] Error in initialising XML parser To: Hi I am writing a PHP snippet to display invoices that is generated by another computer application. The use case is as follows 1. The other compu

[PHP] Error in initialising XML parser

2010-09-06 Thread Sridhar Pandurangiah
Hi I am writing a PHP snippet to display invoices that is generated by another computer application. The use case is as follows 1. The other computer application generates the invoices for the month in XML and puts it in a common dirctory. So at anytime there could be multiple files. Each fi

Re: [PHP] XML with PHP

2010-08-26 Thread Sridhar Pandurangiah
Mike Thanks a ton for the quick response. I have updated the mail id on my email client (using Mozilla TB) and I did repost but your reply was quicker! Will try this out and post the results on this thread. Just waiting for someone to throw light on how to capture the "filename" that the user

Re: [PHP] XML with PHP

2010-08-26 Thread Sridhar Pandurangiah
Hi I guess my post was misunderstood. I was just trying to figure out if there is a better way other than displaying a form. That's the reason I posted my php snippet in my first post. Thanks for the help. Best regards Sridhar Original Message Subject: Re: [PHP] XML with

[PHP] XML with PHP

2010-08-26 Thread Sridhar Pandurangiah
Hi I am trying to read XML files (invoices) from a directory and display them to the visitor. Each XML file contains several invoices. The visitor then clicks on the XML file (invoices). My PHP snippet should open the xml file and locate the appropriate invoice and display the content. I have ma