xml-parsing

Convert XML to python objects using lxml

I'm trying to use the lxml library to parse an XML file...what I want is to use XML as the datasource, but still maintain the normal Django-way of interactive with the resulting objects...from the docs, I can see that lxml.objectify is what I'm suppossed to use, but I don't know how to proceed after: list = objectify.parse('myfile.xml') ...

Select XML nodes by attribute in AS3

Trying to parse some XML (over which I have no control!) In C# I would do something like: XmlNodeList xnList = xml.SelectNodes("/Names/Name[@type='M']"); Can this be done in AS3? ...

Save generic images from XML nodes

I'm trying to update my records using XML...so far the first part of the task is done....what I'm wondering is how to get my images onto the saved object (I'm using imagekit for the image handling BTW). My models look like this: class Photo(ImageModel): name = models.CharField(max_length=100) original_image = models.ImageField(...

How to get element only elements with values Stax

I'm trying to get only elements that have text, ex xml : <root> <Item> <ItemID>4504216603</ItemID> <ListingDetails> <StartTime>10:00:10.000Z</StartTime> <EndTime>10:00:30.000Z</EndTime> <ViewItemURL>http://url&lt;/ViewItemURL&gt; .... </item> It should print ...

Import website XML-feed to SQL Server

Hi All, Hope you all are doing well. I need to import an XML-feed from a website to my SQL Server database. I don't know much about XML. The feed structure is an bit complex. Here is the sample of that file: <line_feed> <FeedTime>1279519582927</FeedTime> <lastContest>4103839</lastContest> <lastGame>58629754</lastGame> <events> <event...

Jquery failed parsing XML .

I am parsing youtube video feed in AIR app . Using jquery to parse it. $(feed).find("entry").each(function() { var tit = $(this).find('title'); alert(tit.text()); } It seems like after parsing category(category tag is closed a different way) it fails to parse rest of the doc.The above code successfully alerts t...

How to parse this chunk of XML in Actionscript 3

So i have this chunk of XML: <?xml version="1.0" encoding="UTF-8"?> <groups> <group> <image name="afp.jpg"/> <image name="agfa.jpg"/> <image name="americomp.jpg"/> </group> <group> <image name="canon.jpg"/> <image name="carestream.jpg"/> <image name="cmt.jpg" /> </group> ...

Load XML by SSIS - DTD is prohibited in this XML document error

Hi All, Hope you all are doing well. Previously I asked a question how to import a XML file to SQL Server thanks to all you responses. As my source file come with heavy amount of data, I am trying to load by SSIS. Below are the steps I followed: Imported XML by BulkLoad to a XML type column Created XSD Schema out of that XML file in...

Are there jQuery like selectors for XML parsing?

I need to parse xml and main element names varies and I only need few details form XML, what is very complicated. Are there any way to parse XML with jQuery like seletors? ...

Alternatives to expat for stream-oriented XML parsing in C++

Are there alternatives to expat for stream-oriented XML parsing in C++? The data that I am dealing with arrives over a TCP connection and there are multiple XML documents to deal with, which means I have to reset the XML parser every time there is a new document. The parser doesn't need to be standards-compliant; I'm interested in bein...

iphone xml parser as easy to use as the objective-c JSON framework

basically im looking for something that will just turn xml into an nsdictionary hierarchy. ...

Is it possible to use GoogleFinanceAPI on Android?

I've been searching around for a definitive answer but have yet to find one. It seems as though the simple answer is "no" because the GoogleAPIs use too many Java classes that aren't included in Android. If that's the case then I need to ask another question: what is the best way to parse information from "http://www.google.com/finance/...

XML Parsing failed

I have this in a XML doc. <userdata name='filter'>&SearchExpression[0].Key=Id&SearchExpression[0].Value=1&</userdata> The value is a query which will be added to an url. It keeps failing to parse. It says the document isn't well formatted. The parser is pointing at the bracket "[" Could the bracket causing the error ? How can I pa...

Android xml parsing

Hi, I need clear idea on Xml-Parsing in android ...

Will this XML parsing work?

public Envio(int id) { XDocument xml = XDocument.Parse(LoadFromService(id)); ID = xml.Element("envio") .Element("de").Value; De = xml.Element("envio") .Element("de").Value; Para = xml.Element("envio") .Element("para").Value; Fecha = xml.Element("envio") .Element("fech...

Is there a declarative way to parse XML to Java objects?

I'm writing an import function of XML files to my Java application. I am using XOM to parse the XML files. The code for parsing the XML is not easy to understand, it is some hardcoded .getChild(3) and so on. It is hard to follow the code compared to the declarative XML document. Isn't there a more maintainable way to parse XML documents...

Loading XML Files into VB.Net Structures

I have many, (15-20) different XML files that I need to load to VB.Net. They're designed as they would be in a database; they're designed in Access and bulk exported into XML files. Each file represents a different table in the database. Now, I need to load this information into VB.Net. Initially, I'd love to use DAO and access the M...

Where can I find a copy of the wddx.dtd?

I have a project that involves parsing wddx webservice responses. The DOM DocumentBuilder is throwing an exception that the XML is malformed as it does not reference a dtd. I inserted a DOCTYPE statement and now it is throwing an exception malformed - cannot find the protocol. I am quite certain it is my reference to the DTD and I now...

how does one remove <![CDATA[ ]]> tags from around text in XML using Hpricot?

i just want the text out of there with out those tags. Does Hrpicot.XML have any methods for this? ...

Blackberry development: how to get XMLReader SAXParser

I'm looking to port my working Android XML parser to Blackberry, but the latter's Java feature set isn't as rich? I didn't want to have to write two parsers. The following code yields "The method getXMLReader() is undefined for the type SAXParser": SAXParserFactory spf = SAXParserFactory.newInstance(); SAXParser sp = spf.newSAX...