[Home] [By Thread] [By Date] [Recent Entries]
I want to combine two XML Bookmark Exchange Language files into one.
http://pyxml.sourceforge.net/topics/xbel/ basically they are hierarchical XML files with folder, bookmark and title elements. They need sorting alphabetically and combining. I have basic XSLT knowledge and have written a XBEL to HTML converter in XSL which gives a contents list of folders with links to the full hierarchical list of bookmarks, but am stumped by combining two XBEL files. If you could either give an example of a simular problems solution or a basic guideline or structure of how to go about this. Theres an example xbel file below. Many thanks in advance, Aaron <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE xbel PUBLIC "+//IDN python.org//DTD XML Bookmark Exchange Language 1.0//EN//XML" "http://www.python.org/topics/xml/dtds/xbel-1.0.dtd"> <xbel> <folder> <title>Astrophysics</title> <bookmark href="http://space.newscientist.com/article/mg19626303.500-deflected-asteroids-may-keep-coming-back.html?feedId=online-news_rss20"> <title>Deflected asteroids may keep coming back - space - 17 November 2007 - New Scientist Space</title> </bookmark> <bookmark href="http://space.newscientist.com/article.ns?id=dn12665&feedId=online-news_rss20"> <title>Did the big bang spawn trillions of black holes - space - 19 September 2007 - New Scientist Space</title> </bookmark> </folder> <folder> <title>Brain</title> <bookmark href="http://technology.newscientist.com/channel/tech/dn13491-blue-leds-to-reset-tired-truckers-body-clocks.html?feedId=online-news_rss20"> <title>Blue LEDs to reset tired truckers' body clocks - tech - 18 March 2008 - New Scientist Tech</title> </bookmark> <bookmark href="http://www.newscientist.com/channel/health/dn13458-brain-map-project-set-to-revolutionise-neuroscience.html?feedId=online-news_rss20"> <title>Brain map project set to revolutionise neuroscience - health - 13 March 2008 - New Scientist</title> </bookmark> <bookmark href="http://technology.newscientist.com/channel/tech/dn12991-invention-schizophrenia-spotter.html?feedId=online-news_rss20"> <title>invention Schizophrenia spotter - tech - 03 December 2007 - New Scientist Tech</title> </bookmark> <bookmark href="http://www.newscientist.com/channel/health/brain"> <title>Special Report on The Human Brain - New Scientist</title> </bookmark> <bookmark href="http://www.sciam.com/article.cfm?chanID=sa003&articleID=26362807-E7F2-99DF-3071E2B871080EB8&ref=rss"> <title>The Birth of a Brain Cell Scientists Witness Neurogenesis Scientific American</title> </bookmark> <bookmark href="http://science-community.sciam.com/blog-entry/Mind-Matters/Reading-Brain/5800000217"> <title>The Reading Brain Blogs Scientific American Community</title> </bookmark> </folder> <folder> <title>XSLT</title> <bookmark href="http://www.microsoft.com/downloads/details.aspx?FamilyId=2FB55371-C94E-4373-B0E9-DB4816552E41&displaylang=en#filelist"> <title>Download details Command Line Transformation Utility (msxsl.exe)</title> </bookmark> <bookmark href="http://msdn2.microsoft.com/en-us/library/ms950776.aspx"> <title>exslt Enhancing the Power of XSLT</title> </bookmark> <bookmark href="http://mvp-xml.sourceforge.net/exslt/"> <title>Mvp.Xml project EXSLT.NET module</title> </bookmark> <bookmark href="http://www.xmlplease.com/xhtmlxhtml#footnote-1"> <title>Transform XHTML to XHTML with XSLT</title> </bookmark> <bookmark href="http://www.w3.org/TR/xslt"> <title>XSL Transformations (XSLT)</title> </bookmark> <bookmark href="http://www.xmlplease.com/xhtml"> <title>XSLT for XHTML</title> </bookmark> </folder> <bookmark href="https://www.bethere.co.uk/"> <title>Be 24 meg broadband, the UK's fastest broadband ISP</title> </bookmark> <bookmark href="http://www.chomsky.info/index.htm"> <title>chomsky.info The Noam Chomsky Website</title> </bookmark> <bookmark href="http://java.sun.com/docs/books/jls/download/langspec-3.0.pdf"> <title>http--java.sun.com-docs-books-jls-download-langspec-3.0.pdf</title> </bookmark> <bookmark href="http://support.thetechguys.com/Layout.aspx?ID={37851ef7-2cd7-4464-9daa-732da20d94c6}&CatID={c7c9a717-9744-4545-bc0f-6cb07c02a705}"> <title>The TechGuys Welcome to The TechGuys</title> </bookmark> <bookmark href="http://www.research.att.com/sw/tools/uwin/"> <title>UWIN</title> </bookmark> </xbel>
|

Cart



