xml

SimpleXml to string

Is there any function that makes string from PHP simpleXMLElement? ...

How to use IF ELSE condition with XML by php?

Hello guys. I trying to make Blogspot.com like XML template engine with php. And I'm newbie in XML. How could make php script that read this type of XML and print out something to user's browser? I want to use too many free blogspot templates. Thank you. .... <b:if cond='data:blog.con0'> blablabla1 <b:if cond='data:b...

Android - Pull Parser

Hello all, i am having one xml file and i want to parse it to get Student-ids and student-names only. <students> <student> <id type="integer">101</id> <name>James</name> <degree> <id type="integer">1978271</id> <name>SCJP</name> </degree> </student> <s...

What are the advantages of creating web pages with XML instead of HTML?

Hi Everyone, From time to time, I see web pages whose content is solely written in XML (not HTML or XHTML). These pages usually have some style sheets (either XSLT or CSS) attached to them which makes them look like any other ordinary web page. My question is, what are the advantages of such an approach (if any), and why would anyone...

how can i get the value of array

Hi, i want to get all the values on "ListNumber", how can i loop it using php? thanks in advance :) [ListNumbersList] => SimpleXMLElement Object ( [Record] => SimpleXMLElement Object ( [Returned] => 1 ) [ListNumber] => Array ( [0] => 1 ...

iso-8859-1 to utf-8 in c#

hi, Is there a way to transform a xml file which is iso-8859-1 to utf-8 ? ...

automatic utf-8 encodeing in node.js http client

Hi there i am trying to load an XML from a remote host useing node.js. The problem is that german "umlaute" like "ä" are broken. Like in the browser this usualy is a simple encoding problem. But since the XML on the remote host is encoded in iso-8859-2" i had no success getting the letters back to work. The functionality is very simple...

id() in XPATH with .NET

I'm trying to query XML through XPATH but is having problem getting id() to work. I would like to get all the authors for a book, specifying the book ID. Here's the XML. <?xml version="1.0" encoding="utf-8" ?> <bookstore xmlns="http://litemedia.se/BookStore.xsd"&gt; <book id="ISBN9789170375033"> <title>I väntan på talibanerna</ti...

Design Pattern for XML Based Project Files in C#

I am developing a C# application where the majority of the code base is in C# class libraries. I want the application to support saving and loading of XML based project files and be able to determine if any modifications have occurred since the last save. My current design idea is: Each class that needs to store settings implements IX...

Parsing Xml with A tag that contains multiple attributes [Java,DOM]

I use DOM parser to mine the data.Problem is that i cannot manage to get the "url=" "length" and "type" tag that is inside the "enclosure" tag <item> <title>blah blah</title> <description>blah blah</description> <enclosure url="THEURL" length="LENGTH" type="TYPE" /> </item> Here's the code that i use : Can anyone po...

Defining an XML format for a 2D array (Grid) of items

I need to define an XML format and then read it in ActionScript3, which will be storing: the number of rows and columns in a grid the horizontal and vertical spacing in pixels the size of each square in the grid in pixels an optional label for each square in the grid an optional hyperlink for each square in the grid The following is ...

Image Sent via XML from iPhone to App Engine

I am trying to send a small image along with some XML information to App Engine from my iPhone app. I am having trouble with the image somewhere along the path. There is no error given and data is being transfered into a Blob entry in Datastore Viewer but the blob files on App Engine do not appear in Blob Viewer. I have a suspicion t...

trouble parsing deeply nested attributes using LINQ to XML

I have been trying to parse this xml in c# <schema uri=http://blah.com/schema > <itemGroups> <itemGroup description="itemGroup1 label="itemGroup1"> <items> <item description="The best" itemId="1" label="Nutella"/> <item description="The worst" itemId="2" label="Vegemite"/> </items> </itemGroup...

XML in eclipse not updating?

I'm using eclipse helios to design a simple android application, however I'm having issues with tidying up the user interface by editing the XML after writing the rest of the application. However none of the edits to the XML file (I've checked it's the right one) are showing when I send the application to the onscreen emulator. For ex...

Naming XML Tags

This is not a technical question. More of a standardizing thing. I have a bunch of business objects that I need to serialize to XML. In its simplest form, I got object X holding objects of type Y. Y is extended to Y1, Y2, Y3. My question is, should I go with: <X> <Y> <Y1 /> <Y2 /> <Y1 /> <Y3 /> </Y> </X> or: <X> ...

problem with values in php - begginer

Hi! when the row['error'] is bigger than 35, the value isn't present and the result of the function is 0. can you pls tell me where is the problem? <?php if($row['error'] == "") { $error="0"; } else { $error=$row['error']; } if($row['error'] != "") { if(strlen($error) > 35) { $error = substr($row['error'],0,32...

missing lines because <br> in xml

Hi! i have a xml like this: <cont><?php echo nl2br($cont); ?></cont> the response is: <cont> 2<br/> 3<br/> 4<br/> </cont> in the page the code is: mainParentElement = document.getElementById('div_cont'); RemoveAllChildElements(mainParentElement); mainParentElement.innerHTML = "<div class=\'div_cont\'>" + xmlDoc.getElementsByTagNa...

XML/XSLT/Access/VBA: how can i merge all child elements (even unknown elements) into one, before importing to Access database?

CURRENT XML: <?xml version="1.0"?> <form1> <page1> <first_name></first_name> <last_name></last_name> . . </page1> <page2> <address></address> <phone_number></phone_number> . . </page2> <page3> <company_name></company_name> <job_title></job_title> . ....

LINQ to XML: What is the most effective way to move nodes up and down

I need to move sibling nodes before and after certain nodes. Here is the code im working with <tabs> <tab> <name>Overview</name> </tab> <tab> <name>Testing</name> </tab> <tab> <name>Performance</name> </tab> <tab> <name>Braking</name> </tab> </tabs> I woul...

Android layout not showing properly

Hi everyone. I'm writing an android app, and in it I want to have a sort of title bar, with the name of the game, the score, and things like that. Then below that I want to have an grid of image views, which will kind of be like tiles on which I can display different characters in my game. I have the following xml layout, but when I ru...