Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Convert XML file

Thread Tools

Convert XML file

Posts: n/a

I am trying to convert an Asp.Net 2.0 XML sitemap file to a Google's
sitemap file.

I am posting the formats of both files.

How can I do this?

Thank You,


<?xml version="1.0" encoding="UTF-8"?>
< urlset xmlns="">
< url>
< loc></loc>
< lastmod>2005-01-01</lastmod>
< changefreq>daily</changefreq>
< priority>0.8</priority>

ASP.NET 2.0 Site Map

<?xml version="1.0" encoding="utf-8" ?>
xmlns = "" >
url = "~/example.aspx"
changefreq = "daily"
lastmod = "2005-01-01"
description = "My example page and its contents"
priority = "0.8"
title = "Example page" />

Note: description and title should be droped when converting from
Asp.Net to Google sitemap.

Reply With Quote
Joe Kesselman
Posts: n/a
>How can I do this?

Write an XSLT stylesheet. Or write a DOM-based program. Or write a
SAX-based program. It appears to be straightforward to code in any of
these approaches.

() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Plain text file to xml file convert mahesh Java 2 02-17-2007 01:48 PM
Problem to insert an XML-element by XSLT-converting from one XML-file into another XML-file jkflens XML 2 05-30-2006 09:41 AM
Different results parsing a XML file with XML::Simple (XML::Sax vs. XML::Parser) Erik Wasser Perl Misc 5 03-05-2006 10:09 PM
How to convert XML file to OPML File ... Tom Denford Computer Support 1 04-24-2005 01:26 PM
How to convert XML file to OPML File ... Tom Denford XML 0 04-22-2005 07:05 PM