xml

Getting a Value from NSXMLDocument

I'm using an API to upload an image and I need to get the uploaded image URL (image_link) from the XML output shown below <?xml version="1.0" encoding="iso-8859-1"?><imginfo xmlns="http://ns.imageshack.us/imginfo/7/" version="7" timestamp="1283286280"> <rating> <ratings>0</ratings> <avg>0.0</avg> </rating> <files server="8...

How can .NET MVC render forms based on external XML?

A non-developer wants the ability to modify scripts that users read on several screens. For example, the first script may read, "Thanks for calling, how may I help you?" and contain some input elements. After clicking a "Next" button on this screen, they are presented with another form with another script with more input elements. Ho...

How do I get an Ampersand symbol into Word 2007 .docx XML file?

I am generating a Word doc in xml based on customer input, and of course it blows up whenever an & is used. I tried replacing all instances of & with &amp;, but then &amp; literally shows up in my Word Doc. Here's my code: static String replace(String in) { String ampersand = "&(?![a-zA-Z][a-zA-Z][a-zA-Z]?[a-zA-Z]?;)...

how to get stream positions of xml elements in .NET

How can I get the stream position of an XElement in .NET 4 in a reasonably efficient way? 1 2 3 4 5 6 7 8 01234567890123456789012345678901234567890123456789012345678901234567890123456789012 <root><group id="0" combiner="or"><filter id="1" /><filter id="2" /></group></root...

Is there XSLT available for transforming WordprocessingML into RTF

I currently generate docx files programmaticaly in C#. I would like to transform my doc file into RTF. This be done with an XSLT transform. Is there a transform that is publicly available? I am also interested in trasnforming docx into PDF and HTML. ...

SQLite to XML via PHP

Hi, I am sure this can be done. I need to pull data from a SQLite db & convert it to XML on the fly, so it can be read by fusioncharts to display pretty graphs. I have seen it done with mysql but am finding it difficult to find information about SQlite to XML. <?php header("Content-type: text/xml"); $host = "localhost"; $user = ...

Want to load specific HTML tags in UIWebView from a website

I have use NSXMLparser to parse some XML from feeburner and onto my app. I have carefully selected the tags for the title, author, publication date and the summary and assigned them to the cell label and detail label in my UITableView. - (void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string{ if ([currentElement isEqualTo...

Why is my second LinearLayout not showing?

Hello, I have just decided to try out the Android SDK, so I installed it and now I'm trying to make a simple interface using an XML file for a calculator I've made and that I might port to Android. Here a first draft of the XML file I want to use: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.androi...

App with embeded GCC-XML parser support

Hi, What should be the right approach to reuse GCC-XML parser utility inside any other Windows C++ native or C# .NET application ? I read that it is used by some libs like pygccxml, PyQt, it is not yet clear how. Please enlighten me. Seems no API documentation is available... Thanks ...

PHP problem, I'm sure this has an easy solution, just can't see it

Hi all, I am new to php and this little bugger has been eating up my day, perhaps it's due to some property of php I am unaware of? As part of some code for getting some data out of an xml file (using the event based Expat parser), I have the following code $xmlFields; $fieldName = ""; ............... some other code ............ fu...

Storing Animation Data in XML

Hi, so I'm trying to store animations in a way that I can reuse them with other images. I want to store the position of each node in a keyframe and use interpolation in the animator to make it look nice and smooth. I would use this for animating everything from walk cycles to weapon animations and etc.. The xml file for a simple ball mov...

Get items with Status Date greater than or equal to today's date minus 30 days with xslt?

Hi, I have two dates in the following format: 1) <xsl:value-of select="ddwrt:FormatDateTime(string(@Status_x0020_Date) ,1033 ,'yyyy-MM-dd ')" /> 2)<xsl:value-of select="ddwrt:FormatDateTime(string(../../../Strategic_Items_Daily_Status/Rows/Row/@Status_x0020_for_x0020_Last_x002) ,1033 ,'yyyy-MM-dd ')" /> I am using SharePoint Designer ...

Load large xml files to database tables by reading tags quickly

I'm using SQL server 2005 loading XML data. currently I'm loading large XML files to tables via Sp's it took whole XML to a XML type sql variable and prepare document.there after i read tags i want and then insert in to table variable and finally after finishing all processing i insert all the processing records from table variable to a...

Reading xml file and accessing optional nodes

I am using the following code to retrieve data from the xml file. It is working fine. Problem: If the node is not available it creating problem. How to check the availability of the node. ex: some records dose not have description that time it shows Object reference not set to an instance of an object. error. code: XmlDocument doc = ...

Which is the best option, SimpleXml or XML Parser in PHP?

I have gone through the Stack Overflow post "Best XML Parser for PHP". For the same question. It is mentioned that, if I need to manipulate XML files then go for DOM XML. My requirements are: I have saved navigation in database. It is an HTML string. I want to remove some pages or say li tags wrapping pages that user don't want to exi...

How to sign an xml file in a wcf service?

I'd like my WCF service to return an xml file that has been signed. I found documentation that shows how to sign an XmlDocument on msdn, but since a WCF function can't return an XmlDocument I'm not sure if the following would work (similar to thisquestion) public XmlElement GetXml() { var doc = new XmlDocument(); // add...

i want to show the output of my programe written in c++ to a xml file.

int countNodes( TreeNode *root ) { // Count the nodes in the binary tree to which // root points, and return the answer. if ( root == NULL ) return 0; // The tree is empty. It contains no nodes. else { int count = 1; // Start by counting the root. count += countNo...

Output Contents of PHP File for a GET/POST request

I have a script which generates an XML file when the user accesses the link like so: domain.com/dirList.php I would like to print the contents of the XML to the user at the end of the POST or GET request (have not implemented this yet). At the moment I am just viewing the link through a web browser. This is the code I am using to ...

display xml data in html from an xml file specified within another xml file with xmlhttprequest

Hi, can you help, I have a basic xml file which is displaying well in html. The xml file is as such... <videoList> <video> <pointer> <type><![CDATA[image]]></type> <lat><![CDATA[52.1]]></lat> <long><![CDATA[1.0]]></long> </pointer> <speaker> ...

copy-of without namespace in xlst1.0

I want to do an XSLT 1.0 transformation of an xml where i use the node. Now when I apply this it sets an xmlns namespace on the copied items, is it possible to avoid this? This is the input xml: <ns0:Task xmlns:ns0="http://Sharepoint.Task"&gt; <UserName>FalcoLannoo</UserName> <Title>Task1</Title> <Description>Description_0<...