xml

Parse youtube playlist on iphone sdk/ iOS

Since Days i'm trying to parse a YOUTUBE-XML-Feed by using GDATA-API for iOS. http://code.google.com/intl/de-DE/apis/youtube/2.0/developers_guide_protocol_channel_search.html NSDictionary *namespaces = [NSDictionary dictionaryWithObjectsAndKeys: @"http://www.w3.org/2005/Atom", @"", @"http://schemas.google.com/g/2005"...

Centering Text In A TextView

Hello Everyone. I have a TextView that has text Dynamically Added to it. My problem is that when I use gravity for the centering the text, it doesn't move because the width is set to "wrap_content". What should I do to resolve this issue? ...

XML Serialization - Efficient?

Hey everybody. I'm creating a catalog app where users add/download information on cars. This could result in hundreds, possibly thousands, of cars and their data (make, model, year, image etc...). Seeing as WP7 no database, I'm using XML. My question is, would it be efficient to store every object in a list, then serialize that entire li...

Java XML transformation interface

I need to transform a XML. Usually I would use Saxon and a XSLT 2.0 stylehsheet for this. The transformations I have to do involve side-effects and are stateful and manipulate the contens of nodes, so implementing a XPath function doesn't make that much sense. I decided to implement a transformer class for this purpose. I found javax.xm...

Help with XML parsing in Python

I have a XML file which contains 100s of documents inside . Each block looks like this: <DOC> <DOCNO> FR940104-2-00001 </DOCNO> <PARENT> FR940104-2-00001 </PARENT> <TEXT> <!-- PJG FTAG 4703 --> <!-- PJG STAG 4703 --> <!-- PJG ITAG l=90 g=1 f=1 --> <!-- PJG /ITAG --> <!-- PJG ITAG l=90 g=1 f=4 --> Federal Register <!-- PJG /ITAG --...

USE of XAML not related to WPF or silvelight

Hi, I am trying to understand the use of XAML instead using it as markup in creating WPF and silverlight applications. Where else could i use XAML. Please provider all the possible uses of XAML. Could XAML be used as regular XML to provider mapping and related stuff? Please provider some links where i could learn about XAML. Thanks...

SOAP XML read variable from file

I need my SOAP XML script to read variable from a csv file, line by line and send request to end-point for each variable.In the case below, values for "tel" are in a file called "telnumbers.txt". <soapenv:Header/> <soapenv:Body> <usa:companyID> <employeeID>accounts</employeeID> <tel>1412341745</tel> <...

How to repair malformed XML?

What is best practice to repair malformed XML files with PHP? For example CDATA part contains illegal chars. With regular expressions? Or execute some Linux command line tools? ...

Alternatives to using XML and XSL?

Ok guys, I'm creating a web app thats heavy on data getting pulled from a DB and put in the DB. XML is nice for this but XSL just seems bulky and hard to maintain. Are there any other technologies out there that would be ideal for this situation with the more long term goal of being able to add new features to the web app? Thanks in ...

Strongly-typed XML native database with XSD support

I am looking for a Java-based implementation of an XML native database, which exploits XML schema to provide strongly typed operations and checks over the stored data. Does anyone is aware of such a database? ...

PHP / Wordpress - Loading a remote XML file

Hi How can a get a object variable from a remote XML file, for example this one ? In PHP5 it works fine with simplexml_load_file(), but I need this to work in PHP 4 also. How can I do that? Or is there any built-in WordPress function that can load xml files? I tried using the WP's SimplePie class, but I get a weird object variable (wit...

Windows app to get XML data from a website containing XML data

I am trying to come up with a windows form application (or WPF) developed in C#.The requirement for my app is to get user search related xml node data from a website containing xml. The application would connect to a website containing xml and grab relevant xml nodes from the website. I would then display the xml node data on my windows ...

Design in Android, Shapes

I wounder how its possible to make a shape like the example, with round corners and padding from the screen borders, and also put text inside, how is this possible? ...

adding select-attribute using the "attribute"-tag in xslt not working

How come this does not work: <xsl:with-param name="message"> <xsl:attribute name="select"> <xsl:text>'Alla koder kopplade till den e-post-adressen är nu skickade till dig!'</xsl:text> </xsl:attribute> </xsl:with-param> ...

Multiple channels in a single RSS xml - is it ever appropriate?

A typical xml file for an RSS feed starts with an "rss" element on the outermost level, and usually has a single "channel" element within it that represents the "feed" or "channel." Is there ever a situation where it is appropriate to use multiple channels within an element, like the following? <rss> <channel> ... ...

XML Schema: how to have multiple identical elements?

Hi everyone, I'm having quite a hard time on constructing my 1st XML Schema. I need it to verify the correctness of an XML document that forms a questionnaire. So here's the section in don't get: I changed the source. The 1st answer refers to this code: <root> <values> <value>Lorem</value> <value>ipsum</value> ...

PHP: regular expression to find out and retrive values from xml attributes

Hi all, How can write a regular expression to retrieve values from xml node. Actually the node structure is very big so we can't traverse easly, so i want to read as normal text file and hop i can write a regx to findout the matching elements. <node1> <node2>str</node2> <node3>Text</node3> <myvalue>Here is the values string..</myvalu...

sp_send_dbmail inserts line-breaks into the attached xml query result

When you use msdb.dbo.sp_send_dbmail to send a query result as an attachment, you'll have to provide the @query_result_width parameter which is an integer between 10 and 32767. Now, If you use For XML Path('Row'), Root('Data'), Type in your most-outer Select query, you may get the send_dbmail to send an xml attachment for you which is re...

how can i put rss feed link on my website?

i wanted to put an rss feed for a web app im creating in php, so basically w they can subscribe to a part of a website using google reader or feedburner etc ...

html form to XML response and reply

I have a form that looks like this. Now a client has asked to convert this to a format that queries and sends response in XML. Can someone pint me to appropriate tutorial or example in PHP. There seems to be many ways of doing this <form action="" method='post'> <table> <tr><td>User Number </td><td><input type='text' name='task_user_no...