Tagged Questions
0
votes
1answer
15 views
XML parser python fails to get element
etree.ElementTree package in python to parse my xml file but it seems it fails to do so.
My xml file hierarchy is like this:
root
<- ->
config data
<>
...
-1
votes
1answer
26 views
How to remove all XML tags from a list of files? [on hold]
How can I remove all xml tags from all files in a directory on a Linux server using Python?
1
vote
1answer
13 views
Receiving AJAX Data in Python on Dreamhost
Ajax code:
$.ajax({
url: '../py/process.py',
type: 'POST',
data: {'newEpisodeXML': newEpisodeXML}
});
Python code:
#!/usr/bin/python
newEpisodeXML = self.request.get('newEpisodeXML')
...
0
votes
2answers
19 views
How to check if an xml node has children in python with minidom?
How to check if an xml node has children in python with minidom?
I'm writing an recursive function to remove all attributes in an xml file and I need to check if an node has child nodes before ...
1
vote
2answers
21 views
access all xml value in python, where there's several that have the same name
In my application, I receive informations from amazon in xml. So, I read and access the values by simplexml.
My problem is when I want to access several neighbor strings that have the same name.
an ...
0
votes
1answer
19 views
Can findall or finditer be used in this python ElementTree example?
I want to process the following xml using ElementTree in python.
I need to find all Instance names when the UserValue title is THIRD and its value is not blank. So in this example the result would be ...
0
votes
2answers
18 views
XML file to Excel, error when opening
I have this file here:
<?xml?>
<table name="data">
<row et_kt="215846" et_nafn="" et_kt_maka="" et_kt_fjolsk="215846" et_kyn="X" et_hjusk_stada="1" et_faeddag="190201" ...
1
vote
1answer
13 views
Unable to open XML file in Excel
I've built (I think, I'm new to XML) a suitable XML file from Excel data and my Python program is supposed to port that information back into Excel. But, upon opening, Excel suspects the file is ...
0
votes
0answers
7 views
Feedparser python and Flicker XML Namespace
I am using Feedparser for a Python script. I want to get the link of my Flicker album, but the media URL is in a namespace.
My question is how to access the URL attribute from :
<media:content ...
2
votes
2answers
23 views
Error in serializing Notation3 file into RDFXML format in python
So I have a Notation3 file that looks like this:
@prefix wn: <http://www.w3.org/2006/03/wn/wn20/instances/> .
@prefix lemon: <http://www.monnet-project.eu/#> .
@prefix lexinfo: ...
2
votes
2answers
44 views
Extract specific values from string
I want to extract all words that have the following label "w=". Example, I will need, " THAT HAVE RECEIVED NO" from the string below.
w="THAT" v="22.23092" a="19.09109" i="3"/>
<r s="1480150" ...
1
vote
1answer
16 views
How to parse N3 in RDFlib
I am trying to convert a file into XML using the N3 parser in RDFlib but I am not sure if I am doing it right or even if I have the n3 plugin installed. This is what I have so far:
import rdflib
from ...
0
votes
2answers
39 views
Open xml file, find url within, open link and search for value - python lxml
I am opening an xml file, with lxml, and am already doing a lot of editing before saving out to a new xml file, all this is working fine.
Within my opened xml, I have a url which links to a web page. ...
0
votes
0answers
15 views
Python BeautifulSoup cURL no connection
I am connecting to an XML page via proxy using cURL. For some reason there is no connection to the page. Parsing isn't an issue so I will not include it with the code.
from bs4 import BeautifulSoup
...
1
vote
1answer
18 views
remove tag and contents based on child tag value - python lxml
I am trying to locate a particular tag, based on it child's contents and remove the parent tag and contents, but cant find an answer. Here is my xml:
<video>
<crew>
<member ...