tags:

views:

17

answers:

2

I"m unsure about this. Would having PHP ( or I guess any template language like Django's or Mako or whatever ) inside an html file prevent me from making changes to it with XPath?

I'm very new to XPath. I would think that you could not, but as I said, I'm unsure.

+2  A: 

Xpath is a query language. You use it to query XML content, not change it.

You can use Xpath in conjunction with other technologies (XSLT is the first one that comes to mind) in order to query you XML and then use the results of these queries to transform your XML.

Oded
A: 

XPath doesn't change the XML document.

Use XSLT or a any other XPath-hosting language that can produce a new XML document.

Dimitre Novatchev