xml

get XML content at node in Objective C

Using Objective C - I want to loop through an XML tree and display the full XML content at each instance of a specific node matching with a particular element name. As an example - I am looking to get the XML (represented as an NSString) within each instance of element b. I can get the value if there is only a string in element b, but ...

How to get value of attribute inside an element

I want to get an attribute from another element. E.g. <xsl:template match="tag1"> Test: <xsl:value-of select="inner[@class='test']@name"/> </xsl:template> XML: <xml> <tag1> <inner class="something" name="123"/> <inner class="test" name="456"/> </tag1> </xml> So what I'm expecting is to get Test: 456 Obviously the ...

Problem with CURL fetch function

I've created a php script that will allow the removal of user properties. The script first finds all properties associated with a user and then loops to remove all of them. When I run this for a certain user, it gets down to the foreach loop and it prints out all the the properties ($name2) but it seems to get stuck on the curl_fetch...

java xml validation: getting a better validation error description

I am using javax.xml.validation.Validator from SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI) to perform XSD validation. I would like to be able to get a better error message back for validation errors. All I currently get is: org.xml.sax.SAXParseException: cvc-minLength-valid: Value '' with length = '0' is not facet-vali...

PHP Authentication not working working on other server?

Hi All, I have this authentication code to parse XML from a site. Got this here - http://stackoverflow.com/questions/3765046/bypass-authenticated-xml-page-to-be-parsed-with-php My problem is that the same authentication code this not work on a server below. It works on my local env and other servers. Please see sample links below an...

iphoneSDK and NSXMLParser problem

So have an XML file it parses perfectly fine up until I get a to an element that has weird tag inside of it. The xml file looks a little like this. <xml> <badtag><![CDATA[ This is the text that i want ]]> </badtag> </xml> For some reason when it comes in contact with "that*" tag the app goes hay wire. The next view loads however i...

Groovy in SOAPUI , Parsing of xml using xmlSlurper()

I want to Parse the xml by using the XmlSlurper() method In Groovy using SOAPUI. I need to display each text inside the tags and update it different values in the next request please provide the coding snippet to do so... ...

PHP DOM createElement - allow spaces

Hi, How to use spaces in createElement while creating xml file I have to use $main = $doc->createElement("$cname"."Data" ); where $cname="Company Name" But due to spaces in $cname, I am getting the following error, Fatal error: Uncaught exception 'DOMException' with message 'Invalid Character Error' in file.php:50 Stack...

Dedicated Server / Servers Recommendation

Hello guys, I'm working on project based on Affiliate Product Data Feeds, I need to parse a lot of XML files sometimes their size is up to 300MB. I develop with PHP and Mysql. Please what you recommend for me. is a dedicated server with 4Gb Ram can support large XML files parsing? ...

Getting all tinymce content in post method

I have a xml file with data <ul> <li><info>CSS text formatting </info></li> <li><info>Text loaded from a XML</info></li> <li><info>Scrolls with easing</info></li> </ul> For editing the content i have used tinymce editor.For editing i am parsing the xml file and putit in a textarea that is for timymce edtor.In the editor i am get...

Generating XML document in PHP (escape characters)

I'm generating XML document from PHP script and I need to escape the XML special characters... I know the list of characters that should be escaped, but what is the correct way to do it? Should the characters be escaped just with backslash (\') or what is the proper way? Is there any builtin function in PHP that can handle this for me? ...

I cannot select <title> tag in Atom XML using jQuery.

I get a Google Picasa web albums' atom data through Ajax using jQuery. This atom data looks like this: http://code.google.com/apis/picasaweb/docs/2.0/developers_guide_protocol.html#ListAlbums When I write $(xhr).find('entry id').eq(0).html(); it is OK. But $(xhr).find('entry title').eq(0).html(); does not select The <title> ta...

Can iPhone communicate with JMS?

Hi, Just wondering if someone knows how to send/receive XML messages between iPhone & Java Message Service. Regards ...

what's the best way to parse xml response in AJAX

Hi, I have a server that response the request with XML, I want to parse it in the javascript. I really like the actionscript xml parser that is really easy for me to use. I am wandering is there a very easy/straightforward way to parse the XML I fetched from server? The ideal usage should be: fetchXML new XMLParser. parser.parse access...

Deserialize custom SOAP/XML to objects

Hello, i have this xml/soap from a sharepoint webservice call: <GetAllUserCollectionFromWeb xmlns="http://schemas.microsoft.com/sharepoint/soap/directory/"&gt; <Users> <User ID="ID" Sid="ID" Name="XXX" LoginName="XXX" Email="XXX" Notes="" IsSiteAdmin="False" IsDomainGroup="False" Flags="0" /> <User ID="ID" Sid="ID" Name="XXX" ...

How do I choose parent node attribute and its child values using XML and Xquery?

I have this: <pss> <ps n="А parent node" m="654564654" t="435,8551" a="2857,2716"> <sc s="a1" a="25,4220"/> <sc s="a2" a="0"/> <sc s="a3" a="2395,9945"/> </ps> ... </pss> I need to select "А parent node m attribute and a1-a2 a values in one query. i tried this but it doesnt work: SELECT ps.value('@m', 'nvarchar(50)...

How to output HTML file from XML and XSLT stylesheet

Hi, I've created a XML data document and an XSLT stylesheet, and I want to output an HTML document based on the two. My stylesheet has the tag, and my XML document has the processor instuction (along with various "xsl:value-of" references). My question is, what are the actual "mechanics" of getting the XSLT processor (which, I understa...

Is there an equivalent to setShadowLayer when defining shapes in XML in Android?

If I draw a round rect shape by code I can use setShadowLayer to get a shadow drawn for the shape. Is there an equivalent when defining shapes in XML? The following example draws a round rect background to a shape. What would I need to add to get a shadow added to the shape? Is it even possible using XML? shape_test.xml <?xml version=...

Converting a string as a nodelist in xsl

I currently have a string (XSLT 1.0) which I'd like to turn into a NodeList so that it can be used the following example. ($testString represents an element in a XML tree) <xsl:apply-templates select="$testString"> <xsl:template match="$testString"> I have tried using the following but neither seem to work <xsl:apply-templates sele...

Basic Python file searching and I/O

Hello, I'm trying to complete a simple task in Python and I'm new to the language (I'm C++). I hope someone might be able to point me in the right direction. Problem: I have an XML file (12mb) full of data and within the file there are start tags 'xmltag' and end tags '/xmltag' that represent the start and end of the data sections I w...