xml

Combining values from 2 XML objects in PHP

Hi! ...well, actually I have an object which looks like this: object(AleParserXMLElement)#39 (4) { ["name:private"]=> string(6) "rowset" ["data:private"]=> object(SimpleXMLElement)#42 (2) { ["@attributes"]=> array(3) { ["name"]=> string(6) "skills" ["key"]=> string(6) "typeID" ["columns"]=> ...

Switching between indeterminate ProgressBar and Image in ViewSwitcher

I received the following error when attempting to switch between a ProgressBar and an Image using a viewSwitcher: 07-30 18:08:00.627: ERROR/AndroidRuntime(307): Caused by: java.lang.NullPointerException 07-30 18:08:00.627: ERROR/AndroidRuntime(307): at android.view.ViewGroup.addView(ViewGroup.java:1815) 07-30 18:08:00.627: ERROR/And...

passing parameters in xml

i'm trying to implement paging in xml using this code and got around to making it work. while it works perfectly, there is a small issue, that when i click on the NEXT button, it keeps reloading the page with the same initial records. it does not take the user to the next page. i came across this link wherein the poster had a similar ...

Pretty Print HTML in Ruby (or Shell)

Is there any way to pretty print an HTML or XML string from the command line on a mac? Trying to do this in Ruby. Any ideas? I've thought about XSLT, and about writing my own parser, but both of those are pretty involved. Looking for something already out there. ...

XML Linq Newbie Question

I'm working with a XML file that looks something like this: <lfm status="ok"> <user> <name>JohnnyWestlake</name> <image size="large">http://someurl.com/large.jpg&lt;/image&gt; <image size="extralarge">ttp://someurl.com/exlarge.jpg</image> ... </user> </lfm> And I'm adding this to a user class using ...

ASP.NET Webservice - how to include an XML SHA-1 HMAC signature?

I'm trying to include the extra security in web service calls/responses by including an XML Signature (SHA1-HMAC) in the result. I've read on msdn that it can work, but I haven't seen anything telling me how to implement it. Has anyone done this before? (and how have you done it?) ...

How should I select a XML "namespaced" node using org.w3c.dom.Node.getNamedItemNS(nsUri, name)?

This is the xml: <xml xmlns:log="http://sample.com"&gt; <test log:writer="someWriter" /> </xml> I am trying to get the attribute value of "log:writer" using the following line of code: currentNode.getAttributes().getNamedItemNS("log", "writer") I tried also to place the xmlns:log="http://sample.com" declaration on the "test" no...

empty namespace in inline xml literal - how to remove xmlns?

I am trying to use xml documents to store data for a movie database, but am having an issue, I am new to using xml for documents and have been using tutorials and MSDN to figure it out but I am stuck thanks in advance here is the code I am using Imports <"...\movies.xml"> Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e...

XML parser doubt for iphone

i am using same XML parser class to parse 3 class with same attributes name lke each class has name, id , rollno so is it good to parse them in 1 xmlparser only and do each time like this if ( [elementName isEqualToString:@"name"]) { [appDelegate.zone addObject:currentElementValue]; } for all? plz guide me how to parser 3 xml fo...

How to efficiently store bitsets on Android.

My application requires me to store sets of bits along with some accompanying metadata on the Android platform (read only for now). Now obviously I could just implement the Serializable interface, but I hear it's very slow on Android (I can imagine has to do something with the custom VM and compiler that makes such reflective features in...

jQuery UI Autocomplete code doesn't work w/ valid XML, any ideas why?

Using jQuery UI's "XML data parsed once" autocomplete. I've checked the feed and it comes out as valid and I even logged it with error() and I get OK 200 for the status and 4 for the readystate (the XML file can be seen below). http://www.finalfantasyunion.com/includes/xml/games.xml My jQuery code is: <script> $(document).ready(funct...

xml schema construct for elements to occur any number of times in any order.

i wanna write an xml schema that can accept some elements that can occur any number of times in any order. like following examples. it should satisfy all similar combination. lease help me and thanks in advance. Example 1 <root> <node1> one </node1> <node1> two </node1> <node2> three </node2> <node1> four </node1> ...

step by step xml parsing in iphone sdk along with its explanation, please.

Can somebody explain how to handle an xml file which is to be downloaded over the internet and to be displayed in an apps. please i am a newbie to iphone sdk and willing to learn the stuffs... somebody please help me. ...

web: extend highlighted text by dragging

I am creating a document tagging application, where the user can select arbitrary (continuous) ranges of text and tag them. After a range has been tagged, it will be highlighted. I want to allow the user to easily extend/shrink a tagged range, without having to remove it and recreate it. Maybe by having a small icon at the beginning an...

append encoding on creation of xml file

this code creates an xml file if it does not exist: $xmldoc = new DOMDocument(); if(file_exists('test.xml')){ $xmldoc->load('test.xml'); } else { $xmldoc->loadXML('<root/>'); } however, i would also like encoding="UTF-8" to be appended automatically on creation of the file. how would one do this in php? ...

trying to replace an element in flash swf file

Hello everyone ... i'm no flash developer, and i downloaded a flash template from this link. I was able to change almost everything i needed to except of 2 things: 1- There is the green "X" sign that appears in the gallery page, I would like to change it to my logo. 2- I would like to change one of the image gallery pages to a video g...

Unmarshalling xml to a bean with a colleciton

I'm working with Redmine's xml rest api. The service returns xml like in the example below. I'm using the Jersey Client API to communicate with the restful service. Mapping the plain fields (id, name and so on) in project are no problem, but I'm having trouble with the trackers list. <project> <id>2</id> <name>Project X</name> ...

Xml root node not closed

Hi, I'm using xmlwriter to create an xml document. The xml document looks like this: <?xml version="1.0" encoding="utf-8" ?> <ExceptionsList /> How can i prevent the /> and appropriately end the root node? Because of this, i can't append anything to the root node. My code for creating the xml file looks like this: string formatD...

Adding stylesheet to XML breaks formatting

I wanted to add a stylesheet to my xml file. But when I add the xml-stylesheet the whole formatting disappears, and I'm getting pure string of data. How to do it right ? <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/css" href="sitemap.css"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"&gt; {% spaceles...

Receiving XML postbacks

Hello, I'm a pretty seasoned PHP developer, and have integrated APIs before with platforms like PayPal and Authorize.Net after finding classes to work with... It's just that now I have to implement with limelight network's API and I have to start from scratch... Here's what I want to do after receiving a callback, posted to a PHP page I...