Very limited knowledge of XPath so bare with me here...

<cfsavecontent variable="content"><?xml version="1.0"
encoding="ISO-8859-1"?>
<!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> -->
<!-- <html xmlns="http://www.w3.org/1999/xhtml";> -->
<html>
<head>
    <title>Test Page</title>
    <link rel="schema.DC"
          href="http://purl.org/DC/elements/1.0/"; />
    <meta name="DC.Publisher.CorporateName"
          lang="en"
          content="Gruden" />
    <link rel="stylesheet"
          href="/_stylesheets/www_global.css"
          type="text/css" />
    </head>
        <body>
                <p>Some content</p>
        </body>
</html>
</cfsavecontent>
<cfset xml = xmlParse(content)>
<cfdump var="#xmlSearch(xml,'/html/head/meta')#">
<cfdump var="#xmlSearch(xml,'/html/body/p')#">

This all works fine, but if I comment out the <html> line and uncomment the
<!doctype.. and/or the <html xmlns=.. line the XPath stuff stops returning
anything. Any ideas?


Cheers

Mark


______________
Mark Stanton
Web Production
Gruden Pty Ltd
Tel: 9956 6388
Mob: 0410 458 201
Fax: 9956 8433
http://www.gruden.com


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to