Before I embark on what's sure to be a frustrating endeavor I thought I'd
ask.
I'm adding a custom documentation tag to my CFCs. It works very well with
closed tags such as:
<dpDoc type="Information"
name="Author"
description="Jim Davis ([EMAIL PROTECTED])" />
Before you suggest it - I know that I can add attributes to the CFC and
retrieve them via MetaData - but with my custom doc tag I can add more
information and have multiple instances of the same information. For
example I'm defining revisions in a CFC like so:
<dpDoc type="Revision"
date="2005-03-18"
description="Initial Beta release." />
<dpDoc type="Revision"
name=""
date="2005-03-31"
description="Initial public Beta release." />
Anyway - this all works (very well actually - I'm inordinately pleased with
it actually).
I've got a method that takes a block of code and returns an array of structs
each representing an instance of the tag.
However in one case (at least) I want to have an open tag like so:
<dpDoc type="Information" name="Overview">
<p>cfc_DepressedPress.DP_Component is the root component which all
other DP CFCs ultimately extend. It provides many foundation-level features
and properties.</p>
</dpDoc>
In this way I can add complex HTML documentation to the CFC directly.
Any ideas on grabbing this easily? My current regex, "<dpDoc.*?/>", works
fine for closed tags, but bombs on the open ones.
Basically I want to say "if there's not a '/>' then look for a '</dpdoc>'"
(for now at least I'm fine demanding that the material is well-formed).
I'd prefer not having to do a full recursive parse to get at this - I feel
like it should be possible with RegExs alone... am I wrong?
Thanks in advance.
Jim Davis
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:199472
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