Hi Guys.
I'm using PHP5 and it's inbuilt SOAP functionality. I'm catching the SOAP Fault errors, and email myself when one is triggered.
What I really need to do is include the __getLastRequest() and __getLastResponse(), however as these are XML objects, when I try to include them by echoing them into the body of my HTML email, for ob...
Hey I'm looking for an XML parser for C/C++, just a parser which I give a string as an argument and it returns me a parsed document represented by a class/struct.
The problem is that I am compiling it for the ARM9 processor and I need really just simple code no ./configure and stuff like that and no specific Makefile, just some files wh...
I have a following XML (part of a .rdl report):
<Report xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner" xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition">
<DataSources>
<DataSource Name="TMSSharepointDataSource">
<DataSourceReference>TMSSharepointDataSource</DataS...
Hey Team,
I got a XML File, looking familiar to this :
<root>
<carnumber>12</carnumber>
<carcolor>2</carcolor>
<cartype>5</cartype>
</root>
Like you see I got some Elements with values/text in it. The car element for example can take values from 1 to 1000. But the element carcolor can take values from 1 - 5 and the cartype from 1 -...
I'm looking at the output of a tool, dumping a database table to XML. One of the columns is named 64kbit , the tool encodes that as such, and I need to replicate that:
<_x0036_4kbit>0</_x0036_4kbit>
Is this some sort of standard encoding ? Where can I learn more about it ?
...
I'm trying to work out if there is a better way to achieve the following:
from lxml import html
from BeautifulSoup import BeautifulSoup
soup = BeautifulSoup("<p>£682m</p>")
text = soup.find("p").string
print text
>>> £682m
print html.fromstring(text).text
>>> £682m
So I'm trying to produce the same string that lxml retu...
I'm using GroovyWS in a Grails app to connect to an external SOAP server.
I'd like to see the actual XML that is generated by GroovyWS since I'm getting errors without any useful information.
I know I can use wireshark or something similar, but there really should be an easier way.
Printing the object just prints the Java Object@... s...
In Java:
Suppose I have 3 xml files
<student>lin</student> -- file1.xml
<student>Eric</student> -- file2.xml
<student>joe</student> -- file3.xml
How can I merge these xml’s (considering that they don’t have the DTD or namespace declaration) to create
<class><student>lin</student> <student>Eric</student>
<student>joe</studen...
Take this XML example:
<root>
<grandParent GPid="1" hidden="false">
<parent Pid="1" hidden="false">
<child Cid="1" hidden="false"/>
<child Cid="2" hidden="true"/>
</parent>
<parent Pid="2" hidden="false">
<child Cid="3" hidden="false"/>
<child Cid="4" hidden="false"/>
</parent>
</grandParent>
...
I have to post data from my HTML form to server in xml format, something like:
<some_parameters>
<firstname>Homer</firstname>
<lastname>Simpson</lastname>
<street>74 Evergreen Tr.</street>
</some_parameters>
All I know it goes to one of the CRM applications run on different domain. Now I'm not sure what is the best way to ...
Hi,
I've have some javascript code that transforms XML with XSLT. I now want the user to be able to save that new XML (either by prompting them or throwing the new XML up as a file or something so that the user can then save it. Anybody know how to do that?
var xmldoc = new ActiveXObject("Microsoft.XMLDOM");
xmldoc.async = false;
xml...
If I have a script that handles state information that's a bit more complex that can be stored in variables, what's the best option for a small in-memory database?
Sqlite is an option, though that would be an external dependency. XML might do, though it's non-relational.
Is there any consensus on a tool for this job?
...
Let's say I have an annotation JSR 303 class like this:
class A {
@NotNull
private String b;
@Min(5)
@Max(10)
private int num = 3;
@Pattern(regexp="[0-9]*")
private String foo = "12345aa";
}
How can I take that class and generate a validation.xml which contains the same constraints as those that are speci...
I have a large XML data file (>160M) to process, and it seems like SAX/expat/pulldom parsing is the way to go. I'd like to have a thread that sifts through the nodes and pushes nodes to be processed onto a queue, and then other worker threads pull the next available node off the queue and process it.
I have the following (it should have...
<?php
/*
Sample: $results = XMLParser::load('<xml ....');
$results = XMLParser::load(VSCHEMAS.'/Users.edit.xml');
*/
/**
* Abstract XMLParser class. A non-instantiable class that uses SimpleXML to parse XML, based on a path or body passed into the load method
*
* @abstract
*/
abstract class X...
I am having trouble working out what my XML should look like when performing a post request through WCF REST services.
When using a datacontract i have no problem at all but when i just want to send across one parameter for example an int, i get the following error - "The remote server returned an error: (405) Method Not Allowed. "
[Ope...
from xml.dom.minidom import parse, parseString
datasource = open('http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml')
dom = parse(datasource)
print dom
... the above code throws an IOError: 2, 'No such file or directory'. Python doesn't read remote doc like PHP? What do I need to change in the code to make it read the XML ...
Hello,
I have following XML generated by serializing a boost::posix_time::ptime structure. I want to create a Java Date object with this XML.
<timeStamp class_id="0" tracking_level="0" version="0">
<ptime_date class_id="1" tracking_level="0" version="0">
<date>20100119</date>
</ptime_date>
<ptime_time_duration class...
Hi ,
How can I edit the value's in a xml file using simpleXML ?
I know how to create just not how to edit the value in a exciting file ?
...
Hi ,
I have an exctiing xml file which has id's 1 - 20 when I create a new xml file I need it to add the ID to the file how can I do this ?
I know how you would do it with SQL but not with xml
please help
...