HI - I've also posted this to the XML forum.
Hi,
I'm trying to take the VB code from an asp page, which is still pulling from a db, and wrap it in a XML internal data island. I've got the table set up after the code but I think the span dataflds in the table and the Response.Write in the code are conflicting, in other words I think I have two output methods? Any tips would be great.
<XML ID="xmlData">
<employee_list>
<%
do until rsEmployee.EOF
Response.Write (_
"<first_name>" & rsEmployee("first_name"
& " " & "</first_name>" &_
"<middle_name>" & rsEmployee("middle_name"
& "</middle_name>" &_
"<nickname>" & rsEmployee("nickname"
& "</nickname>" &_
"<last_name>" & rsEmployee("last_name"
& "</last_name>" &_
"<work_phone>" & rsEmployee("work_phone"
& "</work_phone>" &_
"<mail_stop>" & rsEmployee("mail_stop"
& "</mail_stop>" &_
"<email>" & rsEmployee("email"
& "</email>" &_
"<department_name>" & rsEmployee("department_name"
& "</department_name>" &_
"<location_name>" & rsEmployee("location_name"
& "</location_name>"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
rsEmployee.MoveNext
Loop
%>
</employee_list>
</XML>
<%
end if
'close the record set
rsEmployee.close
conn.close
set rsEmployee=Nothing
set conn=Nothing
%>
<table datasrc="#xmlData" width="100%" border="1" datapagesize="5">
<thead>
<th>Name</th>
<th>Work Phone</th>
<th>Mail Stop</th>
<th>Email</th>
<th>Department</th>
<th>Location</th>
</thead>
<tr align="left">
<td><span datafld="first_name"></span>
<span datafld="middle_name"></span>
<span datafld="nickname"></span>
<span datafld="last_name"></span>
</td>
<td><span datafld="work_phone"></span></td>
<td><span datafld="mail_stop"></span></td>
<td><span datafld="email"></span></td>
<td><span datafld="department_name"></span></td>
<td><span datafld="location_name"></span></td>
</tr>
</table>
Hi,
I'm trying to take the VB code from an asp page, which is still pulling from a db, and wrap it in a XML internal data island. I've got the table set up after the code but I think the span dataflds in the table and the Response.Write in the code are conflicting, in other words I think I have two output methods? Any tips would be great.
<XML ID="xmlData">
<employee_list>
<%
do until rsEmployee.EOF
Response.Write (_
"<first_name>" & rsEmployee("first_name"
"<middle_name>" & rsEmployee("middle_name"
"<nickname>" & rsEmployee("nickname"
"<last_name>" & rsEmployee("last_name"
"<work_phone>" & rsEmployee("work_phone"
"<mail_stop>" & rsEmployee("mail_stop"
"<email>" & rsEmployee("email"
"<department_name>" & rsEmployee("department_name"
"<location_name>" & rsEmployee("location_name"
rsEmployee.MoveNext
Loop
%>
</employee_list>
</XML>
<%
end if
'close the record set
rsEmployee.close
conn.close
set rsEmployee=Nothing
set conn=Nothing
%>
<table datasrc="#xmlData" width="100%" border="1" datapagesize="5">
<thead>
<th>Name</th>
<th>Work Phone</th>
<th>Mail Stop</th>
<th>Email</th>
<th>Department</th>
<th>Location</th>
</thead>
<tr align="left">
<td><span datafld="first_name"></span>
<span datafld="middle_name"></span>
<span datafld="nickname"></span>
<span datafld="last_name"></span>
</td>
<td><span datafld="work_phone"></span></td>
<td><span datafld="mail_stop"></span></td>
<td><span datafld="email"></span></td>
<td><span datafld="department_name"></span></td>
<td><span datafld="location_name"></span></td>
</tr>
</table>