xml

Strategy for normalizing multiple SOAP responses

I'm basically trying to merge multiple SOAP responses because the web service only supports one room lookup at a time instead of multiple as far as I know - its the CheckAvailability method and using this WSDL If I supply my credentials, arrival/departure dates in my SOAP request I get the following data back, which is mainly comprom...

XML and SQLite memory utilization and performance on the iPhone

How do the memory utilization and performance for XML or SQLite compare on the iPhone? The initial data set for our application is 500 records with no more than 750 characters each. How well would XML compare with SQLite for accessing say record 397 without going through the first 396? I know SQLite3 would have a better methods for tha...

XML Deserialization

Hello Guys, I have tried to use the xsd.exe tool to generate a class for the following Oracle-generated xml sample but always fail to get it right when I try to change oracle xml elements names to the class's names, specifically I'm not sure how to do it for the ROWSET and ROW part of it. Being very new to the serialization/deseria...

SSAX-SXML and numbers

I'm using SSAX-SXML for working with a tree structure that just mimics the XML data encoding. So I thought of using the SXML representation directly as the data structure to work with. Everything works very well, and I get all the functionality of default accessors and XPath, which I found very useful. But I have a problem. XML represen...

XML in Classic ASP Vbscript

I am back to asp with XML manupulation. Initial file: <?xml version="1.0" ?> <root> <sport/> </root> this is my function Public Function DefinitFunction( x,z) Dim text Dim Root Dim NodeList text = "<Definition>" ---<x> </x> <z> </z> --</Definition> " text = text & "<x><![CDATA["&x&"]]> </x>" text = text & "<z> </z...

Parsing complex multiple XML attributes in PHP5

Hi guys first post on this site so excuse the formatting. I'm new to xml parsing with php and well this xml feed has me stumped. I get using purely element based formats, but attributes this complex not so much. I tried to get the site to change to easier element based format but they're sticking with this format using attributes and I'...

XML literals in JavaScript?

E4X (Ecma-357) is an extension to ECMAScript that adds XML literals as first-class primitives. That's awesome, but with only Mozilla and Adobe support (without V8 and IE support too), E4X is virtually dead from a web developer's perspective that has to support users with any modern browser. What other work is being done around implemen...

How can I convert a java.util.Date object to the restricted form of the canonical representation of dateTime

I need to convert a java.util.Date variable to a representation similar to the one below. 1995-12-31T23:59:59.999Z The format for this date field is of the form 1995-12-31T23:59:59Z, and is a more restricted form of the canonical representation of dateTime http://www.w3.org/TR/xmlschema-2/#dateTime The trailing "Z" designates UTC t...

Storing XML in a Database for Flexible Content

I'm working on building a system that aggregates content from several different RSS feeds and API's, stores it, and then outputs it with unique formatting based on the source of the content. My current plan is to create an XML structure for each unique type, storing each record using that structure in a MySQL database, and then retrievi...

Manually editing BizTalk wcf-adapter schema

I am new to generating schemas in the way I am doing it now (Manually) and sort of need some help here please. I have a schema, as below, that I am not sure is even correct. What I want is a Customer record that can contain more than one Address record. What I have below does not seem correct, or is it? I am referring in particular to wh...

Setting XML nested nodes from C# with XElement

I'm modifying some legacy code and need to parse/write to XML with C#. I'm trying to set the value of a nested element but am not getting any joy. It should be very simple but I'm not sure what I'm doing wrong. Here is the XML template: <my:productReport> <my:productId>1</my:productId> <my:company>MyCompany</my:company> <m...

Read xml file from client

I'm trying to read a xml file from client. After search for it. I have got to upload the file to the server with this code. var imagesFilter:FileFilter = new FileFilter("*.jpg,*.gif,*.png", "*.jpg;*.gif;*.png;*.jpeg"); fileRef.browse([imagesFilter]); But what I want to do is to read the file from client and parse it without uploading ...

Change the XML Serializer's element name of an array element

I have a class which is generated from an XML file via the XSD.exe tool. The class I have contains an array with elements. Until recently, rendering the whole document from a fully instantiated business object was possible, however due to the size, we now need to render the documents array elements to a stream so that we don't run out ...

Fix malformed XML in PHP before processing using DOMDocument functions.

I'm needing to load an XML document into PHP that comes from an external source. The XML does not declare it's encoding and contains illegal characters like &. If I try to load the XML document directly in the browser I get errors like "An invalid character was found in text content" also when loading the file in PHP I get lots of warnin...

Which of these data formats requires the least bandwidth?

What from xml, json, rss, atom format will generate less traffic? ...

DOMDocument::loadXML vs. HTML Entities

I currently have a problem reading in XHTML as the XML parser doesn't recognise HTML character entities so: <?php $text = <<<EOF <?xml version="1.0" encoding="utf-8" standalone="no"?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <title>Entities are Causing Me Problems</title> </head> <body> <p>Copy...

Grab, cache and parse remote XML feed, validation checks in PHP

Currently, I'm grabbing a remote site's XML feed and saving a local copy on my server to be parsed in PHP. Problem is how do I go about adding some checks in PHP to see if the feed.xml file is valid and if so use feed.xml. And if invalid with errors (of which sometimes the remote XML feed somes display blank feed.xml), serve a backup...

Any XML binding frameworks for Objective-C ?

Is there any XML binding framework for Objective-C? I've tried a few searches on google and didn't find anything yet. I'm looking for something that reads from a XSD/DTD/XML and generate: the Model classes to store values the actual parser that reads from the XML and populate the model classes ...

How can I get the text between tags using python SAX parser ?

What I need is just get the text of the corresponding tag and persist it into database. Since the xml file is big (4.5GB) I'm using sax. I used the characters method to get the text and put it in a dictionary. However when I'm printing the text at the endElement method I'm getting a new line instead of the text. Here is my code: def ch...

Is there a shorter way to parse attributes as Int (or any other primitive) in LinqToSql

I was basically wondering if it is possible to optimize this code: AmountComments = Int32.Parse(r.Attribute("AmountComments").Value) Ideally I would want to write something like AmountComments = r.Attribute("AmountComments") r would be a xml tag of type XElement, which is selected before in a Linq query. ...