Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
|
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 11th, 2004, 07:29 PM
Authorized User
 
Join Date: Jan 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default XML recordsets

How do incorporate this XML to instead pull live recordset out of a database. (sql server)


<xml id="Datos">
            <ROOT>
                <ROW Chk="0" ps_id="1" psid_id="5" tipPrd_id="5" />
                <ROW Chk="0" ps_id="3" psid_id="3" tipPrd_id="4" />
                <ROW Chk="0" ps_id="1" psid_id="2" tipPrd_id="3" />
                <ROW Chk="0" ps_id="1" psid_id="5" tipPrd_id="5" />
                <ROW Chk="0" ps_id="3" psid_id="3" tipPrd_id="4" />
                <ROW Chk="0" ps_id="1" psid_id="2" tipPrd_id="3" />
                <ROW Chk="0" ps_id="1" psid_id="2" tipPrd_id="3" />
            </ROOT>
        </xml>

        <TABLE DATASRC=#Datos BORDER=1 align="center">
            <thead>
                <th nowrap>&nbsp;</th>
                <th nowrap>Packet</th>
                <th nowrap>Type</th>
                <th nowrap>size</th>
            </thead>
            <tr>
                <td nowrap ><input type="checkbox" datafld="Chk" id="Chk" name="Chk" ></td>
                <td><span datafld="ps_id"></span></td>
                <td><span datafld="psid_id"></span></td>
                <td><span datafld="tipPrd_id"></span></td>
            </tr>
        </TABLE>

 
Old February 12th, 2004, 10:00 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

If you are using SQL Server 2000 with xml add on then set up a virtual templates folder and put in an xml query that delivers your xml. After that change your xml island to have a src attribute pointing at the xml query file instead of having an actual body. See msdn.com for advice on setting up the virtual folder. Serach for sqlxml.

--

Joe
 
Old February 12th, 2004, 03:19 PM
Authorized User
 
Join Date: Jan 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I already know how to set up virtual Dir in IIS. The only thing is where do I store these templates? Do I create a folder in my ASP project and store them there. Please give me some infor on where do I physcally store these templates after I have created my VirDir. Also where do I store any XSL files.

 
Old February 12th, 2004, 03:46 PM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

This site has dozens of examples of doing what you want. No one is going to spoon feed you forever in software development, you need to be able to read these sorts of documents and apply them to your specific circumstances. If you have specific examples that you have created but they are not working people are willing to help debug but not to do all the work for you.

http://www.sqlxml.org/

Good luck

--

Joe
 
Old February 12th, 2004, 03:57 PM
Authorized User
 
Join Date: Jan 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey come down. I know what you mean though, maybe I just need some direction as to where I can find these resources.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Recordsets JezLisle Access VBA 11 July 17th, 2007 03:47 AM
Help with Recordsets voskoue Access VBA 1 January 23rd, 2007 08:36 AM
how to manipulate recordsets allang PHP Databases 1 September 25th, 2004 01:21 PM
Need help with recordsets chacquard Access VBA 5 June 21st, 2004 11:58 PM
Recordsets bph Access VBA 17 February 17th, 2004 03:19 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.