Hi all,
I am new to coldfusion, and i am facing lots of problem....
can anyone solve my problem
I am reading an xml file through cfm and using xmlsearch to filter the xml and
make some changes
but not working

this is the xml file
- <home>
<menu type="Macromedia" u="macromedia.com" />
<menu type="Supports" u="support.com" />
---------------
---------------
</home>

And below is the cfm file code
<cffile action="read" file="C:\Inetpub\wwwroot\cold\main.xml"
variable="myxml">
<cfscript>
myxmldoc = XmlParse(myxml);
selectedElements = XmlSearch(myxmldoc, "/home/menu/@type");
for (i = 1; i LTE ArrayLen(selectedElements); i = i + 1){
writeoutput(selectedElements.XmlText & "<br>" &
selectedElements.XmlAttributes & "<br>");
}
</cfscript>
<cfdump var="#myxmldoc#">
<cfdump var="#selectedElements#">

And I get only errors, Can anyone solve this problem!!!!
please!!!!!!!