Re: CFMX 7 XmlSearch on IIS 6 metabase

2005-06-08 Thread Massimo Foti
 cfset results = XmlSearch(metabaseXMLObject,/configuration)

 Gets me nothing (note: there is also a simple parse, file read, and dump
 surrounding this code).

 Dumping metabaseXMLObject gives me the full XML object. I'm able to loop
 through elements such as IIsWebServer as an array as expected.

I am not familiar with IIS 6 Metabase format, but I guess it could use
namespaces and this could make your XPath fails.

I would suggest to check your XPath experission first, using a dedicated
tool like:
http://www.purpletech.com/xpe/index.jsp
http://www.topxml.com/xpathvisualizer/



Massimo Foti
Tools for ColdFusion and Dreamweaver developers:
http://www.massimocorner.com




~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208936
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFMX 7 XmlSearch on IIS 6 metabase

2005-06-08 Thread Calvin Ward
Unfortunately I can't use those tools at my current location.

cfset results = XmlSearch(metabaseXMLObject,//configuration)

Also returns no results.

There is a namespace reference in the configuration node

configuration xmlns=urn:microsoft-catalog:XML_Metabase_V54_0

And removing the xmlns attribute appears to provide me the results that I
was expecting...

How is this typically handled?

- Calvin

On 6/8/05 8:17 AM, Massimo Foti [EMAIL PROTECTED] wrote:

 cfset results = XmlSearch(metabaseXMLObject,/configuration)
 
 Gets me nothing (note: there is also a simple parse, file read, and dump
 surrounding this code).
 
 Dumping metabaseXMLObject gives me the full XML object. I'm able to loop
 through elements such as IIsWebServer as an array as expected.
 
 I am not familiar with IIS 6 Metabase format, but I guess it could use
 namespaces and this could make your XPath fails.
 
 I would suggest to check your XPath experission first, using a dedicated
 tool like:
 http://www.purpletech.com/xpe/index.jsp
 http://www.topxml.com/xpathvisualizer/
 
 
 
 Massimo Foti
 Tools for ColdFusion and Dreamweaver developers:
 http://www.massimocorner.com
 
 
 
 
 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208937
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFMX 7 XmlSearch on IIS 6 metabase

2005-06-08 Thread Massimo Foti
 Unfortunately I can't use those tools at my current location.

This one is just a set of HTML and JavaScript files that run inside IE
(there is a Mozilla version too):
http://www.topxml.com/xpathvisualizer/



 There is a namespace reference in the configuration node

 configuration xmlns=urn:microsoft-catalog:XML_Metabase_V54_0

 And removing the xmlns attribute appears to provide me the results that I
 was expecting...

 How is this typically handled?

An empty namespace can be quite tricky with XPath 1.0, since it's not
namespace aware. In this specific case I guess the semicolons inside the
namespace make things even harder.

I am sorry, but I don't have a good answer

Massimo


~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208944
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFMX 7 XmlSearch on IIS 6 metabase

2005-06-08 Thread Calvin Ward
I have installation restrictions where I'm at right now :(

Well, my short term fix was to replace that xmlns attribute in its entirety
with nothing using ReplaceNoCase.

That of course feels very clunky and not future proof at all!

After doing that all of my xpath queries worked great.

- Calvin


On 6/8/05 9:24 AM, Massimo Foti [EMAIL PROTECTED] wrote:

 Unfortunately I can't use those tools at my current location.
 
 This one is just a set of HTML and JavaScript files that run inside IE
 (there is a Mozilla version too):
 http://www.topxml.com/xpathvisualizer/
 
 
 
 There is a namespace reference in the configuration node
 
 configuration xmlns=urn:microsoft-catalog:XML_Metabase_V54_0
 
 And removing the xmlns attribute appears to provide me the results that I
 was expecting...
 
 How is this typically handled?
 
 An empty namespace can be quite tricky with XPath 1.0, since it's not
 namespace aware. In this specific case I guess the semicolons inside the
 namespace make things even harder.
 
 I am sorry, but I don't have a good answer
 
 Massimo
 
 
 

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208946
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFMX 7 XmlSearch on IIS 6 metabase

2005-06-08 Thread Massimo Foti
 I have installation restrictions where I'm at right now :(

There is nothing to install inside xpathvisualizer, just unzip and open an
html file inside your browser



 Well, my short term fix was to replace that xmlns attribute in its
entirety
 with nothing using ReplaceNoCase.

 That of course feels very clunky and not future proof at all!

 After doing that all of my xpath queries worked great.

Glad to hear you at least sorted it for the short term.

Massimo


~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208947
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFMX 7 XmlSearch on IIS 6 metabase

2005-06-08 Thread Calvin Ward
I know, but the restriction extends to placing anything from external
sources on the workstation.

- Calvin


On 6/8/05 9:39 AM, Massimo Foti [EMAIL PROTECTED] wrote:

 I have installation restrictions where I'm at right now :(
 
 There is nothing to install inside xpathvisualizer, just unzip and open an
 html file inside your browser
 
 
 
 Well, my short term fix was to replace that xmlns attribute in its
 entirety
 with nothing using ReplaceNoCase.
 
 That of course feels very clunky and not future proof at all!
 
 After doing that all of my xpath queries worked great.
 
 Glad to hear you at least sorted it for the short term.
 
 Massimo
 
 
 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208980
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54