Is there a module for python to standardize XML? Since MSN Live Space
doesn't use standard XML in the posts, I want to standardize them so
that I can use them elsewhere. 7 1151
ZeeGeek wrote:
Is there a module for python to standardize XML? Since MSN Live Space
doesn't use standard XML in the posts, I want to standardize them so
that I can use them elsewhere.
Could you give a hint what you mean with "standardize"? What's non
standardized XML for you?
Stefan
ZeeGeek wrote:
Is there a module for python to standardize XML? Since MSN Live Space
doesn't use standard XML in the posts, I want to standardize them so
that I can use them elsewhere.
Hmm... XML _is_ standardized. If it doesn't follow the specs, then
it's not XML. If you want to make XML out of something which isn't XML,
you'll probably have to be a little more specific about how this other
format works.
--
Kind regards,
Jan Danielsson
On Apr 15, 7:08 am, Jan Danielsson <jan.m.daniels...@gmail.comwrote:
ZeeGeek wrote:
Is there a module for python to standardize XML? Since MSN Live Space
doesn't use standard XML in the posts, I want to standardize them so
that I can use them elsewhere.
Hmm... XML _is_ standardized. If it doesn't follow the specs, then
it's not XML. If you want to make XML out of something which isn't XML,
you'll probably have to be a little more specific about how this other
format works.
Thanks for correcting me. I worded it inproperly. For example, in
the code returned by Live Space, they use <brinstead of <br /so
that Blogger will complain that this tag is not valid because it
doesn't have a closing tag. Another example is that the contents of a
lot of the tag attributes like "color" and "size" are not surrounded
by quotes.
>
--
Kind regards,
Jan Danielsson
Le 15 Apr 2007 11:02:20 -0700,
"ZeeGeek" <Ze*****@gmail.coma écrit :
Thanks for correcting me. I worded it inproperly. For example, in
the code returned by Live Space, they use <brinstead of <br /so
that Blogger will complain that this tag is not valid because it
doesn't have a closing tag. Another example is that the contents of a
lot of the tag attributes like "color" and "size" are not surrounded
by quotes.
Maybe you can try BeautifulSoup module which aims to handle things like
that : http://www.crummy.com/software/BeautifulSoup/
- Jonathan
ZeeGeek wrote:
in the code returned by Live Space, they use <brinstead of <br /so
that Blogger will complain that this tag is not valid because it
doesn't have a closing tag. Another example is that the contents of a
lot of the tag attributes like "color" and "size" are not surrounded
by quotes.
Are you sure it's xml? It sounds to me like "old" HTML
--
Under construction
On Apr 15, 1:13 pm, Jonathan Ballet <mult...@free.frwrote:
Le 15 Apr 2007 11:02:20 -0700,
"ZeeGeek" <ZeeG...@gmail.coma écrit :
Thanks for correcting me. I worded it inproperly. For example, in
the code returned by Live Space, they use <brinstead of <br /so
that Blogger will complain that this tag is not valid because it
doesn't have a closing tag. Another example is that the contents of a
lot of the tag attributes like "color" and "size" are not surrounded
by quotes.
Maybe you can try BeautifulSoup module which aims to handle things like
that :http://www.crummy.com/software/BeautifulSoup/
Wow, this tool is fantastic. Thank you very much.
On Apr 15, 1:13 pm, ZeD <vito.detul...@gmail.comwrote:
ZeeGeek wrote:
in the code returned by Live Space, they use <brinstead of <br /so
that Blogger will complain that this tag is not valid because it
doesn't have a closing tag. Another example is that the contents of a
lot of the tag attributes like "color" and "size" are not surrounded
by quotes.
Are you sure it's xml? It sounds to me like "old" HTML
Yeah, I realized this after I read the first reply to my post. That
was a big mistake to word it XML. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Jacek Generowicz |
last post by:
Within our family of projects, we are looking to provide a recommended
practice guideline, concerning hashed containers, which would help
developers using different compilers, to write portable...
|
by: Kong Bhat |
last post by:
With XML becoming the de facto data description standard, I am
extremely surprised that there is no movement towards standardizing an
xml library API for use with C and C++. Personally I have been...
|
by: cody |
last post by:
no this is no trollposting and please don't get it wrong but iam very
curious why people still use C instead of other languages especially C++.
i heard people say C++ is slower than C but i can't...
|
by: Christopher Benson-Manica |
last post by:
(Followups set to comp.std.c. Apologies if the crosspost is unwelcome.)
strchr() is to strrchr() as strstr() is to strrstr(), but strrstr()
isn't part of the standard. Why not?
--...
|
by: WaterWalk |
last post by:
I've just read an article "Building Robust System" by Gerald Jay
Sussman. The article is here:
http://swiss.csail.mit.edu/classes/symbolic/spring07/readings/robust-systems.pdf
In it there is a...
|
by: Bob |
last post by:
Is there anyway to access the global object from inside a function other
than doing a "var _global = this;" before declaring the function?
Thanks
|
by: xiao |
last post by:
Hi~ every one~ I have a queston about fread function. if i have a
code like this:
(nscrdh and data are defined as two dementional arrays and both of
them were stored in the same binary file)
...
|
by: jackie |
last post by:
I know in c that 3/2 gets 1 and 3%2 is also 1,and i think this is
guaranteed by C99(is that true?),but on the other hand,-3/2 may be -1
or -2,and -3%2 may be -1 and 1 respectively,it is implement-...
|
by: grafilo |
last post by:
I've been trying to standardize "single"-type numbers that are processed in a module. I need exactly 4 decimal places all the time, but the system always seems to ignore place-holding 0s. (i.e. 5,...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
| |