Hi,
I am trying to parse XML with Python but not getting very far. I think it's due to wrong XML tree this API returns.
So this is what is returned by the GET request:
<codigo>3</codigo><valor></valor><operador>Dummy</operador>
The GET request goes here:
http://69.36.9.147:8090/clientes/SMS_API_OUT.jsp?codigo=ABCDEFGH&cliente=XX...
Ok, I've read a couple books on XML and wrote programs to spit it out and what not. But here's the question. Both a comma delimited file and a XML file are "human readable." But in general, the comma delimited file is much easier on my eyes than a XML file; the tags typically take up as much if not more space than the data. This just...
> <root>
>
> <module c_name="Executive Library">
> <node cd_title="Document One"
> cd_link="http://localhost/userMana/upload/feature.xml"/>
> </module> <module c_name="Rate Card"/>
>
> <module c_name="Time Sheet"> <node
> cd_title="Document Two"
> cd_link="http://localhost/userMana/upload/epl-v10.html"/>
> </module> </root>
<mx:...
HI,
I'm new with stylesheets and looking for a solution to copy the entire XML document but remove a parent node from an xml document. However this parent node also has a child that i'd like to keep.
The node to remove is <LoginID> and the child node to keep is <PAN>
<InqRs>
<LoginID>
<PAN>4506445</PAN>
</LoginID>
<RqUI...
I've got a large-ish (90MB) XML file from Excel, saved in XML Spreadsheet 2003 format. It contains various invalid data, so that Firefox spits out messages like this:
Line Number 790402, Column 65:
<Cell ss:StyleID="s18"><Data ss:Type="String">Here's some data I?Bnternational</Data></Cell>
Is there a tool that'll parse my XML and ...
I am trying to get an XmlNode within an InfoPath form, and I can't get it to return anything but null.. I'm following the example at http://suguk.org/forums/thread/17780.aspx and running into this issue..
MemoryStream inStream = new MemoryStream(file.OpenBinary());
XmlDocument myDoc = new XmlDocument();
myDoc.PreserveWhitespace = true;
...
I want to read the content from an external page, convert that into a predefined format, and then enter it into a database.
This is just for fun--it's taking an event list and copying the events to my own site.
Take this page, and manipulate it to fit a different format...
Is it possible to do this with jquery?
...
When an XMLDOMDocument saves itself, how can i get it to include the XML Declaration, e.g.:
<?xml version="1.0" encoding="UTF-8" ?>
<?xml version="1.0" encoding="UTF-16" ?>
<?xml version="1.0" encoding="UCS-2" ?>
<?xml version="1.0" encoding="UCS-4" ?>
<?xml version="1.0" encoding="ISO-10646-UCS-2" ?>
<?xml version="1.0" encoding="UNIC...
I'm using Apache FOP with an XML document, and I'm trying to render a pdf. I have to embed a font into the resultant pdf file because it has to use international characters. Does anyone know how to do this?
...
In a C# app I am pulling a message off of a SQL service broker queue with the below statement.
When attempting to convert the message_body to SqlBytes and other types an exception is thrown. At runtime message_body always seems to begin as type byte[].
Leaving message_body as a byte[] works but I get an exception complaining of an erro...
I am attempting to parse an XML file using python expat. I have the following line in my XML file:
<Action><fail/></Action>
expat identifies the start and end tags but converts the & lt; to the less than character and the same for the greater than character and thus parses it like this:
outcome:
START 'Action'
DATA '<'
DATA 'f...
How do I have LINQ to XML iqnore all namespaces? Or alteranately, how to I strip out the namespaces?
I'm asking because the namespaces are being set in a semi-random fashion and I'm tired of having to search for nodes both with and without a namespace.
...
I use currently Vim to read SO's data dump. However, my Macbook slows down when I roll down just a few rows. This suggests me that there must be more efficient ways to read the data.
I know little MySQL. The files are in .xml -format. It is rather hard to read the data at the moment in .xml. It may be more efficient to convert the xml -...
Hi there,
I'm parsing a posted encrypted and posted XML file sent to my site from another server.
Currently the XML(decrypted) sorta looks like so:
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<transactions>
<transaction>
<id>407145</id>
<store_id>4067</store_id>
<custom_fields>
<custom_field>
<custom_field_name>aff...
I'm trying to extract some data from various HTML pages using a python program. Unfortunately, some of these pages contain user-entered data which occasionally has "slight" errors - namely tag mismatching.
Is there a good way to have python's xml.dom try to correct errors or something of the sort? Alternatively, is there a better way to...
I want full control over log4net xml output.
How is it possible to customize the output template?
...
I am working with QuantumGrid 6 from Devexpress. I need to store the grids settings in an xml configuration file. Unfortunately, the grid does not allow XML as a storage option. I can however export the settings to a stream.
I'm thinking to export to a stream then convert the stream to text and store it as an xml value. I guess the text...
If I have XML like this:
<sample>
<a:element1 xmlns:a="..." />
<b:element2 xmlns:b="..." />
</sample>
it seems that XSL can't find the two child nodes of <sample> due to the prefixes a: and b:.
If I eliminate the two prefixes as well as the namespace declaration, then they are found.
The problem is that I can't do any...
I am building a web service that involves parsing of 3rd party RSS feeds. How can I be informed about the 3rd party RSS feeds being updated?
I know that I can set up a Cron job to check for RSS updates every X minutes. But I don't want to generate unnecessary traffic and computing overhead.
Can I somehow have my system pinged by a web ...
I've got a fairly ajax heavy site and some 3k html formatted pages are inserted into the DOM from ajax requests.
What I have been doing is taking the html responses and just inserting the whole thing using jQuery.
My other option is to output in xml (or possibly json) and then parse the document and insert it into the page.
I've not...