xml

Android getting XML values

Hello, I have the following XML code, which I got by a UPnP device and like to get the res value - the RTSP URL. In this case rtsp://10.42.0.103:554/live.sdp How can I do this? I heard that Android has some built-in support for reading XML. Is that true? <DIDL-Lite xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dc="http://...

Return an object after parsing xml with SAX

I have some large XML files to parse and have created an object class to contain my relevant data. Unfortunately, I am unsure how to return the object for later processing. Right now I pickle my data and moments later depickle the object for access. This seems wasteful, and there surely must be a way of grabbing my data without hittin...

XmlDocument.WriteTo truncates resultant file

Trying to serialize an XmlDocument to file. The XmlDocument is rather large; however, in the debugger I can see that the InnerXml property has all of the XML blob in it -- it's not truncated there. Here's the code that writes my XmlDocument object to file: // Write that string to a file. var fileStream = new FileStream("AdditionalData...

Integration framework for PHP

Please suggest some articles, implementations or other resources that deal with making generic customizable integration interfaces(csv,xml-rpc,soap,custom xml) for existing PHP applications. Thanks! ...

How to replace the Existing XSL tag in an XML file in C#( using any of Files/Streams/Regex/Strings)

Hi, While working for one of my tasks I have encountered this Problem. Problem: I have an XML file which contains an like this <?xml-stylesheet type="text/xsl" href="OldStyle.xsl"?> and I want to remove this tag and Replace it with a new like this: <?xml-stylesheet type="text/xsl" href="NewStyle.xsl"?> The replacement should be ...

How to parse XML string value using jQuery?

Hi All, I am new to jquery. I am trying to parse xml string using jquery. I have found one sample: $(function () { $.get('data.xml', function (d) { var data = ""; var startTag = "<table border='1' id='mainTable'><tbody><tr><td style=\"width: 120px\">Name</td><td style=\"width: 120px\">Link</td></tr>"; var en...

generating XML in rails

I created a controller having an action: def gen_books_xml @books = Book.find(:all, :conditions => {:owner_id => 1}) respond_to do |format| format.xml { render :xml => @books.to_xml(:root => "Books", :skip_types=>true) } end end How could I implement the to_xml method in the Book model sa that it can generate the following f...

XQuery vs XSLT for transfroming data

Which one of them do you use in your applications in order to transform XML data to other data types? WHY? ...

how to get xml html after transpose and databind()

Hi. I have some code that uses xsl and xml. The Xml control is on the design page. The xml control id is xmlApplication The xmlstring is generated and xsl has the format with all the tables and cells etc. Here is a part of thecode of a page which generates the final product which shows the xml in a certain format. xmlApplication.Docume...

Add namespaces with and without names to an XElement

Hey all I need so generate XML like the following: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt; <url> <loc>http://www.xyz.eu/&lt;/loc&gt; <lastmod>2010-01-20T10:56:47Z</lastmod> <c...

Deserializing different named xml nodes

Hi. Is there a way to convert different named xml nodes into one class when deserializing an XML Example XML: <items> <aaa>value</aaa> <bbb>value</bbb> </items> Normaly i would write: [XmlRoot("items")] class Items { [XmlElement("aaa")] public string aaa; [XmlElement("bbb")] public string bbb; } But now i...

Is there a methode to linarize a Document?

A webservice response with a message which is not linarized. This produces a problem, when trying to access a (as an example) the root element with getSOAPBody().getFirstChlid(). In a linarized document this call would return the first element inside the the body. If the message is not properly formated, you may get the the line break be...

Validate xml on Mono

Hello I have a .net application which I want to port to Mono. The application takes a xml file validates it and "executes" the xml. The validation part is not working on Mono. The xml is validating against XSD. XmlReaderSettings settings = new XmlReaderSettings(); settings.ValidationEventHandler += new System.Xml.Schema.ValidationEv...

create a configuration editor from xml using jquery

Hi All, is there any plugin can create a configuration editor (like about:config in Firefox) using jquery. I have a xml based configuration file, I want to load it, edit it and then save the changes again into the xml file. ...

How to get attribute value using SelectSingleNode?

I am parsing a xml document, I need find out the gid (an attribute) value (3810). Based on SelectSingleNode(). I found it is not easy to find the attribute name and it's value. Can I use this method or I must switch to other way. Attached my code. How can I use book obj to get the attribute value3810 for gid. Thank you. My test.xm...

Insert XML node before specific node using c#

This is my XML file <employee> <name ref="a1" type="xxx"></name> <name ref="a2" type="yyy"></name> <name ref="a3" type="zzz"></name> </employee> Using C#, I need to insert this node <name ref="b2" type="aaa"></name> between the "a2" and "a3" nodes. Any pointer how to sort this out? ...

does xml ignores (,) OR (-)??? (xml of flash object).

<SCENE> <xml_image>telcos.jpg</xml_image> <xml_bigtext>TELCOS</xml_bigtext> <xml_smalltext>New-Age Properties, Wifi Everywhere</xml_smalltext> <xml_align>right</xml_align> <xml_bigtextcolor>#ffffff</xml_bigtextcolor> <xml_bigtextshadow>#0000000</xml_bigtextshadow> <xml_bigtextcolor>#ffffff</xml_bigtextcolor> <xml_bigtextshadow>#0000000</...

Hudson XML error-- No module named dom.minidom

I am trying to send a simple XML file of the format given in http://wiki.hudson-ci.org/display/HUDSON/Monitoring+external+jobs . I was able to send it easily and was getting desired result!! Then I tried to build this XML file using python script and it was giving me the exact file that I wanted without any problem. But when I tried to r...

Flash AS3 - Display an error if the XML if incorrect

Hi, I'm creating a flash application which loads in some XML which is generated dynamically from the CMS. I want to display an error in case the XML file isn't formatted correctly. When I test this with incorrectly formatted XML, it will just get to the line myXML = XML(myLoader.data); and then just bomb out. How can I catch the error, d...

send XML generated from python to Hudson

we can send the result of a program to Hudson in XML format as shown here http://wiki.hudson-ci.org/display/HUDSON/Monitoring+external+jobs this works fine! now I tried writing a python script to generate an xml of similar format. it runs fine in python IDLE and gives the desired xml. the problem I am facing is, I don't understand how c...