Results 1 to 1 of 1

Thread: Parse and sort XML in HTML table

  1. #1
    Join Date
    Jan 2009
    Location
    Calgary Alberta
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Parse and sort XML in HTML table

    Hello all,

    I have an XML file and I am attempting to parse it into HTML and then have some drop-down lists to sort on a few of the columns.

    I have been doing some research and have found there are many ways of parsing XML into HTML but I am not sure what the best way is.

    My XML file is as follows:
    Code:
    documents>
    	<data>
    		<docID>FISL-SCM9a-SCON-PRPC-001</docID>
    		<docName>&lt;a href="http://ofe/sites/Infrastructure/Tlbx/Subcontracts/FISL-SCM9a-SCON-PRPC-001-Requisition for Subcontract.pdf"&gt;Requisition for Subcontract&lt;/a&gt;</docName>
    		<function>Subcontracts</function>
    		<docType>PROCESS</docType>
    		<activity>Process and Procedures</activity>
    	</data>
    	<data>
    		<docID>FISL-SCM9b-SCON-PRPC-001</docID>
    		<docName>&lt;a href="http://ofe/sites/Infrastructure/Tlbx/Subcontracts/FISL-SCM9b-SCON-PRPC-001-Subcontract Solicitation and Award.pdf"&gt;Subcontract Solicitation and Award&lt;/a&gt;</docName>
    		<function>Subcontracts</function>
    		<docType>PROCESS</docType>
    		<activity>Process and Procedures</activity>
    	</data>
    	<data>
    		<docID>FISL-SCM9c-SCON-PRPC-001</docID>
    		<docName>&lt;a href="http://ofe/sites/Infrastructure/Tlbx/Subcontracts/FISL-SCM9c-SCON-PRPC-001-Generating Subcontract Agreements.pdf"&gt;Generating Subcontract Agreements&lt;/a&gt;</docName>
    		<function>Subcontracts</function>
    		<docType>PROCESS</docType>
    		<activity>Process and Procedures</activity>
    	</data>
    	<data>
    		<docID>FISL-SCM9d-SCON-PRPC-001</docID>
    		<docName>&lt;a href="http://ofe/sites/Infrastructure/Tlbx/Subcontracts/FISL-SCM9d-SCON-PRPC-001-Subcontract PO Creation.pdf"&gt;Subcontract PO Creation&lt;/a&gt;</docName>
    		<function>Subcontracts</function>
    		<docType>PROCESS</docType>
    		<activity>Process and Procedures</activity>
    	</data>
    	<data>
    		<docID>FISL-SCM9e-SCON-PRPC-001</docID>
    		<docName>&lt;a href="http://ofe/sites/Infrastructure/Tlbx/Subcontracts/FISL-SCM9e-SCON-PRPC-001-Subcontract Receiving.pdf"&gt;Subcontract Receiving&lt;/a&gt;</docName>
    		<function>Subcontracts</function>
    		<docType>PROCESS</docType>
    		<activity>Process and Procedures</activity>
    	</data>
    	<data>
    		<docID>FISL-SCM9g-SCON-PRPC-001</docID>
    		<docName>&lt;a href="http://ofe/sites/Infrastructure/Tlbx/Subcontracts/FISL-SCM9g-SCON-PRPC-001-Subcontract Closeout.pdf"&gt;Subcontract Closeout&lt;/a&gt;</docName>
    		<function>Subcontracts</function>
    		<docType>PROCESS</docType>
    		<activity>Process and Procedures</activity>
    	</data>
    </documents>
    and I would like to sort on function, docType and activity with a drop-down list in the header of the column.

    There are a few samples I am playing with but I can't get the full functionality to work yet as I only have bits and pieces.

    Thank you all for your help.
    Brent
    Last edited by brent.fraser; 09-17-2009 at 04:49 PM. Reason: the issue is not resolved

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •