Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Changing data of xhtml document

Reply
Thread Tools

Changing data of xhtml document

 
 
Thanos Tsouanas
Guest
Posts: n/a
 
      08-14-2005
Hello list!

I've got a unicode string which holds an xhtml website, begining with
<!DOCTYPE ... and a functions which alters strings in a certain way.

I want to replace all actual data in this xhtml unicode string with the
function's output. (By 'actual data' I mean anything that

I thought I should use the XMLGenerator package, but first, I don't
like it's output, and second, it complaints about the <!DOCTYPE ...>
tag. Also, it writes the <?xml ?> tag which I want to avoid at this
stage.

Are there any really easy solutions to this problem?
Any modules that could be helpful for slight modification of such
sgmlish files? The downside of SGMLParser is that I have to override
all parser functions to actually leave everything intact instead of
doing nothing and override characters(data) to print the altered data.

Thanks in advance!

--
Thanos Tsouanas .: My Music: http://www.thanostsouanas.com/
http://thanos.sians.org/ .: Sians Music: http://www.sians.org/
 
Reply With Quote
 
 
 
Reply

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
Loading a simple XHTML transitional document into aorg.w3c.dom.Document Ion Freeman Java 17 07-11-2009 10:17 PM
parse URL (href) from xhtml, xhtml -> text, for data hawat.thufir@gmail.com XML 7 02-08-2006 07:39 PM
translate a HTML document into a XHTML document mike Java 3 01-24-2005 09:42 AM
A HTML document can be converted to XHTML document. mike Java 2 01-14-2005 06:00 AM
A HTML document into a XHTML document(wap2.0 mobile profile) mike XML 6 10-14-2004 09:02 PM



Advertisments