I've been using the latest MSXML parser (4.0) without any troubles, either.
the documentation is pretty good, too. It's a quick install, although you
might need to download the newest MS installer before you can install the
parser (sounds complicated....it's not).

Go to this link (watch the wrap in outlook), download the installer and
msxml4.0 parser.
http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?ur
l=/msdn-files/027/001/766/msdncompositedoc.xml


Then take a look at some of the attached code to get you started. Know that
I pretty much stole this code from the macromedia coldfusion forums and
adapted it to suit my needs.

<cfloop query="myDirectory">
  <!--- read the files into a variable   --->
  <cffile action="READ"
 file="SomeFile.xml"
 variable="xmlContent">
  <cfset xmlContent =ReReplace(xmlContent ,"<!DOCTYPE[^>]+>","")>

  <!--- Create COM Object to parse the xml file  --->
  <CFOBJECT action="CREATE" type="COM" class="Microsoft.XMLDOM"
name="objXML">
<!--- note: to use msxml 4.0, you'll change the class to
Microsoft.XMLDOM4.0, or something like that...it's in the docs for the
parser --->


  <cfset objXML.LOADXML(#xmlContent#)>
  <cfset objXML.async = false>
  <cfset ElementList = objXML.getElementsByTagName("metadata")>

  <!--- get the data from the xml file --->
    <cfloop collection="#ElementList#" Item="metadata">
      <!--- get articleinfo data --->
      <cfset journaltitle =
metadata.SelectSingleNode("articleinfo/journal-title")>
      <cfset articletitle =
metadata.SelectSingleNode("articleinfo/article-title")>
      <cfset shorttitle =
metadata.SelectSingleNode("articleinfo/short-title")>
        <cfset manuscriptno =
metadata.SelectSingleNode("articleinfo/manuscript-number")>
    </cfloop>

<!--- To display the content of the variable, you have to use
variablename.text, like the following --->

    <cfoutput>
      <!--- show filename --->
      <p><strong>FILE:</strong> #name# (The update was #isUpdated#)</p>
      <!--- show articleinfo data --->
      <strong>Journal:</strong> #journaltitle.text#<br>
      <strong>Title:</strong> #articletitle.text#<br>
        <strong>Ms. number:</strong> #manuscriptno.text#<br>
    </cfoutput>

NOTE: It might be quicker to use cfscript/createObject() to instantiate the
msxml object and set the variables, but I haven't tried so I don't know.

I'm attaching an xml document to this email so you'll know what the above
code is attempting to parse.

Marc

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Schreck, Tom
Sent: Monday, March 04, 2002 11:56 AM
To: [EMAIL PROTECTED]
Subject: RE: [cf-xml] xml - cf question


What's XMLHTTP.4.0 and DOMDocument.4.0?  Is DOMDocument.4.0 a new API for
accessing an XML document's tree?

Tom

-----Original Message-----
From: Dylan Bromby [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 1:44 PM
To: [EMAIL PROTECTED]
Subject: Re: [cf-xml] xml - cf question


We're currently invoking XMLHTTP.4.0 and DOMDocument.4.0 using CFOBJECT in
CF5ENT to send SOAP envelopes to a remote server. Haven't had any trouble
with mem leaks so far...

HTH,

--Dylan

----- Original Message -----
From: "Schreck, Tom" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 04, 2002 11:28 AM
Subject: [cf-xml] xml - cf question


What's the best way to get an xml document available so you can manipulate
it using xml Dom?  I've heard that cfobjects can produce leaks.

Thanks - Tom

-----------------------+
cf-xml mailing list
list: [EMAIL PROTECTED]
admin: [EMAIL PROTECTED]
home: http://torchbox.com/xml





-----------------------+
cf-xml mailing list
list: [EMAIL PROTECTED]
admin: [EMAIL PROTECTED]
home: http://torchbox.com/xml

-----------------------+
cf-xml mailing list
list: [EMAIL PROTECTED]
admin: [EMAIL PROTECTED]
home: http://torchbox.com/xml
<?xml version="1.0" ?>
<!--
<!DOCTYPE metadata SYSTEM "cadmus_input_metadata.dtd"> 
-->

<metadata>
<articleinfo>
<journal-title>Clinical Chemistry</journal-title>
<article-title>Correlation of serum immunoglobulin free light
chain quantitation with urine Bence Jones protein in Light Chain Myeloma</article-title>
<short-title>Serum FLC Analysis in Light Chain Myeloma</short-title>
<manuscript-number>CLINCHEM/2000/090911</manuscript-number>
</articleinfo>

<articleid><!-- I changed data for testing -->
<volume>129</volume>
<issue-number>2</issue-number>
<issue-date>3/15/2001</issue-date>
</articleid>



<corrinfo>

<corresponding-author-firstname>Jerry</corresponding-author-firstname>
<corresponding-author-middlename>A</corresponding-author-middlename>
<corresponding-author-lastname>Katzmann</corresponding-author-lastname>

<corresponding-author-email>[EMAIL PROTECTED]</corresponding-author-email>
<corresponding-author-institution>Mayo Foundation</corresponding-author-institution>


  
    
<corresponding-author-address-1>450 Main St.</corresponding-author-address-1>
    
  
    
<corresponding-author-address-2>Suite 1082</corresponding-author-address-2>
    
  
    
<corresponding-author-address-3> </corresponding-author-address-3>
    
  

<corresponding-author-city>Springfield</corresponding-author-city>
<corresponding-author-state>CA</corresponding-author-state>
<corresponding-author-country> </corresponding-author-country>
<corresponding-author-zipcode>90001</corresponding-author-zipcode>



<corresponding-author-phone>+   650 - 555-4233</corresponding-author-phone>


<corresponding-author-fax>+   650 - 556-2399</corresponding-author-fax>

</corrinfo>





<authorgrp>

  
<first-author>
  
 <name>Roshini S. Abraham</name>
 <institution>Mayo Clinic</institution>
  
</first-author>
  
<other-author>
  
 <name>Raynell J. Clark</name>
 <institution>Mayo Clinic</institution>
  
</other-author>

<other-author>
  
 <name>Sandra C. Bryant</name>
 <institution>Mayo Clinic</institution>
  
</other-author>
  
<other-author>
  
 <name>James F. Lymp</name>
 <institution>Mayo Clinic</institution>
  
</other-author>
<other-author>
  
 <name>Timothy Larson</name>
 <institution>Mayo Clinic</institution>
  
</other-author>
<other-author>
  
 <name>Robert A. Kyle</name>
 <institution>Mayo Clinic</institution>
  
</other-author>
<other-author>
  
 <name>Jerry A Katzmann</name>
 <institution>Mayo Foundation</institution>
  
</other-author>

</authorgrp>

<history>

        <submitted-date>12/21/2000</submitted-date>
    
        <revised-date>2/12/2001</revised-date>
    
        <accepted-date>2/27/2001</accepted-date>
</history>

<classinfo>

<keyword>Bence Jones protein</keyword>
<keyword>free light chain</keyword>
<keyword>myeloma</keyword>
<keyword>nephelometry</keyword>

<manuscript-type>Technical Brief</manuscript-type>
<manuscript-section>Clinical Immunology</manuscript-section>
</classinfo>


<abstract>
Multiple myeloma is a malignant, plasma cell dyscrasia characterized by bone marrow plasmacytosis (1). Malignant plasma cells produce an abnormal monoclonal immunoglobulin, the
laboratory hallmark of the disease process, as well as cytokines, which stimulate cells of the bone marrow microenvironment (2, 3). The neoplastic clone and its products results in
the dysfunction of a number of organs, including bone pain or fractures, renal failure, anemia, susceptibility to infection, hyperviscosity, and hypercalcemia (1). However, the most
characteristic feature of multiple myeloma and other monoclonal gammopathies is the presence of a serum and/or urine M component on immunofixation (4). Approximately 2/3rd of
patients with a serum M component also have Bence Jones proteins [BJP] in the urine. In almost 20% of myelomas, only immunoglobulin light chains are present in the serum
and/or urine and are often designated as Light Chain Multiple Myeloma [LCMM]. 
</abstract>

</metadata>

Reply via email to