I have an XML file that looks like this
<library>
<book>
<title>Title</title>
<author>author</author>
<price>20</price>
<book>
<library>
I want to be able to add a book and be able to change the price.
Does anybody have any incite on how to do this?
Everywhere were i look keeps referring to "simpleXML" howeve...
I am using Delphi7 ClientDataSet to read and write xml files for some of my data.
Howerver, when I want to browse this outside the program (double clicking the xml in Windows Explorer) I get the 'An invalid character was found in text content. Error processing resource' - even although the data reads and writes fine from within Delphi.
...
Hi.
I want to write a not so complicated but large file within my app and be able to send it by mail (using MFMailComposeViewController)
Since NSXMLElement and related classes are not ported to iPhone SDK what options do I have for creating XML documents?
Thanks in advance.
...
Hi,
I'm searching a way to add a new complexType to a substitution group. This type should be contained in a separate file and i don't want to add something to the sourcefile (like a include or import). The intent is to enable someone to add his own types by simply adding a separate xsd-file without changing the original.
What I have fo...
For all you who know, in Google Webmaster Tools one can submit a sitemap or **sitemap_inde**x file and then google will fetch it and crawl the website when it "has time to".
I have searched for this but can't find an answer anywhere...
In the interface of webmaster tools, there is a section for "sitemaps" which lists all sitemaps submi...
I had xml file which have some data .and I had navigation url tage this url to new website I tried to open this url in new window not in same window but I couldnot please any one help me.
<xml file>
<?xml version="1.0" encoding="utf-8" ?>
<Advertisements>
<Ad>
<ImageUrl>images/Ad_1.jpg</ImageUrl>
<NavigateUrl>http://toshiba.el...
I have a list of xml examples I would like to turn into schemas (xsd files). Exactly what the trang tool does (http://www.thaiopensource.com/relaxng/trang.html). I don't like calling trang from my script (i.e doing os.system('java -jar trang...')) - is there a python package I can use instead?
...
Hi,
I'm creating a news app for android where news data transfered to clients using xml. The problem is how can i embed news content inside xml ? News content contains html tag. Here is part of my xml data
<title>xxx</title>
<date>xx</date>
<content>html here</content>
...
Hey. I want to have a config.xml file for settings in a Python web app.
I made car.xml manually. It looks like this:
<car>
<lights>
<blinkers>off</blinkers>
</lights>
</car>
Now I want to see whether the blinkers are on or off, using xml.etree.ElementTree.
import xml.etree.ElementTree as ET
tree = ET.parse('car.xml')...
Using pyblog.py, I got the following error, which I then tried to more gracefully handle:
Traceback (most recent call last):
File "C:\Python26\Lib\SITE-P~1\PYTHON~1\pywin\framework\scriptutils.py", line 325, in RunScript
exec codeObject in __main__.__dict__
File "C:\Documents and Settings\mmorisy\Desktop\My Dropbox\python\better...
Hi,
I'd need a MySQL query to transform my nested sets structure into XML. (no PHP)
The Problem is how to close all tags correct.
My method of resolution:
1) Find leaves
2) Make a "TAG"-string (group_concat) and make it shorter with level
This is running:
A[01,16]
B[02,03] C[...
Hi All,
I am trying to split a large XML file into smaller files using java's SAXParser (specifically the wikipedia dump which is about 28GB uncompressed).
I have a Pagehandler class which extends DefaultHandler:
private class PageHandler extends DefaultHandler {
private StringBuffer text;
...
@Override
public void startEl...
With reference to this question http://stackoverflow.com/questions/3850315/java-splitting-up-a-large-xml-file-with-saxparser I'm essentially reading in an xml file using SAXParser and echoing it to another file.
My problem is that the content of my input file contains character references which are being decoded on reading in. How can I...
Hi everyone, i have a videos.xml file,
<?xml version="1.0" encoding="ISO-8859-1" ?>
<videos>
<video url="videos/Lillebjorn.f4v" desc="Lillebjørn" />
<video url="videos/Storebjorn.f4v" desc="Storebjørn" />
<video url="videos/Pegasus.f4v" desc="Pegasus" />
</videos>
I was wondering, how i can read the file above, and add a new
ta...
Hello folks,
I would like to know how could I test the fallowing situation:
<foo>
<bla1>xxx</bla1>
<bla2>yyy</bla2>
<bla3>zzz</bla3>
</foo>
In the while(reader.Read()), I drop in the XmlNodeType.Element when I'm in the foo and bla1, bla2, bla3... When drop in the .TextElement in the xxx, yyy, zzz. But can I test if the bl...
Can someone check a xml reply string. User said it is not XML compatible and has bad header. When I do a view source, I see this
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response><task_no_added>54</task_no_added><errorMessage></errorMessage></response>
http://tinyurl.com/22jrq6v
Here is header info found in firebug.....
When I do like this
[XmlType("c1")]
[XmlRoot("c1")]
public class Class1
{
[XmlArray("items")]
[XmlArrayItem("c2")]
public Class2[] Items;
}
[XmlType("c2")]
public class Class2
{
[XmlAttribute("name")]
public string Name;
}
I get this
<soap:Body>
<HelloWorld xmlns="http://tempuri.org/">
<c1>
...
Here is my situation. I'm trying to create a valid rss feed for an itunes podcast from an existing project. It's a rails application that allows uploading of mp3 radio shows to for listening on the site. I want to take all entries in the database and create an rss feed out of it. I'm using a builder file and everything is working fin...
I finding some great solution to convert XML to dict in python
...
Hello.
I want to check if a field in my XML is of type positive double/decimal. There is a type="xs:positiveInteger" datatype in XSD but no positive double or decimal. Is there a way to achieve this either by defining custom datatype or some other way?
...