+ Post New Thread
Results 1 to 5 of 5
Windows Thread, XML to HTML. need help! in Technical; I want to output some XML into a table into 3 columns and loops through all the values in the ...
  1. #1

    Join Date
    Oct 2006
    Posts
    146
    Thank Post
    1
    Thanked 13 Times in 7 Posts
    Rep Power
    33

    XML to HTML. need help!

    I want to output some XML into a table into 3 columns and loops through all the values in the string.

    XML i plan to output.

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <fpc4:Root xmlns:fpc4="http://schemas.microsoft.com/isa/config-4" xmlns:dt="urn:schemas-microsoft-com:datatypes" StorageName="FPC" StorageType="0">
    	<fpc4:Arrays StorageName="Arrays" StorageType="0">
    		<fpc4:Array StorageName="{32***********************F}" StorageType="0">
    			<fpc4:RuleElements StorageName="RuleElements" StorageType="0">
    				<fpc4:DomainNameSets StorageName="DomainNameSets" StorageType="0">
    					<fpc4:DomainNameSet StorageName="{C5B2D78E-37E9-4392-8816-143F786BF504}" StorageType="2">
    						<fpc4:Description dt:dt="string">Allowed URLS</fpc4:Description>
    						<fpc4:DomainNameStrings>
    							<fpc4:Str dt:dt="string">*2simpleclipart.com</fpc4:Str>
    							<fpc4:Str dt:dt="string">*abpischools.org.uk</fpc4:Str>
    I want to copy all the values going through the DomainNameStrings.

    Anyone able to give some quick help.

  2. #2

    Join Date
    Nov 2006
    Location
    Hove, East Sussex
    Posts
    5
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    see here:
    Tryit Editor v1.4

  3. #3

    Join Date
    Oct 2006
    Posts
    146
    Thank Post
    1
    Thanked 13 Times in 7 Posts
    Rep Power
    33
    Thats where i started on but the XML file in that example is very basic and doesnt contain a string as such.

  4. #4
    MicrodigitUK's Avatar
    Join Date
    May 2007
    Location
    Wiltshire
    Posts
    339
    Thank Post
    37
    Thanked 56 Times in 52 Posts
    Rep Power
    25
    I think what you need is to learn XSLT it is like the CSS equivalent to XML and you can use it to transform XML into to any format you like.

    Have a look at XSLT Tutorial

    It might also be a good idea to run over the basics of XML again before learning XSLT

    P.S. How’s the job hunting going? I see Martin has gone for the Abbeyfield School Job.

  5. #5
    MicrodigitUK's Avatar
    Join Date
    May 2007
    Location
    Wiltshire
    Posts
    339
    Thank Post
    37
    Thanked 56 Times in 52 Posts
    Rep Power
    25
    Forgot to mention get a copy of XMLSpy trial version. It’s probably the best tool for the Job.



SHARE:
+ Post New Thread

Similar Threads

  1. .XML Bulk conversion
    By Sylv3r in forum How do you do....it?
    Replies: 3
    Last Post: 2nd July 2009, 10:41 PM
  2. Help parsing XML files using VB
    By SimpleSi in forum Coding
    Replies: 5
    Last Post: 10th June 2009, 09:25 AM
  3. XML - Formatting confusion
    By steele_uk in forum How do you do....it?
    Replies: 5
    Last Post: 26th January 2009, 10:11 PM
  4. WDSClietUnattended.xml
    By ICTNUT in forum How do you do....it?
    Replies: 4
    Last Post: 17th January 2008, 10:17 AM
  5. Any XML gurus?
    By TechMonkey in forum Web Development
    Replies: 4
    Last Post: 2nd February 2007, 01:40 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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