2
votes
0answers
22 views

Python: xpath.find() won't find new elements if they were added without namespace

Today I stumbled upon a peculiar behaviour of the xml.dom and xpath modules and it took me a while to figure out it had to do with XML namespaces: from xml.dom import minidom import xpath zooXml = ...
2
votes
0answers
33 views

How do I handle whitespace with Python's elementtree?

Problem: When whitespace is insignificant, representation may be very significant. Explanation: In XML Schema Part 2: Datatypes Second Edition the constraining facet whiteSpace is defined for types ...
2
votes
0answers
424 views

HTML to multiple Excel worksheets using python

I have big xml file and I have to convert it to PDF and to Excel. First of all I've used xslt transformation and build html file with styles and formatting. There is no problem with PDF, I've used ...
2
votes
0answers
222 views

How can I input XML data from an external web service into a scope field during a custom FAST ESP pipeline stage written in python?

We have an external web service that we access during a custom pipeline stage in FAST. Our task is to get the XML that is output by this web service and store it into a scope field. At this point we ...
2
votes
0answers
262 views

Obtaining and Parsing Map Street Data in Python

How would you obtain a graph describing street interconnections and estimated driving times, and parse it using Python? As an exercise, I'm trying to implement a basic A* planner to plot a route for ...
2
votes
0answers
233 views

lxml validates xml when written to file, and read back but does not validate DOM tree from which file is generated

I'm using lxml to generate xml and validate it. I have found that when I try to use an XSD validator to validate the DOM tree, the validator complains that it does not recognise the root element; by ...
2
votes
0answers
583 views

python suds - Insert raw xml node into factory-created object

In python suds, how do I insert a Raw XML node into an object created via the factory.create method, while still maintaining attributes? Is there some _child field I could use? Basically, how do I ...
2
votes
0answers
445 views

How do I fix PyXML?

I have a set of python scripts that use PyXML. The scripts used to work fine but now I get error. How can I best repair this? $ script.py Traceback (most recent call last): File ...
1
vote
0answers
32 views

Read XML file like text file

is there any way to read xml file like reading text file(line by line)? In my work for some cases i have to read only specific lines. I'm using minidom for parsing xml.
1
vote
0answers
16 views

How to do simple manipulation of a OOo/LibreOffice Writer document, then save

I want to do a very simple bit of manipulation of a LibreOffice Writer document... then save again as the ODT file... What might be wrong with this? If I try this I get 2 content.xmls in the zip ...
1
vote
0answers
38 views

Programatically clean/ignore namespaces in XML - python

I'm trying to write a simple program to read my financial XML files from GNUCash, and learn Python in the process. The XML looks like this: <?xml version="1.0" encoding="utf-8" ?> <gnc-v2 ...
1
vote
0answers
24 views

How to replace the node value in xml and save the output in same xml using python

I used minidom function to change the nodeValue in xml. But my code only changes the node value in buffer (when i print the xml , i get it with new value), i want to save the new node value to the ...
1
vote
0answers
52 views

What is this (cid:51) in the output of pdf2txt?

So i'm trying to extract the text from a pdf file, I need its position, width, height, font. I have tried many, but the most useful and complete solution looks to be PDFMiner, and in this case, more ...
1
vote
0answers
48 views

Can CDATA sections be preserved by BeautifulSoup?

I'm using BeautifulSoup to read, modify, and write an XML file. I'm having trouble with CDATA sections being stripped out. Here's a simplified example. The culprit XML file: <?xml version="1.0" ...
0
votes
0answers
18 views

Revising python code to pass variable to xml document

How can I re-write this so that my list imports successfully into a xml file. companyInfo has a matching variable in the xml template (which is a word document) which gets replaced during running of ...

1 2 3 4 5 20
15 30 50 per page