xml

Manage the transitions between different menus in a Flash based kiosk application

I want to know how to design a Flash CS4(AS3) based kiosk application where the screen changes according to the user events(to change the screens like this). Preferably use xml to describe the application. ...

Zip code is dropping leading zero when displayed on excel. Export to excel from vb.net XML to XSLT transform.

I am exporting data from vb.net to excel and it is dropping the leading zero when its displayed on excel. How can I avoid the dropping of leading zero? I read the solution of adding a single quote but it makes my excel sheet column ugly. Also users will complain if they see a single quote on zip code field. vb.net code Response.AddHea...

Why is XmlNode.OuterXml crashing my entire IIS application?

I am running into a situation where my IIS App Pool actually crashes when I try to get the outer XML of an XML input. Here is the code that I inherited : var tempNamespace = xmlToValidate.OwnerDocument.CreateAttribute("xmlns"); tempNamespace.Value = xsdFileName; xmlToValidate.Attributes.Append(tempNamespace); //Have to create fragment...

How to create XML file?

I have some data which my program discovers after observing a few things about files. For instance, i know file name, time file was last changed, whether file is binary or ascii text, file content (assuming it is properties) and some other stuff. i would like to store this data in XML format. How would you go about doing it? Please ...

extract url from xml response

I need to extract url from XML response. Here is the XML response: <cloud xmlns:xlink="http://www.w3.org/1999/xlink"&gt; <rootContainer xlink:href="https://api.example.net/v2/bucket/92FBC29C-344C-99CF-827E-1B5586A7F8E3" xlink:type="simple"/> </cloud> I'm using C to write regex. Need help. my output needs to be https://api...

.NET MVC Linq -> XML RSS reader : Twitter XML Parsing Error

It seems like no matter what I do, I cannt get my twitter RSS feed to show up on my view. I'm not getting any errors, and the RSS feed loads correctly, I just can't grab the Model's information... Here's my ViewModel namespace MvcMusicStore.ViewModels { public class HomeRssFeedViewModel { public IEnumerable<TwitterPosts...

What is the problem with this regex?

First, I'm not a regex expert, so I'm pretty sure I'm doing something wrong. Here is my regular expression: <(list)(\b[^>]*)>(<\1\b[^>]*>.*?<\/\1>|.)*?<\/\1> This is the input string: ... <list title="Lorem ipsum dolor sit amet, consectetur adipiscing elit..."> <li> <list title="Lorem adipiscing..."> <li>Lorem ipsum dolo...

how to add a attribute in existing xml using vbscript

Hi Guys, I have below xml and I am using VBSript to generate it. <?xml version="1.0"?> <tcm:ListItems xmlns:tcm="http://www.tridion.com/ContentManager/5.0" ID="tcm:481-86880-2" Managed="10682"> <tcm:Item ID="tcm:481-594051"/> <tcm:Item ID="tcm:481-594088"/> <tcm:Item ID="tcm:481-594089"/> <tcm:Item ID="tcm:481-594090"/> <tcm:...

How to read external rss file ?

Hi, I should to display datas from a rss file from another server. When the rss file is on my server, I can read it, but when I try to read the same file on another server, I obtain this : Warning: simplexml_load_file(rssfile) [function.simplexml-load-file]: failed to open stream: Connection timed out in index.php on lin...

What's this web service protocol? Unfamiliar XML Format

I'm following a document to send a request to a web service, but I'm confused about it's protocol. It's based on HTTP, but it's not in SOAP format nor XML-RPC. Is it in an standard protocol format or they just implement their custom protocol? Here is a sample request: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns2:WebSt...

jQuery.Post/Ajax POST to PHP for writing XML file

I have a client side code in jquery and from client side code I need to store some data on server side in form of XML files that are written using PHP. I'm done with the code for writing PHP files. However, I'm not able to pass client side code to PHP file. jQuery post is also not working. I tried query strings but as I said data is too ...

Linq to XML, collection is empty!

Hi there, I have an XDocument in the format: <S xmlns="http://server.com/DAAPI"&gt; <TIMESTAMP>2010-08-17 10:14:31.937</TIMESTAMP> <REP_GROUP> <GROUP></GROUP> <NAME></NAME> <LOCAL_NAME></LOCAL_NAME> ........ </REP_GROUP> <REP_GROUP> <GROUP>AMZ </GROUP> .............. Why when I do ...

Memory Leak related with replaceChild

Here is source code of my function: bool FieldModel::updateNode(QDomNode &node,const QString &parent){ QDomElement rootOfTag; rootOfTag=fieldState.firstChild().firstChildElement(parent); qDebug()<<"Before"<<fieldState.toString(); QDomNodeList sameTags=rootOfTag.elementsByTagName(node.firstChild().toElement().tagName()); for...

Python: parsing XML document while preserving entities

I wanted to ask what known existing Python 2.x libraries there are for parsing an XML document with built-in DTD without automatically expanding the entities. (File in question for those curious: JMdict.) It seems lxml has some option for not parsing the entities, but last I tried, the entities just ended up being converted to blanks. ...

Environment for editing/testing XML,XSL files locally?

Hi all Just wondering if anybody knows of an environment for running, testing, debugging xml and xsl locally. Kind of like the way XAMPP can be used for web design. Any help is appreciated Thanks ...

Generate valid XML name in Java

Are there any helpers that will transform/escape a string to be a valid XML name ? Example, I have the string max(OfAll) and need to generate some XML like e.g. <max(OfAll)>SomeText</<max(OfAll)> That's obviously not a valid name, are there some helper methods that can transform the string to be a valid xml name ? (For comparison, ....

How to load an XML file that's located on my desktop?

For testing purposes I'd like to load an XML file to an XDocument object. How can I accomplish this? Thanks! ...

Porting PHP5 to legacy PHP4, DOMDocument quibbles

I'm trying to make some of my php5 code work on a legacy server, which unfortunately cannot be upgraded (client's machine). if (!isset($docRoot)) { $docRoot = $_SERVER['DOCUMENT_ROOT']; } // generic storage class for the words/phrases $t = new stdClass(); $t->lang = $curPage->lang; // load xml translations, could split this int...

How to remove the 'Design' tab from an xml document within Eclipse

The standard eclipse xml editor has a 'design' tab at the bottom. The problem with those bottom tabs is that when using the shortcut 'CTRL PAGEUP / PAGEDOWN' to scroll through the open editors it will always get stuck on xml files. Any of you have an idea to remove the design tab or have a workaround so it won't stop on that tab? ...

XML intellisense in C# as in VB.Net?

Is it possible to enable XML intellisense in a C# class as it is in the VB editor? Similar to this article's prescriptions: http://msdn.microsoft.com/en-us/library/bb531325.aspx Would like to not have to use xsd.exe to generate a class from the XML. ...