xml

Objective-C XML Parsing

Hi, I'm using this code to parse XML in the instance variable response: @implementation Delegate - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { MKFacebook *fbConnection = [[MKFacebook facebookWithAPIKey:@"----" delegate:self] retain]; [fbConnection login]; NSMutableDictionary *parameters = [[[NSMutableDictio...

Getting fields from a list on Sharepoint page

I'm very new to Sharepoint, I have an aspx page on a Sharepoint site that shows a list of fields, including First Name, Last Name, etc. I'm have a console app, in Visual Studio, I'm using for testing communication and data transfer capability between between one web service and another; namely Sharepoint and another web service. My go...

Is it better to use pure DOM methods or string concatenation to generate a very dynamic xml file?

I basically have to query the database to grab all the active properties, then grab content under each property for sections such as accommodations/experiences, and based on that generate basically a site map. I'm wondering if I should go with using purely DOM methods ( would have me doing a hundred or so createElements, inside of loops...

how can I read the version from application descriptor file

So I have a basic application descriptor file for my AIR app. It looks something like this, shortened for sanity: <?xml version="1.0" encoding="utf-8" standalone="no"?> <application xmlns="http://ns.adobe.com/air/application/2.0"&gt; <version>1.0.10</version> </application> Now I want in the application to display the version, but I...

(Where) is there a W3C XML Schema for XHMTL 1.1?

There is an old W3C recommendation containing an XML schema for XHTML 1.0, and claiming that schemata for 1.1 will be forthcoming. I'm not having any success with Our Friend Google on this. Is it out there? ...

WSDL-Axis2 CodeGen Problem

Hello, I am having a problem sending a WS Request to a Server. It seems that the Namespace(NS) in one of the ComplexTypes of an operation types is causing an xsi:type to be spewed as part of the generated SOAP Request. Please see below for WSDL Sample: <xs:complexType name="SubscribeAppendantProductRequest"> <xs:complexContent> <xs:ex...

Is it possible to serialize a .NET object in XML without the type as the element root?

Suppose I have a collection in a class that I'd like to have serialized to XML: [Serializable] public class DriveReport : IXmlSerializable { public int Capacity { get; set; } public int FreeSpace { get; set; } public char DriveLetter { get; set; } //Assume that the appropriate IXMLSerializable methods are here, where //t...

XML Generation versus XML Database

Currently I'm using Hibernate to persist the entities within my app and I serve the entities back to my users in the form of XML. However this means that each time a resource is request I'm currently generating XML via Java which is ineffecent for a lot of reasons. I was wondering if I want to perhaps create a cache of Document objects w...

SOAP doesn't work

I trying to work with SOAP, but it doesn't work. I tried localhost and another server. For example: soap.xml: POST /InStock HTTP/1.1 Host: www.example.org Content-Type: application/soap+xml; charset=utf-8 Content-Length: nnn <?xml version="1.0"?> <soap:Envelope xmlns:soap="http://www.w3.org/2001/12/soap-envelope" soap:encodingStyle="ht...

Can't access sub nodes with XPath expression

Trying to figure out XPath and I have successfully create an XPathExpression that lets me grab the events, but any nested sub groups seem to be unavailable to the query, I can get all the children on the Events group, but the LocationName field I can not access. I am trying to figure out how to get the LocationName child into my query ...

What is the fastest way to convert a class to XML

I would like to know what is the fastest and most lightweight technique to convert a fairly large class to XML. The class will have lists and arrays in it. I need to convert all this data to XML Here is what my application does: it will get all the information from the database using linq to enties. Then store the data in a class. Then ...

Which is faster, libxml2 or Xpath?

So, when it comes to xml, is using libxml or xpath faster? ...

How to append XML file to another XML file

I'm trying to create an xml-based template system. The idea is to return my views as xml files (xhtml) and then append them to specific nodes in a template xml file. The template xml is then transformed with xslt. My question is: how do I insert these xml files into the template xml file? ...

XSLT Layouts With Dynamic Content Region

I'm working on rebuilding the UI portion of our website which is all heavily javascript/ajax based (for no good reason and in a fairly inefficient way) such that the backend will now do most of the content generation. It is a C# .net application. Almost all of our pages (which there are probably 40-50 pages) have the same basic layout. ...

Adding xml nodes at a specific point using xslt

Hi all: I have the following xml and want to insert additional xml into it: <root> <steps> <step name="step1" type="process"> <steps> <step name="substep1"> </step> </steps> </step> <step name="step2" type="process"> <steps> ...

Need Tutorials for Writing a Login API

Hey, I'm pretty new to PHP, but I've got a site up and running with a full login/registration script, etc... I have found ample tutorials on sending data via HttpRequest and getting XML or JSON data back--so I'm pretty comfortable with that. I can't seem to find any information or tutorials on how to write the script that handles tho...

custom UI for drop down

i am in process of making a custom UI for my app, have almost created XML based shapes for all the controls which is fine, but spinner seems to be the main problem, is their any example for making a new shape for spinner, which could be supported on 1.5 to 2.2, i know about a tutorial that tells for custom shape for spinner but that`s fo...

JSON + GPathResult

Could i parse JSON string as GPathResult ? Or something with similar interface... I just have some code which doing some work with XML and i want to add JSON support. But GPathResult is very specific class and slightly differs form JSONObject or JSONArray. ...

Selecting nodes possessing all/any values in list

I'm looking to take a delimited list of category IDs provided in one element... <Categories>851|849</Categories> <MatchType>any</MatchType> ...and use them to style other elements... <Page CategoryIds="848|849|850|851">Page 1</Page> <Page CategoryIds="849|850|">Page 2</Page> <Page CategoryIds="848|850|">Page 3</Page> <Page CategoryId...

Issue with reading a xml file

I'm having a problem with reading and processing a xml file, which I cannot solve right now. The xml has the following structure: <root> <test id="1"> <a></a> <b></b> <c></c> </test> <test id="2"> <a></a> <b></b> <c></c> </test> <test id="3"> <a></a> <b></b> <c></c> </test> </root> XmlD...