xml

Not finding elements using getElementsByTagName() using DomDocument

I'm trying to loop through multiple <LineItemInfo> products contained within a <LineItems> within XML I'm parsing to pull product Ids out and send emails and do other actions for each product. The problem is that it's not returning anything. I've verified that the XML data is valid and it does contain the necessary components. $itemLi...

Can an XML Schema defined tag have different constraints based on data type?

I'm working on a custom XML format that involves a formatted list of points. We would like to support multiple types of coordinates systems, such as Cartesian and Spherical. Can this be done? Example: <point type="cartesian"> <c1>5.0</c1> <c2>5.6</c2> <c3>9.1</c3> </point> <point type="spherical"> <c1>5.0</c1> <c2>5.6</c2> <c3>9.1</c3>...

Parsing XML without attribute and display it in UITableView in iPhone Programming

Hello all, I'm newbie in iPhone Application Programming. I can't get value from XML file and display it in UITableView. I need to get the name value of animal. How is the simple way to parse XML without attribute? I've been read NSXMLParser Documentation but the data is not displayed in my UITableView. Here is my XML file : <?xml versio...

Appending an XElement to an xml file without saving the whole file. C#

Hi, Is it possible in C# is append an XElement to an already existing xml file, without saving the whole xml, but just the new element? So i don't want something like this, since it will write the whole xml to disk. XDocument document = new XDocument(); document.Load("filename"); document.Root.add(new XElement("name", "content")); doc...

Simple XML reading question (PHP)

Hello, I have the following XML file: <?xml version="1.0" encoding="utf-8"?> <SearchResults:searchresults xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.zillow.com/static/xsd/SearchResults.xsd /vstatic/279989c5e93d519f8d8f23d3f6cac661/static/xsd/SearchResults.xsd" xmlns:SearchResults="http://www...

Java Dom question

Actually I have an XML document. I would like to print the children of the root element of the document using a utility in org.w3c.Dom without printing the document headers. So I need a utility in org.w3c.Dom to print a Node only. any help please ? ...

Setting an NSURL with %@ making value equal to %@ instead of inserting %@

Hi, I'm using ASIHTTP and trying to perform a GET request for a site: NSURL *url = [[NSURL URLWithString:@"/verifyuser.aspx?user=%@" relativeToURL:@"http://domain.com"],userName retain]; ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url]; [request setTemporaryFileDownloadPath:@"myfile2.txt"]; [request setDownloadDesti...

AS3: Merging XML Files

There are a number of posts on here about merging XML with Java, but I can't seem to find any reference to Actionscript for the same task. I have a group of XML files that I need to load. I want them to sort into one XML Object in memory. For example, let's say these were my XML files: File 1 <xml> <type name="1" group="a"> ...

XPath for XML with namespace

Hi, I have an xml with various namespaces that i would like to query using .SelectNodes(string xPath) The problem that i notice is that the xPath query return nothing as long as i have all those namespaces around. is there anyway to tell XmlDocument.SelectNodes to ignore those namespaces and just get me the correct elements (the ele...

How to get the name and value of attributes from xml when using libxml2 sax parser?

I got stuck on trying to detect the pair of name and value of the attributes in some general xmls by using libxml2 for parsing the api on iPhone application. For my project, the parsing speed is really important, so I decided to use libxml2 itself instead of using NSXMLParser. Now, as referring to XMLPerformance that is a sample of iPho...

Web services on iPhone

Which is better to parse JSON/XML on iPhone, so that i can interact with web apps. Also which is the fastest and most efficient parser out there ...

Best .net Method to create an XML Doc

I am trying to figure out what the best method is for writing an XML Document. Below is a simple example of what I am trying to create off of data I am pulling from our ERP system. I have read about XMLWriter, but thought I would see if there are any other better methods. Any suggestions would be greatly appreciated. Example XML: <?x...

iPhone + sending data from iPhone to server as XML format

Hello, I am developing one iPhone application where I need to send some data (in XML format) from iPhone to server, on the server side I will parse that XML and get data for each XML node and than use them as per my requirement. My question is: How will I form the XML file on iPhone? How will I send that XML file to server? Which m...

Search XML doc with LINQ

Hi Guys/gals I have an xml doc similar to this: <Root> <MainItem ID="1"> <SubItem></SubItem> <SubItem></SubItem> <SubItem></SubItem> </MainItem> <MainItem ID="2"> <SubItem></SubItem> <SubItem></SubItem> <SubItem></SubItem> </MainItem> ... </Root> I want to return t...

error when passing rss feed to php domDocument object

Hello, can anyone possibly point me in the right direction I am using curl to get back a google picasa api feed. This all works well, with the autorisation and the fetching of the data, but now I want to expand a little bit in try'n to add,update tags,pics, geo-info from my site. How can I pass the feed I got back with curl to the dom...

Search XML files with xalan in Java

Hello, I need to write a java application that does a keyword search within the tags and the actual data from many xml files. From my research online I get the feeling i have to use xalan, but I can't figure out how to use it or what it does. Could somebody point me in the right direction? Thanks ...

Eclipse ClassCastException when trying to expand XML layout for Android

I am new to java, eclipse, and android development, so I may be missing something simple although I have checked basic stuff like spelling several times. Because there is no number picker control (such as that used in the date picker) in the public Android SDK, the conventional wisdom is to "clone and own" the control that exists in the...

Need help stopping MSXML from adding namespaces

I am using MSXML 4 to generate the following xml string: <?xml version="1.0"> <Parent_Element xmlns="http://1"&gt; <Child_One> <Child_Two xmlns="http://2"&gt; <Child_Three> </Child_Three> </Child_Two> </Child_One> </Parent> However the output from my IXMLDOMDocument2Ptr always includes a...

How can I access XML elements and attributes?

I have an XML document below: <wave waveID="1"> <well wellID="1" wellName="A1"> <oneDataSet> <rawData>0.1123975676</rawData> </oneDataSet> </well> ... more wellID's and rawData continues here... In general terms, what's the best way to read the rawData, should I grab the node containing the well waveID...

Get maximum amount of recurrences from XML using LINQ

I have an xml file containing basic information about products, with the following structure: - products - Id - Price - ManufacturerId And another one, containing data about manufacturers: - manufacturers - Id - Name I'd like to get the top 3 manufacturers with the most products (manufacturer name and number of ...