Editing the IIS metabase using cfmx7

2005-09-05 Thread Ryan Mitchell
Hello

Im running win2k03 server and cfmx7

Ive written a cfc to do the editing of the metabase.xml file i
require, in order to add domains/mappings/ftp sites etc etc...
however i'm running into a problem that corrupts the xml file.

The problem comes with things like webserver bindings. Somebody in
their wisdom decided to make them into a list delimited by some sort
of white space, rather than seperate xml entities, and so when i use
XMLParse() to parse the text into coldfusion readable xml, the
whitespace seems to get changed or removed or something and so when
you re-save the xml file, IIS throws up errors for the bindings and
shuts down the sites affected... it also affects web server
extensions in the same way.

Has anybody run into this problem or somethign similar?
Are there any solutions?

I'm really doing very little more than XmlParse() into a variable,
adding/editing/removing some xml entities, then saving the xml back
using cffile...

TIA,
Ryan

~|
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:217342
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: Editing the IIS metabase using cfmx7

2005-09-05 Thread Massimo Foti
 The problem comes with things like webserver bindings. Somebody in
 their wisdom decided to make them into a list delimited by some sort
 of white space, rather than seperate xml entities, and so when i use
 XMLParse() to parse the text into coldfusion readable xml, the
 whitespace seems to get changed or removed or something and so when
 you re-save the xml file, IIS throws up errors for the bindings and
 shuts down the sites affected...

XMLParse() just follows the specs regarding normalization of attribute's
values:
http://www.w3.org/TR/2004/REC-xml-20040204/#AVNormalize


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:217344
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: Editing the IIS metabase using cfmx7

2005-09-05 Thread Roger Benningfield
Ryan: I started fiddling with the XML metabase at one point, learned how messy 
and compromised the XML is, and decided to just CFEXECUTE .vbs scripts instead. 
But I'll definitely be watching to if anyone has suggestions for you.

--
Roger Benningfield
JournURL
http://admin.support.journurl.com/
http://admin.mxblogspace.journurl.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:217345
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: Editing the IIS metabase using cfmx7

2005-09-05 Thread Ryan Mitchell
ok i've looked a bit further, and it seems that the problem is with line feeds 
being used as a delimiter and being removed... i understand that XMLParse() is 
according to the specs, but surely there must be some sort of work-around for 
this?



 Ryan: I started fiddling with the XML metabase at one point, learned 
 how messy and compromised the XML is, and decided to just CFEXECUTE .
 vbs scripts instead. But I'll definitely be watching to if anyone has 
 suggestions for you.
 
 --
 Roger Benningfield
 JournURL
 http://admin.support.journurl.com/
 http://admin.mxblogspace.journurl.
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:217346
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: Editing the IIS metabase using cfmx7

2005-09-05 Thread Ryan Mitchell
an alternative method i guess is this:

regex to replace any carriage returns within xml attribute values with a given 
string, and then replace them again for carriage returns before save back?

would anyone be able to write a regex to do this?



 ok i've looked a bit further, and it seems that the problem is with 
 line feeds being used as a delimiter and being removed... i understand 
 that XMLParse() is according to the specs, but surely there must be 
 some sort of work-around for this?
 
 
 
  Ryan: I started fiddling with the XML metabase at one point, learned 
 
  how messy and compromised the XML is, and decided to just CFEXECUTE .
 
  vbs scripts instead. But I'll definitely be watching to if anyone 
 has 
  suggestions for you.
  
  --
  Roger Benningfield
  JournURL
  http://admin.support.journurl.com/
  http://admin.mxblogspace.journurl.
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:217349
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: Editing the IIS metabase using cfmx7

2005-09-05 Thread Ryan Mitchell
Roger: i got it working, i was looking for your email address so i could send 
what i have got through to you. IF you email me: [EMAIL PROTECTED], i'll pass 
what i have done on...

 Ryan: I started fiddling with the XML metabase at one point, learned 
 how messy and compromised the XML is, and decided to just CFEXECUTE .
 vbs scripts instead. But I'll definitely be watching to if anyone has 
 suggestions for you.
 
 --
 Roger Benningfield
 JournURL
 http://admin.support.journurl.com/
 http://admin.mxblogspace.journurl.
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:217368
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