cross-posted to: mailing.databas e.myodbc,comp.t ext.xml
I have an xhtml file whose data I'd like to import to MySQL.
Unfortunately, mysqlimport will only work with text files. Mixed in
with text are some links, URL's, which I'd like to import to the
database. For the most part, a copy/paste into a plain-text file would
do the trick, but the links get lost in the process.
how do I grab the links?
Here's a snippet of the xhtml:
<?xml version="1.0" encoding="UTF-8"?><!DOCTYP E html PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><m eta
http-equiv="content-type" content="text/html; charset=utf-8" /><title
/><meta name="generator " content="StarOf fice/OpenOffice.org XSLT
(http://xml.openoffice. org/sx2ml)" /><meta name="created"
content="2006-02-07T04:18:53" /><meta name="changed"
content="2006-02-07T04:19:36" /><base href="." /><style
type="text/css">
@page { }
table { border-collapse:collap se; border-spacing:0;
empty-cells:show }
td, th { vertical-align:top; }
h1, h2, h3, h4, h5, h6 { clear:both }
ol, ul { padding:0; }
* { margin:0; }
*.ta1 { }
*.ce1 { font-family:'Nimbus Roman No9 L'; font-size:10pt;
font-style:normal; text-shadow:none; font-weight:normal; }
*.Default { font-family:'Bitstre am Vera Sans'; }
*.Heading { font-family:'Bitstre am Vera Sans';
text-align:center ! important; font-size:16pt; font-style:italic;
font-weight:bold; }
*.Heading1 { font-family:'Bitstre am Vera Sans';
text-align:center ! important; font-size:16pt; font-style:italic;
font-weight:bold; }
*.Result { font-family:'Bitstre am Vera Sans';
font-style:italic; font-weight:bold; text-decoration:unde rline; }
*.Result2 { font-family:'Bitstre am Vera Sans';
font-style:italic; font-weight:bold; text-decoration:unde rline; }
*.co1 { width:0.8925in; }
*.ro1 { height:0.4146in ; }
*.ro2 { height:0.2173in ; }
*.ro3 { height:0.611in; }
*.ro4 { height:0.8083in ; }
*.ro5 { height:0.1681in ; }
....
thanks,
Thufir 2 1827 ha**********@gm ail.com wrote: cross-posted to: mailing.databas e.myodbc,comp.t ext.xml
I have an xhtml file whose data I'd like to import to MySQL. Unfortunately, mysqlimport will only work with text files. Mixed in with text are some links, URL's, which I'd like to import to the database. For the most part, a copy/paste into a plain-text file would do the trick, but the links get lost in t
If you are looking for URLs *ANYWHERE* in the doc, irrespective of where
they are and what they are pointing at, I suggest you think of the XML
as just a text, and use a regular expression extractor thing. Unix geeks
have sed, grep etc., or you can code it in .NET or Java or Perl pretty
easily.
Soren
Soren Kuula wrote: ha**********@gm ail.com wrote: cross-posted to: mailing.databas e.myodbc,comp.t ext.xml
I have an xhtml file whose data I'd like to import to MySQL. Unfortunately, mysqlimport will only work with text files. Mixed in with text are some links, URL's, which I'd like to import to the database. For the most part, a copy/paste into a plain-text file would do the trick, but the links get lost in t
If you are looking for URLs *ANYWHERE* in the doc, irrespective of where they are and what they are pointing at, I suggest you think of the XML as just a text, and use a regular expression extractor thing. Unix geeks have sed, grep etc., or you can code it in .NET or Java or Perl pretty easily.
Soren
I think I'll give it a go with Saxon, hopefully this weekend. For this
particular example, yes, the URL's are "anywhere" but that might not be
the case down the road.
thanks,
Thufir This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Peter Rohleder |
last post by:
Hi,
I have a few simple questions in order to use modularized xhtml and
getting it to work.
A simple example may make this obviouse:
Lets say we want to create a simple xml-file to reflect a
faq-structure.
|
by: Philipp Lenssen |
last post by:
I've tested some of the new Nokia 6600 functionality. It ships with
WAP2 and XHTML Support (it says). What it does is check the Doctype --
if it's not the XHTML Mobile Profile Doctype, but a XHTML1.0 Strict
one, the media-handheld CSS is _ignored_. Only with the Nokia Doctype,
the CSS is used. I find this really annoying as it goes against the
whole idea of media-independent XHTML Strict along with stylesheets.
On the good side, WML...
|
by: jp29 |
last post by:
My take on problems composing, serving and rendering XHTML
documents/web pages:
1. Typical conscientious web authors are producing XHTML documents (Web
pages) that feature valid Markup and with the content (MIME) type
specified as text/html
(http://keystonewebsites.com/articles/mime_type.php). These pages are
then loaded on to their Server where they are served to Rendering
Agents (browsers) as HTML (SGML application) documents with no...
|
by: Mcginkel |
last post by:
I am trying to find a way to load XHTML content in an Iframe.
I use to do this in html by using the following code :
var iframeObject = document.createElement("iframe");
MyDiv.appendChild(iframeObject);
var data =
"<html><head><title>testing</title></head><body>data</body></html>"
iframeObject.contentDocument.open();
iframeObject.contentDocument.writeln(data);
|
by: Buford Early |
last post by:
I read this in http://annevankesteren.nl/2004/12/xhtml-notes
"A common misconception is that XHTML 1.1 is the latest version
of the XHTML series. And although it was released a bit more
than a year later then the first version of XHTML 1.0, the second
edition is actually newer. Furthermore, XHTML 1.1 is not really
the follow-up of XHTML 1.0"
I thought that XHTML 1.1 was the follow-up to XHTML 1.0 and that
XHTML 2.0 will someday be the...
| |
by: Joris Janssens |
last post by:
I'm trying to write a program for validating XHTML 1.1-documents
against the XHTML 1.1 DTD (which is actually the same as validating an
XML-file) but I always get a "(404) Not found" error.
This is the program itself :
********************************************************************
using System;
using System.Xml;
using System.Xml.Schema;
|
by: Alex D. |
last post by:
How can I stop asp.net from rendering XHTML istead of HTML?
My javascripts are rendering wrong because of that. It is rendering & to
clients instead of &.
Any help?
Thanks,
Alejandro.
|
by: Tomek Toczyski |
last post by:
What is the best way to attach a caption to an image in xhtml?
I can attach a caption to a table by a "<caption>" tag
but I would like to do sth similar to an image.
How to do it in a natural way?
-tt.
|
by: Michael Powe |
last post by:
How can I make an XHTML-compliant form of an expression in this
format:
document.write("<scr"+"ipt type='text/javascript' src='path/to/file.js'>"+"</scr"+"ipt>");
this turns out to be a non-trivial exercise. inserting '<' and
'>' causes the browser to write the text to the page as literal
text rather than as the intended script element. Using escape codes
seemed to work (makes it standard compliant) but the text is not
written to...
|
by: Robert Huff |
last post by:
Can someone offer suggestions why, on the same server (Apache 2.2.8),
this works
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang="en-US">
<head>
<link rel=stylesheet type="text/css" href="proj_default.css"
title="ss_default">
<title>Testing html</title>
</head>
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |