Hey guys,
I'm using Nokogiri to parse a return from the Rackspace API
so I'm using their sample code to
response = server.get '/customers/'[email protected]_id.to_s+'/domains/', server.xml_format
doc = Nokogiri::XML::parse response.body
puts "xpath values"
doc.xpath("//name").each do |node|
puts
node.text
end
As...
Is there any free API/xml feed to check flight status?
For example, flight number, date to track flight, expected time, delayed, canceled, and other details.
...
Hi guys,
I have a program that requires well formed XML for input. As such, we have an XML schema to enforce constraints. To make it easier for users to enter data we have used InfoPath to generate a form based on the XSD. Now we have two issues.
The XML produced by InfoPath is not really user readable. The formatting is a bit rand...
Hi.
I am using following code in preferences page in android to show a list of items. The list and values are located in a file at location "app/res/xml/time.xml"
<ListPreference
android:title="Time unit list"
android:summary="Select the time unit"
android:dependency="Main_Option"
android:ke...
I'm trying to use jaxb and want to use the 'XmlAccessType.PROPERTY'
to let jaxb use getters/setters rather than variable directly, but get
different errors depending on what I try, or the variable
isn't set at all like I want.
Any good link or pointer to a simple example?
For example, the below makes the groupDefintion not
to be set w...
I added a mini xpath processor into my JavaME codes.
I get this error: package org.kxml2.kdom does not exist
How do I fix this?
Hope someone could help me on this. Thank you in advance.
...
hello all
how we could create a container for Zend_Navigation instead of xml file use of database table?
thanks
...
can any one please let me know the main difference between <pubDate> and <dc:date> in feed's structure. also please explain
<dc:date>
<dc:creator>
<dc:....>
<dc:....>
will those be required for building feeds?
...
Hi,
I am trying to read enum from a XSD file. The schema is as follows
<xs:schema id="v1.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" attributeFormDefault="unqualified" elementFormDefault="qualified" msdata:IsDataSet="true">
<xs:simpleType name="Type">
<xs:restriction bas...
XML spec defines a subset of Unicode characters which are allowed in XML documents:
http://www.w3.org/TR/REC-xml/#charsets.
How do I filter out these characters from a String in Java?
simple test case:
Assert.equals("", filterIllegalXML(""+Character.valueOf((char) 2)))
...
I am working on a project that pulls data from JMS queue using PHP and Zend Framework. The HTTP client response is below. All I need is the XML string.
I came up with /(.*)<\/RequestDetails>/gs which tests ok on http://gskinner.com/RegExr/ but the preg_match call is returning an empty matches array.
I'm going to continue to hunt ar...
Can any one please let me know, why some times the RSS feed’s publish dates <pubDate> is not match with it's feed view and source view
...
Hi, i have the following function i wrote to create an XML file using Xerces 3.0.1, if i call this function with a filePath of "foo.xml" or "../foo.xml" it works great, but if i pass in "c:/foo.xml" then i get an exception on this line
XMLFormatTarget *formatTarget = new LocalFileFormatTarget(targetPath);
can someone explain why my co...
Hello Everyone,
I'm very new to xml so I hope I'm not asking any silly question here. I'm currently working on populating a treeview from an XML file that is not hierarchically structured. In the xml file that I was given the child and parent nodes are defined within the attributes of the item element. How would I be able to utilize the...
I have a url that returns XML coordinates in the below format. I want to put a Google map on my page and feed it these push pin coordinates. Is there a nice and quick way to do this via Javascript or jQuery?
<messageList>
<totalCount>1</totalCount>
−
<message>
<esn>0-7396996</esn>
<esnName>JOHN</esnName>
<messageType>TEST</messageType>
...
Hey all i am new to XML parsing on VB.net. This is the code i am using to parse an XML file i have:
Dim output As StringBuilder = New StringBuilder()
Dim xmlString As String = _
"<ip_list>" & _
"<ip>" & _
"<ip>192.168.1.1</ip>" & _
"<ping>9 ms</ping>" & _
"<hostname>N/A</hostname>" & _
...
I have long XML strings that I'm hard-coding into an iPhone project's unit tests.
It's pretty ugly having to escape all the quotes and line breaks -- for example:
NSString *xml =
@"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\
<root>\
<element name=\"foo\" />\
</root>";
It would be really nice to have a lower-friction way to do th...
Hi everyone,
My request is quite specific so I will do my best to explain it properly. If you have any questions please ask!
Basically I have built a web page that reads an English XML file and displays its contents on the left of the page as text, divided up by each C-DATA tag it finds. It also then loads the equivalent translated v...
I am a little new to this, but I need to convert the below XML to KML format so I can feed it into Google maps. Can anyone help with this?
<messageList>
<totalCount>1</totalCount>
−
<message>
<esn>0-7396996</esn>
<esnName>JOHN</esnName>
<messageType>TEST</messageType>
<messageDetail> ALL IS WELL AT CURRENT LOCATION.</messageDetail>
<tim...
hi everybody,
I've a form with some radio button like this:
<input type="radio" name="leva" value="a"><input type="radio" name="leva" value="b">
with ajax post method I receive value of the radio.
The question is how can I set correct radio value to checked?
thanks in advance
ciao
h.
...