Re: Questions about XPATh
Brought to you by:
bs_php,
nigelswinson
From: Nigel S. <nig...@us...> - 2006-01-09 22:31:57
|
Hi Nigel: I'm analizing your class XPath in order to include it in my app.... i = think it's the most accurate i've ever seen. It's dynamic, flexible, = portable,... the best one. :o) I have a couple of question that i would thank you if you can answer = them as soon as possible: - If I would like to take only the nodes that apply to the XPath = Expression directly, what i have to call or use? You'd call match() which will (probably) return you a set of nodes. - What if the XML has sintax errors? importFromFile() or importFromString() will fail. Why don't you try it = out and you'll see what happens. - Is there any script recommended to validate or tidy a XHTML string = without using PHP extensions? Best regards, Probably. But don't have any relevant advice to offer. Sorry! Nigel |