0
votes
1answer
21 views

Retaining HTML Tags in XML Content SAX Parser Python

I am using python's xml.sax library to parse XML content. I Have HTML tags withing some tags of my XML file. Lets say for eg: <Car> <Color> Blue</Color> <Size> 1500 ...
0
votes
1answer
17 views

What is meant by OpenERP fields.reference?

I saw this code segment in subscription.py class. It gives selection and many2one fields together for users. I found in openerp documentation and another modules also but i never found any details or ...
1
vote
1answer
14 views

How to set ElementTree Element text field in the constructor

How do I set the text field of of ElementTree Element from its constructor? Or, in the code below, why is the second print of root.text None? import xml.etree.ElementTree as ET root = ...
-2
votes
0answers
25 views

Input a file path, declared in .bashrc, in xml [on hold]

I have declared a file path in .bashrc as export PATH=$HOME/HEA/... The file-path can be accessed in as $PATH $ echo $PATH /home/ishan/HEA/... I have used the file-path in python successfully ...
0
votes
0answers
13 views

Parsing DMOZ dumps for category queries in Python

I am currently working on a project which involves finding the 'domains of knowledge' a certain key-word is related to. I plan to do this using DMOZ. For example, 'Brad Pitt' gives Arts: People: P: ...
0
votes
2answers
51 views

Adding default filter on tree view - OpenErp Custom module

I need to add a default filter, for the tree view of my module. I saw some code example in openerp, like this one: <filter string="Partner" icon="terp-partner" domain="[]" ...
-1
votes
1answer
12 views

Recognise Malformed XML file [closed]

I am building a python script to run nightly, part of which involves invoking a drupal bulk operation to export an XML file. Since the process takes a number of hours, and the next step is to ...
0
votes
1answer
21 views

Python: Efficient script to get some value from XML doc or not?

I have the following XML document <data> <point address="com.example.www" time="Jul 30, 2013 10:02:56 PM" protocol="http" type="2" body="404 Not Found" name="Example Site" /> ...
0
votes
1answer
47 views

Finding values in XML document using Python

I have following code that tries to get values from XML document: from xml.dom import minidom xml = """<SoccerFeed TimeStamp="20130328T152947+0000"> <SoccerDocument uID="f131897" ...
0
votes
1answer
29 views

Creating loops from xml data

Please look at the following code: from xml.dom import minidom xmldoc = minidom.parse("C:\Users\...\xml") #This is just the address to the document soccerfeed = ...
0
votes
2answers
19 views

Python using .find to search an XML (Attribute Error)

I'm getting an error with my code: 'AttributeError:Document instance has no attribute 'find' Can I use the find function with an xml doc? Eventually I want to find a word and replace it in the xml ...
-1
votes
0answers
21 views

How to save XML code in file to use it in PYTHON [closed]

I am quite new to programming and don't know much about HTML/XML, I want to use the content of a XML file in python. How can I parse the code below so that I can extract information from it? <?xml ...
1
vote
1answer
33 views

Random ElementTree.ParseError when fetching Flickr data

I am writing a script to pull selected metadata from my Flickr account for all photos therein. As the script is moving through the photosets, I get a (seemingly) random ElementTree.ParseError: File ...
0
votes
0answers
13 views

OpenERP Filter by function in View.xml

In my Leave approve model I need to get only employees who are reported to logged manager. So seems to have a function filtering in my tree view. but how to add filter to view xml without context or ...
1
vote
1answer
12 views

preserve entity references when parsing xml

Running the following simple script: from lxml import etree tree = etree.parse('VimKeys.xml') root = tree.getroot() for child in root: print ("<table>") print ("<caption>" + ...

1 2 3 4 5 142
15 30 50 per page